home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpm / editor / editor.ark / EDEXT.CC < prev    next >
Encoding:
Text File  |  1983-09-10  |  1.9 KB  |  72 lines

  1. /*
  2.  * Screen editor:  external definitions
  3.  *
  4.  * Source: edext.cc
  5.  * Version: August 8, 1982.
  6.  *
  7.  */
  8.  
  9. /* define flag for sUartup of editor -- ed2.bds */
  10.  
  11. int    startup;    /* flag for editor startup */
  12. int    argcount;    /* global argc */
  13. char    sname[SYSFNMAX]; /* command line filename */
  14.  
  15. /* define statics for the command module -- ed3.cc */
  16.  
  17. char filename[SYSFNMAX];    /* file name for (re)save */
  18.  
  19. /* define statics for the window module -- ed4.cc */
  20.  
  21. char    editbuf[MAXLEN]; /* the edit buffer */
  22. int    editp;        /* cursor: buffer index */
  23. int    editpmax;    /* length of buffer */
  24. int    edcflag;    /* buffer change flag */
  25.  
  26. /* define statics for the format module -- ed5.cc */
  27.  
  28. int fmttab;        /* max length of tab character */
  29. int fmtdev;        /* device -- YES/NO = LIST/CONSOLE */
  30. int fmtwidth;        /* devide width.  LISTW/SCRNW1 */
  31.  
  32. /* fmtcol[i] is the first column at which buf[i] is printed.
  33.  * fmtsub() and fmtlen() assume fmtcol[] is valid on entry.
  34.  */
  35.  
  36. int fmtcol[MAXLEN1];
  37.  
  38. /* define statics for the terminal module -- ed6.ccc */
  39.  
  40. int outx, outy;        /* coordinates of the cursor */
  41.  
  42. /* define statics for the prompt line module -- ed7.cc */
  43.  
  44. char pmtln[MAXLEN];    /* mode */
  45. char pmtfn[SYSFNMAX];    /* file name */
  46.  
  47. /* define statics for the operating system module -- ed8.cc */
  48.  
  49. /* constants defined in bdscio.h -----
  50. #define NSECTS 8
  51. #define SECSIZ 128
  52. #define BUFSIZ    (NSECTS * SECSIZ + 6)
  53. ----- */
  54.  
  55. int  iormode;        /* YES if file is read mode */
  56. char iobuf1[BUFSIZ];    /* file buffer */
  57.  
  58. /* define statics for the buffer module -- ed10.cc */
  59.  
  60. /*
  61.  * buffer[] must be the last external variable and it must
  62.  * have a nonzero dimension.
  63.  */
  64.  
  65. int bufcflag;        /* main buffer changed flag */
  66. char *bufp;        /* start of current line */
  67. char *bufpmax;        /* end of last line */
  68. char *bufend;        /* last byte of buffer */
  69. int bufline;        /* current line number */
  70. int bufmaxln;        /* number of lines in buffer */
  71. char buffer[1];        /* start of buffer */
  72.