--- vi.h.orig Sat Jul 27 11:00:24 1991 +++ vi.h Thu Dec 5 00:37:44 1996 @@ -16,6 +16,7 @@ #define VERSION "ELVIS 1.4, by Steve Kirkendall" #define COPYING "This version of ELVIS is freely redistributable." +#define VNVERSION "Adapted for Vietnamese text by Nguye^~n T. Cu+o+`ng" #include extern int errno; @@ -92,7 +93,9 @@ #define READONLY 0x0002 /* the file is read-only */ #define HADNUL 0x0004 /* the file contained NUL characters */ #define MODIFIED 0x0008 /* the file has been modified */ -#define NOFILE 0x0010 /* no name is known for the current text */ +/*#define NOFILE 0x0010 /* no name is known for the current text */ +/* NOFILE conflicts with 4.4BSD's */ +#define NONAME 0x0010 /* no name is known for the current text */ #define ADDEDNL 0x0020 /* newlines were added to the file */ /* macros used to set/clear/test flags */ @@ -235,7 +238,13 @@ #ifndef NO_RECYCLE extern long allocate(); /* allocate a free block of the tmp file */ #endif -extern int trapint(); /* trap handler for SIGINT */ +extern +#if BSD && (BSD >= 199306) + void +#else + int +#endif +trapint(); /* trap handler for SIGINT */ extern void blkdirty(); /* marks a block as being "dirty" */ extern void blkflush(); /* writes a single dirty block to the disk */ extern void blksync(); /* forces all "dirty" blocks to disk */