files from last release. ex-050325

This commit is contained in:
2024-10-10 18:04:47 +00:00
parent 0793775912
commit 2c0c217bb6
58 changed files with 7236 additions and 430 deletions

View File

@@ -73,7 +73,7 @@
#ifndef lint
#ifdef DOSCCS
static char sccsid[] = "@(#)ex_temp.c 1.27 (gritter) 12/25/06";
static char sccsid[] = "@(#)ex_temp.c 1.24 (gritter) 11/24/04";
#endif
#endif
@@ -236,7 +236,7 @@ putline(void)
}
}
tl = tline;
tline += (((lp - linebuf) + BNDRY - 1) >> SHFT) & TLNMSK;
tline += (((lp - linebuf) + BNDRY - 1) >> SHFT) & 077776;
return (tl);
}
@@ -265,29 +265,25 @@ getblock(line atl, int iof)
if (iof == READ) {
if (hitin2 == 0) {
if (ichang2) {
blkio(iblock2, ibuff2,
(ssize_t(*)(int, void *, size_t))write);
blkio(iblock2, ibuff2, (ssize_t(*)())write);
}
ichang2 = 0;
iblock2 = bno;
blkio(bno, ibuff2,
(ssize_t(*)(int, void *, size_t))read);
blkio(bno, ibuff2, (ssize_t(*)())read);
hitin2 = 1;
return (ibuff2 + off);
}
hitin2 = 0;
if (ichanged) {
blkio(iblock, ibuff,
(ssize_t(*)(int, void *, size_t))write);
blkio(iblock, ibuff, (ssize_t(*)())write);
}
ichanged = 0;
iblock = bno;
blkio(bno, ibuff, (ssize_t(*)(int, void *, size_t))read);
blkio(bno, ibuff, (ssize_t(*)())read);
return (ibuff + off);
}
if (oblock >= 0) {
blkio(oblock, obuff,
(ssize_t(*)(int, void *, size_t))write);
blkio(oblock, obuff, (ssize_t(*)())write);
}
oblock = bno;
return (obuff + off);
@@ -305,7 +301,7 @@ blkio(bloc b, char *buf, ssize_t (*iofcn)(int, void *, size_t))
#ifdef INCORB
if (b < INCORB) {
if (iofcn == (ssize_t(*)(int, void *, size_t))read) {
if (iofcn == (ssize_t(*)())read) {
copy(buf, pagrnd(incorb[b+1]), (size_t) BUFSIZ);
return;
}
@@ -362,13 +358,13 @@ synctmp(void)
if (dol == zero)
return;
if (ichanged)
blkio(iblock, ibuff, (ssize_t(*)(int, void *, size_t))write);
blkio(iblock, ibuff, (ssize_t(*)())write);
ichanged = 0;
if (ichang2)
blkio(iblock2, ibuff2, (ssize_t(*)(int, void *, size_t))write);
blkio(iblock2, ibuff2, (ssize_t(*)())write);
ichang2 = 0;
if (oblock != -1)
blkio(oblock, obuff, (ssize_t(*)(int, void *, size_t))write);
blkio(oblock, obuff, (ssize_t(*)())write);
time(&H.Time);
uid = getuid();
*zero = (line) H.Time;
@@ -570,7 +566,7 @@ shread(void)
return (0);
}
int getREG(void);
int getREG();
void
putreg(int c)
@@ -661,9 +657,8 @@ YANKreg(register int c)
{
register line *addr;
register struct strreg *sp;
char *savelb;
char savelb[LBSIZE];
savelb = smalloc(LBSIZE);
if (isdigit(c))
kshift();
if (islower(c))
@@ -693,7 +688,6 @@ YANKreg(register int c)
rbflush();
killed();
CP(linebuf,savelb);
free(savelb);
}
void