summaryrefslogtreecommitdiff
path: root/usr.bin/mg/def.h
diff options
context:
space:
mode:
authorMark Lumsden <lum@cvs.openbsd.org>2021-03-01 10:51:15 +0000
committerMark Lumsden <lum@cvs.openbsd.org>2021-03-01 10:51:15 +0000
commite2cabf3b47ab75eb968195e43fb2218e2e1d2e56 (patch)
tree66a36542c9e28985db3506f7457462ab5d42ad69 /usr.bin/mg/def.h
parent3efb214d73d4cdb8e7a190f97228a97baf4a9059 (diff)
Put the hardcoded '\n' character which is found throughout mg into a
buffer specific variable. The diff should not produce any behavourial changes in mg.
Diffstat (limited to 'usr.bin/mg/def.h')
-rw-r--r--usr.bin/mg/def.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index cb1d67356d4..e3cc9e7cfe4 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.167 2021/02/23 08:10:51 lum Exp $ */
+/* $OpenBSD: def.h,v 1.168 2021/03/01 10:51:14 lum Exp $ */
/* This file is in the public domain. */
@@ -267,6 +267,8 @@ struct buffer {
char b_flag; /* Flags */
char b_fname[NFILEN]; /* File name */
char b_cwd[NFILEN]; /* working directory */
+ char *b_nlseq; /* Newline sequence of chars */
+ char *b_nlchr; /* 1st newline character */
struct fileinfo b_fi; /* File attributes */
struct undoq b_undo; /* Undo actions list */
struct undo_rec *b_undoptr;