EXTERN int startup; /* flag for editor startup */
EXTERN int argcount; /* global argc */
EXTERN char sname[SYSFNMAX]; /* command line filename */
/* define statics for the command module -- ed3.c */
EXTERN char filename[SYSFNMAX]; /* file name for (re)save */
/* define statics for the window module -- ed4.c */
EXTERN char editbuf[MAXLEN]; /* the edit buffer */
EXTERN int editp; /* cursor: buffer index */
EXTERN int editpmax; /* length of buffer */
EXTERN int edcflag; /* buffer change flag */
/* define statics for the format module -- ed5.c */
EXTERN int fmttab; /* max length of tab character */
EXTERN int fmtdev; /* device -- YES/NO = LIST/CONSOLE */
EXTERN int fmtwidth; /* devide width. LISTW/SCRNW1 */
/* fmtcol[i] is the first column at which buf[i] is printed.
* fmtsub() and fmtlen() assume fmtcol[] is valid on entry.
*/
EXTERN int fmtcol[MAXLEN1];
/* define statics for the terminal module -- ed6.c */
EXTERN int outx, outy; /* coordinates of the cursor */
/* define statics for the prompt line module -- ed7.c */
/* define statics for the operating system module -- ed8.c */
EXTERN int iormode; /* 'r' if file is read mode */
/* define statics for the buffer module -- ed10.c */
/*
* buffer[] must be the last external variable and it must
* have a nonzero dimension.
*/
EXTERN int bufcflag; /* main buffer changed flag */
EXTERN char *bufp; /* start of current line */
EXTERN char *bufpmax; /* end of last line */
EXTERN char *buffer; /* start of buffer */
EXTERN char *bufend; /* last byte of buffer */
EXTERN int bufline; /* current line number */
EXTERN int bufmaxln; /* number of lines in buffer */