-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstevie.h
More file actions
62 lines (52 loc) · 1.4 KB
/
stevie.h
File metadata and controls
62 lines (52 loc) · 1.4 KB
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
/*
* STevie - ST editor for VI enthusiasts. ...Tim Thompson...twitch!tjt...
*/
/* One (and only 1) of the following 3 defines should be uncommented. */
/* Most of the code is machine-independent. Most of the machine- */
/* dependent stuff is in window.c */
/*#define ATARI 1 /* For the Atari 520 ST */
/*#define UNIXPC 1 /* The AT&T UNIX PC (console) */
#define TCAP 1 /* For termcap-based terminals */
#define NULL 0
#define FILELENG 16000
#define NORMAL 0
#define CMDLINE 1
#define INSERT 2
#define APPEND 3
#define FORWARD 4
#define BACKWARD 5
#define WORDSEP " \t\n()[]{},;:'\"-="
#define CHANGED Changed=1
#define UNCHANGED Changed=0
#ifndef NULL
#define NULL 0
#endif
struct charinfo {
char ch_size;
char *ch_str;
};
extern struct charinfo chars[];
extern int State;
extern int Rows;
extern int Columns;
extern char *Realscreen;
extern char *Nextscreen;
extern char *Filename;
extern char *Filemem;
extern char *Filemax;
extern char *Fileend;
extern char *Topchar;
extern char *Botchar;
extern char *Curschar;
extern char *Insstart;
extern int Cursrow, Curscol, Cursvcol;
extern int Prenum;
extern int Debug;
extern int Changed;
extern int Binary;
extern char Redobuff[], Undobuff[], Insbuff[];
extern char *Uncurschar, *Insptr;
extern int Ninsert, Undelchars;
char *malloc(), *strchr(), *strsave(), *alloc(), *strcpy();
char *nextline(), *prevline(), *coladvance(), *ssearch();
char *fwdsearch(), *bcksearch();