* Based on an earlier editor "ex" written by
* William Joy and Charles Haley.
* And of course an inestimable debt to "ed"!
char ruptible
, inglobal
, inopen
, inconf
, listf
, endline
, laste
, intty
;
char shudclob
, diddle
, die
;
int chngflag
, xchngflag
, tchngflag
;
char /* savedfile[FNS, */ file
[FNSIZE
], altfile
[FNSIZE
];
char linebuf
[LBSIZE
], genbuf
[LBSIZE
];
int *address(), *addr1
, *addr2
;
int *zero
, *one
, *dot
, *dol
, *unddol
, *endcore
, *fendcore
;
int *unddel
, *undap1
, *undap2
, *undadot
;
int getfile(), gettty(), getchar(), getsub();
#define eq(a, b) (strcmp(a, b) == 0)
#define CTRL(c) ('c' & 037)
int oldhup
, onhup(), oldquit
, onintr();
#define savedfile header.Afname
#define blocks header.Ablocks
#define setlastchar(c) lastc = c
#define ungetchar(c) peekc = c
#define setai(i) aiflag = i
int pid
, rpid
, status
, tty
[3];