summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Callahan <bcallah@cvs.openbsd.org>2015-03-16 13:47:49 +0000
committerBrian Callahan <bcallah@cvs.openbsd.org>2015-03-16 13:47:49 +0000
commitdb0f5f8b18c7ed65ebad8d451f2abd4682065301 (patch)
tree80cc9771bb2cbcfeb5614188799372c79d0002e6
parentf845d345af3d8d0e0a31f8e3b6c2236d279085fe (diff)
Change the internal name of the newline function to deconflict with a
function of the same name in term.h. This is the first step towards cleaning up mg's includes. No user-visible changes. ok florian@
-rw-r--r--usr.bin/mg/buffer.c4
-rw-r--r--usr.bin/mg/cmode.c4
-rw-r--r--usr.bin/mg/def.h4
-rw-r--r--usr.bin/mg/funmap.c4
-rw-r--r--usr.bin/mg/keymap.c6
-rw-r--r--usr.bin/mg/random.c4
-rw-r--r--usr.bin/mg/theo.c6
-rw-r--r--usr.bin/mg/yank.c4
8 files changed, 18 insertions, 18 deletions
diff --git a/usr.bin/mg/buffer.c b/usr.bin/mg/buffer.c
index de7b59c71af..ba5a11dd1f8 100644
--- a/usr.bin/mg/buffer.c
+++ b/usr.bin/mg/buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: buffer.c,v 1.94 2014/06/12 16:29:41 bcallah Exp $ */
+/* $OpenBSD: buffer.c,v 1.95 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain. */
@@ -761,7 +761,7 @@ bufferinsert(int f, int n)
return (FALSE);
if ((clp = lforw(clp)) == bp->b_headp)
break;
- if (newline(FFRAND, 1) == FALSE) /* fake newline */
+ if (enewline(FFRAND, 1) == FALSE) /* fake newline */
return (FALSE);
nline++;
}
diff --git a/usr.bin/mg/cmode.c b/usr.bin/mg/cmode.c
index 1fdd78c6903..4cc4d8774bd 100644
--- a/usr.bin/mg/cmode.c
+++ b/usr.bin/mg/cmode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmode.c,v 1.12 2015/01/13 17:02:28 bcallah Exp $ */
+/* $OpenBSD: cmode.c,v 1.13 2015/03/16 13:47:48 bcallah Exp $ */
/*
* This file is in the public domain.
*
@@ -201,7 +201,7 @@ cc_lfindent(int f, int n)
{
if (n < 0)
return (FALSE);
- if (newline(FFRAND, 1) == FALSE)
+ if (enewline(FFRAND, 1) == FALSE)
return (FALSE);
return (cc_indent(FFRAND, n));
}
diff --git a/usr.bin/mg/def.h b/usr.bin/mg/def.h
index 15cc5cf1eb2..1e07cf1697c 100644
--- a/usr.bin/mg/def.h
+++ b/usr.bin/mg/def.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: def.h,v 1.141 2014/04/03 20:17:12 lum Exp $ */
+/* $OpenBSD: def.h,v 1.142 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain. */
@@ -510,7 +510,7 @@ int showcpos(int, int);
int getcolpos(struct mgwin *);
int twiddle(int, int);
int openline(int, int);
-int newline(int, int);
+int enewline(int, int);
int deblank(int, int);
int justone(int, int);
int delwhite(int, int);
diff --git a/usr.bin/mg/funmap.c b/usr.bin/mg/funmap.c
index b10a2cda3af..ea5afa02559 100644
--- a/usr.bin/mg/funmap.c
+++ b/usr.bin/mg/funmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: funmap.c,v 1.47 2013/05/31 18:03:44 lum Exp $ */
+/* $OpenBSD: funmap.c,v 1.48 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain */
@@ -129,7 +129,7 @@ static struct funmap functnames[] = {
{markbuffer, "mark-whole-buffer",},
{do_meta, "meta-key-mode",}, /* better name, anyone? */
{negative_argument, "negative-argument",},
- {newline, "newline",},
+ {enewline, "newline",},
{lfindent, "newline-and-indent",},
{forwline, "next-line",},
#ifdef NOTAB
diff --git a/usr.bin/mg/keymap.c b/usr.bin/mg/keymap.c
index 8d52ada1da7..12c33859670 100644
--- a/usr.bin/mg/keymap.c
+++ b/usr.bin/mg/keymap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: keymap.c,v 1.52 2014/08/14 12:22:58 bcallah Exp $ */
+/* $OpenBSD: keymap.c,v 1.53 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain. */
@@ -359,7 +359,7 @@ static PF fund_CJ[] = {
lfindent, /* ^J */
killline, /* ^K */
reposition, /* ^L */
- newline, /* ^M */
+ enewline, /* ^M */
forwline, /* ^N */
openline, /* ^O */
backline, /* ^P */
@@ -444,7 +444,7 @@ static struct KEYMAPE (1 + IMAPEXT) fillmap = {
};
static PF indent_lf[] = {
- newline, /* ^J */
+ enewline, /* ^J */
rescan, /* ^K */
rescan, /* ^L */
lfindent /* ^M */
diff --git a/usr.bin/mg/random.c b/usr.bin/mg/random.c
index ecf5d71805f..1a7eeb7fabe 100644
--- a/usr.bin/mg/random.c
+++ b/usr.bin/mg/random.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: random.c,v 1.33 2014/03/26 22:02:06 lum Exp $ */
+/* $OpenBSD: random.c,v 1.34 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain. */
@@ -189,7 +189,7 @@ openline(int f, int n)
*/
/* ARGSUSED */
int
-newline(int f, int n)
+enewline(int f, int n)
{
int s;
diff --git a/usr.bin/mg/theo.c b/usr.bin/mg/theo.c
index 2f30d3295c3..9a41bc8767d 100644
--- a/usr.bin/mg/theo.c
+++ b/usr.bin/mg/theo.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: theo.c,v 1.143 2014/11/19 21:22:47 schwarze Exp $ */
+/* $OpenBSD: theo.c,v 1.144 2015/03/16 13:47:48 bcallah Exp $ */
/*
* Copyright (c) 2002 Artur Grabowski <art@openbsd.org>
* All rights reserved.
@@ -201,12 +201,12 @@ theo_analyze(int f, int n)
str = talk[arc4random_uniform(ntalk)];
len = strlen(str);
- newline(FFRAND, 2);
+ enewline(FFRAND, 2);
while (len--)
linsert(1, *str++);
- newline(FFRAND, 2);
+ enewline(FFRAND, 2);
return (TRUE);
}
diff --git a/usr.bin/mg/yank.c b/usr.bin/mg/yank.c
index feafc7cd31b..cba0a7b65cf 100644
--- a/usr.bin/mg/yank.c
+++ b/usr.bin/mg/yank.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yank.c,v 1.11 2014/03/20 07:47:29 lum Exp $ */
+/* $OpenBSD: yank.c,v 1.12 2015/03/16 13:47:48 bcallah Exp $ */
/* This file is in the public domain. */
@@ -239,7 +239,7 @@ yank(int f, int n)
i = 0;
while ((c = kremove(i)) >= 0) {
if (c == '\n') {
- if (newline(FFRAND, 1) == FALSE)
+ if (enewline(FFRAND, 1) == FALSE)
return (FALSE);
++nline;
} else {