version 1.2, 2000/02/25 19:09:48 |
version 1.3, 2000/02/26 22:53:16 |
|
|
int lastflag; /* Flags, last command */ |
int lastflag; /* Flags, last command */ |
int curgoal; /* Goal column */ |
int curgoal; /* Goal column */ |
BUFFER *curbp; /* Current buffer */ |
BUFFER *curbp; /* Current buffer */ |
WINDOW *curwp; /* Current window */ |
MGWIN *curwp; /* Current window */ |
BUFFER *bheadp; /* BUFFER listhead */ |
BUFFER *bheadp; /* BUFFER listhead */ |
WINDOW *wheadp = (WINDOW *)NULL; /* WINDOW listhead */ |
MGWIN *wheadp = (MGWIN *)NULL; /* MGWIN listhead */ |
char pat[NPAT]; /* Pattern */ |
char pat[NPAT]; /* Pattern */ |
#ifndef NO_DPROMPT |
#ifndef NO_DPROMPT |
extern char prompt[], *promptp; /* delayed prompting */ |
extern char prompt[], *promptp; /* delayed prompting */ |
|
|
static VOID |
static VOID |
edinit() { |
edinit() { |
register BUFFER *bp; |
register BUFFER *bp; |
register WINDOW *wp; |
register MGWIN *wp; |
|
|
bheadp = NULL; |
bheadp = NULL; |
bp = bfind("*scratch*", TRUE); /* Text buffer. */ |
bp = bfind("*scratch*", TRUE); /* Text buffer. */ |
wp = (WINDOW *)malloc(sizeof(WINDOW)); /* Initial window. */ |
wp = (MGWIN *)malloc(sizeof(MGWIN)); /* Initial window. */ |
if (bp==NULL || wp==NULL) panic("edinit"); |
if (bp==NULL || wp==NULL) panic("edinit"); |
curbp = bp; /* Current ones. */ |
curbp = bp; /* Current ones. */ |
wheadp = wp; |
wheadp = wp; |