summaryrefslogtreecommitdiff
path: root/usr.bin/mg
diff options
context:
space:
mode:
authorVincent Labrecque <vincent@cvs.openbsd.org>2002-02-14 03:15:05 +0000
committerVincent Labrecque <vincent@cvs.openbsd.org>2002-02-14 03:15:05 +0000
commit28e303fae9bc0edc488e59e955a3a58418454115 (patch)
tree885a368a51acf0fed0ed7150c3e41426ace8be62 /usr.bin/mg
parentfda1d6f7f67864cb5c52fb9eaa90feeb6b7d7873 (diff)
Oups, my chartypes commit broke this.
Use mg specific _MG_U/_MG_L chartypes instead of systemwide ones.
Diffstat (limited to 'usr.bin/mg')
-rw-r--r--usr.bin/mg/line.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mg/line.c b/usr.bin/mg/line.c
index 83dba9c88a4..0cfb1fe32f8 100644
--- a/usr.bin/mg/line.c
+++ b/usr.bin/mg/line.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: line.c,v 1.9 2002/02/13 22:36:58 vincent Exp $ */
+/* $OpenBSD: line.c,v 1.10 2002/02/14 03:15:04 vincent Exp $ */
/*
* Text line handling.
@@ -474,14 +474,14 @@ lreplace(plen, st, f)
*/
/* NOSTRICT */
(void)backchar(FFARG | FFRAND, (int)plen);
- rtype = _L;
+ rtype = _MG_L;
c = lgetc(curwp->w_dotp, curwp->w_doto);
if (ISUPPER(c) != FALSE && f == FALSE) {
- rtype = _U | _L;
+ rtype = _MG_U | _MG_L;
if (curwp->w_doto + 1 < llength(curwp->w_dotp)) {
c = lgetc(curwp->w_dotp, curwp->w_doto + 1);
if (ISUPPER(c) != FALSE) {
- rtype = _U;
+ rtype = _MG_U;
}
}
}
@@ -506,10 +506,10 @@ lreplace(plen, st, f)
* If inserting upper, check replacement for case.
*/
while ((c = CHARMASK(*st++)) != '\0') {
- if ((rtype & _U) != 0 && ISLOWER(c) != 0)
+ if ((rtype & _MG_U) != 0 && ISLOWER(c) != 0)
c = TOUPPER(c);
- if (rtype == (_U | _L))
- rtype = _L;
+ if (rtype == (_MG_U | _MG_L))
+ rtype = _MG_L;
if (c == CCHR('J')) {
if (curwp->w_doto == llength(curwp->w_dotp))
(void)forwchar(FFRAND, 1);