- Notifications
You must be signed in to change notification settings - Fork 250
/
Copy pathedef.h
128 lines (115 loc) · 5.43 KB
/
edef.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* edef.h
*
* Global variable definitions
*
* written by Dave G. Conroy
* modified by Steve Wilhite, George Jones
* greatly modified by Daniel Lawrence
* modified by Petri Kutvonen
*/
#ifndefEDEF_H_
#defineEDEF_H_
#include<stdlib.h>
#include<string.h>
/* Some global fuction declarations. */
typedefint (*fn_t)(int, int);
/* Initialized global external declarations. */
externintfillcol; /* Fill column */
externintkbdm[]; /* Holds kayboard macro data */
externcharpat[]; /* Search pattern */
externcharrpat[]; /* Replacement pattern */
externchar*execstr; /* pointer to string to execute */
externchargolabel[]; /* current line to go to */
externintexeclevel; /* execution IF level */
externinteolexist; /* does clear to EOL exist? */
externintrevexist; /* does reverse video exist? */
externintflickcode; /* do flicker supression? */
externchar*modename[]; /* text names of modes */
externchar*mode2name[]; /* text names of modes */
externcharmodecode[]; /* letters to represent modes */
externstructkey_tabkeytab[]; /* key bind to functions table */
externstructname_bindnames[];/* name to function table */
externintgmode; /* global editor mode */
externintgflags; /* global control flag */
externintgfcolor; /* global forgrnd color (white) */
externintgbcolor; /* global backgrnd color (black) */
externintgasave; /* global ASAVE size */
externintgacount; /* count until next ASAVE */
externintsgarbf; /* State of screen unknown */
externintmpresf; /* Stuff in message line */
externintclexec; /* command line execution flag */
externintmstore; /* storing text to macro flag */
externintdiscmd; /* display command flag */
externintdisinp; /* display input characters */
externstructbuffer*bstore; /* buffer to store macro text to */
externintvtrow; /* Row location of SW cursor */
externintvtcol; /* Column location of SW cursor */
externintttrow; /* Row location of HW cursor */
externintttcol; /* Column location of HW cursor */
externintlbound; /* leftmost column of current line
being displayed */
externinttaboff; /* tab offset for display */
externintmetac; /* current meta character */
externintctlxc; /* current control X prefix char */
externintreptc; /* current universal repeat char */
externintabortc; /* current abort command char */
externintquotec; /* quote char during mlreply() */
externinttabmask;
externchar*cname[]; /* names of colors */
externstructkill*kbufp; /* current kill buffer chunk pointer */
externstructkill*kbufh; /* kill buffer header pointer */
externintkused; /* # of bytes used in KB */
externstructwindow*swindow; /* saved window pointer */
externintcryptflag; /* currently encrypting? */
externint*kbdptr; /* current position in keyboard buf */
externint*kbdend; /* ptr to end of the keyboard */
externintkbdmode; /* current keyboard macro mode */
externintkbdrep; /* number of repetitions */
externintrestflag; /* restricted use? */
externintlastkey; /* last keystoke */
externintseed; /* random number seed */
externlongenvram; /* # of bytes current in use by malloc */
externintmacbug; /* macro debuging flag */
externcharerrorm[]; /* error literal */
externchartruem[]; /* true literal */
externcharfalsem[]; /* false litereal */
externintcmdstatus; /* last command status */
externcharpalstr[]; /* palette string */
externintsaveflag; /* Flags, saved with the $target var */
externchar*fline; /* dynamic return line */
externintflen; /* current length of fline */
externintrval; /* return value of a subprocess */
#ifPKCODE
externintnullflag;
externintjustflag; /* justify, don't fill */
#endif
externintoverlap; /* line overlap in forw/back page */
externintscrollcount; /* number of lines to scroll */
/* Uninitialized global external declarations. */
externintcurrow; /* Cursor row */
externintcurcol; /* Cursor column */
externintthisflag; /* Flags, this command */
externintlastflag; /* Flags, last command */
externintcurgoal; /* Goal for C-P, C-N */
externstructwindow*curwp; /* Current window */
externstructbuffer*curbp; /* Current buffer */
externstructwindow*wheadp; /* Head of list of windows */
externstructbuffer*bheadp; /* Head of list of buffers */
externstructbuffer*blistp; /* Buffer for C-X C-B */
externcharsres[NBUFN]; /* Current screen resolution. */
externcharpat[]; /* Search pattern. */
externchartap[]; /* Reversed pattern array. */
externcharrpat[]; /* Replacement pattern. */
externunsigned intmatchlen;
externunsigned intmlenold;
externchar*patmatch;
externstructline*matchline;
externintmatchoff;
externchar*dname[]; /* Directive name table. */
#ifDEBUGM
/* Vars needed for macro debugging output. */
externcharoutline[]; /* Global string to hold debug line text. */
#endif
/* Terminal table defined only in term.c */
externstructterminalterm;
#endif/* EDEF_H_ */