fix inconsistent definition of exitcode. change things so that it

(correctly) exits with code 0 if the doc hasn't been modified.
"wah!  i want nvi..."
This commit is contained in:
cgd 1993-11-03 08:27:14 +00:00
parent d61899ce79
commit ee26bd5d86
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@
/* This file contains variables which weren't happy anyplace else */
#ifndef lint
static char rcsid[] = "$Id: vars.c,v 1.3 1993/08/02 17:54:12 mycroft Exp $";
static char rcsid[] = "$Id: vars.c,v 1.4 1993/11/03 08:27:14 cgd Exp $";
#endif /* not lint */
@ -56,7 +56,7 @@ int bavar; /* used only in BeforeAfter macros */
/* used to detect changes that invalidate cached text/blocks */
long changes; /* incremented when file is changed */
int significant; /* boolean: was a *REAL* change made? */
int exitcode = 1; /* 0=overwritten, 1=not updated, else error */
int exitcode; /* 0=overwritten, 1=error */
/* used to support the pfetch() macro */
int plen; /* length of the line */

View File

@ -6,7 +6,7 @@
* Beaverton, OR 97005
* kirkenda@cs.pdx.edu
*
* $Id: vi.h,v 1.3 1993/08/02 17:54:15 mycroft Exp $
* $Id: vi.h,v 1.4 1993/11/03 08:27:19 cgd Exp $
*/
#define VERSION "ELVIS 1.7, by Steve Kirkendall (30 December 1992)"
@ -258,7 +258,7 @@ extern int argno; /* the current element of args[] */
extern int nargs; /* number of filenames in args */
extern long changes; /* counts changes, to prohibit short-cuts */
extern int significant; /* boolean: was a *REAL* change made? */
extern int exitcode; /* 0=not updated, 1=overwritten, else error */
extern int exitcode; /* 0=overwritten, 1=error */
extern BLK tmpblk; /* a block used to accumulate changes */
extern long topline; /* file line number of top line */
extern int leftcol; /* column number of left col */