diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-10 18:27:48 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2005-03-10 18:27:48 +0000 |
commit | 1716a81245e9076b6bd905a499a460aed73271e9 (patch) | |
tree | 9caa42b73f1b5cb58ecdb2ca324f74a191d1d84a /usr.bin/mg | |
parent | 3f8471335e69c8c462f4d6c6452dcf19975284be (diff) |
fix more BACKUP/NOBACKUP/NO_BACKUP confusion, again no binary change.
spotted by jmc@
Diffstat (limited to 'usr.bin/mg')
-rw-r--r-- | usr.bin/mg/Makefile | 4 | ||||
-rw-r--r-- | usr.bin/mg/def.h | 5 | ||||
-rw-r--r-- | usr.bin/mg/file.c | 12 |
3 files changed, 10 insertions, 11 deletions
diff --git a/usr.bin/mg/Makefile b/usr.bin/mg/Makefile index 768efbc3fd1..622383bfb8a 100644 --- a/usr.bin/mg/Makefile +++ b/usr.bin/mg/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.14 2005/03/09 19:12:57 henning Exp $ +# $OpenBSD: Makefile,v 1.15 2005/03/10 18:27:47 henning Exp $ PROG= mg @@ -12,7 +12,7 @@ DPADD+= ${LIBCURSES} # FKEYS -- add support for function key sequences. # XKEYS -- use termcap function key definitions. Warning - # XKEYS and bsmap mode do _not_ get along. -# NOBACKUP -- disable "make-backup-files" +# NO_BACKUP -- disable "make-backup-files" # PREFIXREGION -- enable function "prefix-region" # REGEX -- create regular expression functions # diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h index e7a6b67299a..8ea5984038d 100644 --- a/usr.bin/mg/def.h +++ b/usr.bin/mg/def.h @@ -1,4 +1,4 @@ -/* $OpenBSD: def.h,v 1.57 2005/03/09 16:20:48 jfb Exp $ */ +/* $OpenBSD: def.h,v 1.58 2005/03/10 18:27:47 henning Exp $ */ #include <sys/queue.h> @@ -8,9 +8,8 @@ * general definitions and macros. It also contains some * conditional compilation flags. All of the per-system and * per-terminal definitions are in special header files. - * The most common reason to edit this file would be to zap - * the definition of CVMVAS or BACKUP. */ + #include "sysdef.h" /* Order is critical. */ #include "ttydef.h" #include "chrdef.h" diff --git a/usr.bin/mg/file.c b/usr.bin/mg/file.c index 755a0980c9f..2aab0dbb51e 100644 --- a/usr.bin/mg/file.c +++ b/usr.bin/mg/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.30 2005/03/09 16:20:48 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.31 2005/03/10 18:27:47 henning Exp $ */ /* * File commands. @@ -197,11 +197,11 @@ readin(char *fname) /* * Insert a file in the current buffer, after dot. Set mark at the end of * the text inserted; point at the beginning. Return a standard status. - * Print a summary (lines read, error message) out as well. If the BACKUP - * conditional is set, then this routine also does the read end of backup - * processing. The BFBAK flag, if set in a buffer, says that a backup - * should be taken. It is set when a file is read in, but not on a new - * file. (You don't need to make a backup copy of nothing.) + * Print a summary (lines read, error message) out as well. Unless the + * NO_BACKUP conditional is set, this routine also does the read end of + * backup processing. The BFBAK flag, if set in a buffer, says that a + * backup should be taken. It is set when a file is read in, but not on + * a new file. (You don't need to make a backup copy of nothing.) */ static char *line = NULL; static int linesize = 0; |