version 1.5, 2001/01/29 01:58:08 |
version 1.6, 2001/05/23 22:20:35 |
|
|
* it might be in, and release the memory. The buffers are updated too; the |
* it might be in, and release the memory. The buffers are updated too; the |
* magic conditions described in the above comments don't hold here. |
* magic conditions described in the above comments don't hold here. |
*/ |
*/ |
VOID |
void |
lfree(lp) |
lfree(lp) |
LINE *lp; |
LINE *lp; |
{ |
{ |
|
|
* displayed in more than 1 window we change EDIT to HARD. Set MODE if the |
* displayed in more than 1 window we change EDIT to HARD. Set MODE if the |
* mode line needs to be updated (the "*" has to be set). |
* mode line needs to be updated (the "*" has to be set). |
*/ |
*/ |
VOID |
void |
lchange(flag) |
lchange(flag) |
int flag; |
int flag; |
{ |
{ |
|
|
* lowercase found), so bypass check. |
* lowercase found), so bypass check. |
*/ |
*/ |
/* NOSTRICT */ |
/* NOSTRICT */ |
(VOID)backchar(FFARG | FFRAND, (int)plen); |
(void)backchar(FFARG | FFRAND, (int)plen); |
rtype = _L; |
rtype = _L; |
c = lgetc(curwp->w_dotp, curwp->w_doto); |
c = lgetc(curwp->w_dotp, curwp->w_doto); |
if (ISUPPER(c) != FALSE && f == FALSE) { |
if (ISUPPER(c) != FALSE && f == FALSE) { |
|
|
rlen = strlen(st); |
rlen = strlen(st); |
doto = curwp->w_doto; |
doto = curwp->w_doto; |
if (plen > rlen) |
if (plen > rlen) |
(VOID)ldelete((RSIZE) (plen - rlen), KNONE); |
(void)ldelete((RSIZE) (plen - rlen), KNONE); |
else if (plen < rlen) { |
else if (plen < rlen) { |
if (linsert((int)(rlen - plen), ' ') == FALSE) |
if (linsert((int)(rlen - plen), ' ') == FALSE) |
return FALSE; |
return FALSE; |
|
|
rtype = _L; |
rtype = _L; |
if (c == CCHR('J')) { |
if (c == CCHR('J')) { |
if (curwp->w_doto == llength(curwp->w_dotp)) |
if (curwp->w_doto == llength(curwp->w_dotp)) |
(VOID)forwchar(FFRAND, 1); |
(void)forwchar(FFRAND, 1); |
else { |
else { |
if (ldelete((RSIZE) 1, KNONE) != FALSE) |
if (ldelete((RSIZE) 1, KNONE) != FALSE) |
(VOID)lnewline(); |
(void)lnewline(); |
} |
} |
} else if (curwp->w_dotp == curbp->b_linep) { |
} else if (curwp->w_dotp == curbp->b_linep) { |
(VOID)linsert(1, c); |
(void)linsert(1, c); |
} else if (curwp->w_doto == llength(curwp->w_dotp)) { |
} else if (curwp->w_doto == llength(curwp->w_dotp)) { |
if (ldelete((RSIZE) 1, KNONE) != FALSE) |
if (ldelete((RSIZE) 1, KNONE) != FALSE) |
(VOID)linsert(1, c); |
(void)linsert(1, c); |
} else |
} else |
lputc(curwp->w_dotp, curwp->w_doto++, c); |
lputc(curwp->w_dotp, curwp->w_doto++, c); |
} |
} |
|
|
* a new kill context is created. The kill buffer array is released, just in |
* a new kill context is created. The kill buffer array is released, just in |
* case the buffer has grown to an immense size. No errors. |
* case the buffer has grown to an immense size. No errors. |
*/ |
*/ |
VOID |
void |
kdelete() |
kdelete() |
{ |
{ |
if (kbufp != NULL) { |
if (kbufp != NULL) { |