/*******************************************************************************/
/*			      Header editor.h				       */
/*									       */
/*			      v 1.00 91/11/15				       */
/*			      v 1.50 92/01/17				       */
/*******************************************************************************/

#define TRUE	    1
#define FALSE	    0
#define COMPLETE    0
#define ERROR	   -1

#define MAXLINE	    5000
#define MAXCOLUM    257
#define CUTLINE	    500

typedef unsigned char  unchar ;
typedef unsigned short unshort ;

extern int    (*CommandProcess[55])() ;
extern unchar TextBuffer[MAXLINE][MAXCOLUM] ; /*  text buffer		    */
extern unchar CutBuffer[CUTLINE][MAXCOLUM] ;  /*  cut buffer		    */
extern unchar StringBuffer[MAXCOLUM] ;	      /*  string input buffer	    */
extern char   FileName[256] ;		      /*  edit file name	    */
extern char   Information[300] ;	      /*  information buffer	    */
extern int    SignalMask ;

extern short  TabPoint[256] ;		      /*  TAB point buffer	    */
extern int    TabCount ;		      /*  Number of TAB points	    */
extern int    AutoIndentFlag ;		      /*  Auto indent flag	    */
extern int    InsertFlag ;		      /*  insert mode flag	    */
extern int    LineNumberFlag ;		      /*  Line Number Display flag  */
extern int    CutBufLength ;		      /*  Line length of Cut buffer */

extern int    ScreenWidth ;		      /*  width of screen	    */
extern int    ScreenHeight ;		      /*  height of screen	    */

extern int    CursorPosX ;		      /*  cursor position x	    */
extern int    CursorPosY ;		      /*  cursor position y	    */

extern int    MaximumLine ;		      /*  maximum line number	    */
extern int    CurrentHomeX ;		      /*  current home line	    */
extern int    CurrentHomeY ;		      /*  current home colum	    */

extern int    CurrentLine ;		      /*  current line number	    */
extern int    CurrentColum ;		      /*  current colum number	    */

extern int    LatinFlag ;
