summaryrefslogtreecommitdiff
path: root/usr.bin/mg/line.c
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2006-07-25 08:22:33 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2006-07-25 08:22:33 +0000
commitb27fa2f6a9aae6a0a87897200334b193aa2882dd (patch)
tree78c6dd499c6a7fa94bfdc2b904111a8000d3f2e4 /usr.bin/mg/line.c
parent13c96fecbc7c5b3efb9b2f86588c8027f4de4ae0 (diff)
Rename the header line of a buffer to b_headp, from the remarkably
unintuitive b_linep. No binary change.
Diffstat (limited to 'usr.bin/mg/line.c')
-rw-r--r--usr.bin/mg/line.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mg/line.c b/usr.bin/mg/line.c
index 20d90ccb303..12d55c2851e 100644
--- a/usr.bin/mg/line.c
+++ b/usr.bin/mg/line.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: line.c,v 1.40 2006/06/01 09:00:50 kjell Exp $ */
+/* $OpenBSD: line.c,v 1.41 2006/07/25 08:22:32 kjell Exp $ */
/* This file is in the public domain. */
@@ -158,7 +158,7 @@ linsert_str(const char *s, int n)
lp1 = curwp->w_dotp;
/* special case for the end */
- if (lp1 == curbp->b_linep) {
+ if (lp1 == curbp->b_headp) {
struct line *lp2, *lp3;
/* now should only happen in empty buffer */
@@ -248,7 +248,7 @@ linsert(int n, int c)
lp1 = curwp->w_dotp;
/* special case for the end */
- if (lp1 == curbp->b_linep) {
+ if (lp1 == curbp->b_headp) {
struct line *lp2, *lp3;
/* now should only happen in empty buffer */
@@ -417,7 +417,7 @@ ldelete(RSIZE n, int kflag)
dotp = curwp->w_dotp;
doto = curwp->w_doto;
/* Hit the end of the buffer */
- if (dotp == curbp->b_linep)
+ if (dotp == curbp->b_headp)
return (FALSE);
/* Size of the chunk */
chunk = dotp->l_used - doto;
@@ -426,7 +426,7 @@ ldelete(RSIZE n, int kflag)
chunk = n;
/* End of line, merge */
if (chunk == 0) {
- if (dotp == lback(curbp->b_linep))
+ if (dotp == lback(curbp->b_headp))
/* End of buffer */
return (FALSE);
lchange(WFFULL);
@@ -492,7 +492,7 @@ ldelnewline(void)
lp1 = curwp->w_dotp;
lp2 = lp1->l_fp;
/* at the end of the buffer */
- if (lp2 == curbp->b_linep)
+ if (lp2 == curbp->b_headp)
return (TRUE);
curwp->w_bufp->b_lines--;
if (lp2->l_used <= lp1->l_size - lp1->l_used) {