Fix collision with getline(3)
Regen patches
This commit is contained in:
parent
0496894157
commit
7b2ebe8172
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419275
@ -1,5 +1,5 @@
|
||||
--- Makefile.orig Tue Mar 19 13:44:33 1996
|
||||
+++ Makefile Wed Dec 20 05:39:12 2000
|
||||
--- Makefile.orig 1996-03-19 04:44:33 UTC
|
||||
+++ Makefile
|
||||
@@ -27,16 +27,16 @@
|
||||
# LIBDIR and SHAREDIR. All others must already exist.
|
||||
|
||||
@ -22,7 +22,7 @@
|
||||
|
||||
# The install commands of BSD and System V differ in unpleasant ways:
|
||||
# -c: copy (BSD); -c dir: destination directory (SysV)
|
||||
@@ -50,12 +50,12 @@
|
||||
@@ -50,12 +50,12 @@ DFLTSHELL = /bin/csh
|
||||
INSTALLFLAGS = # -g bin -o root
|
||||
|
||||
# to install executable files
|
||||
@ -39,7 +39,7 @@
|
||||
|
||||
# These should all just be right if the above ones are.
|
||||
# You will confuse JOVE if you move anything from LIBDIR or SHAREDIR.
|
||||
@@ -79,7 +79,7 @@
|
||||
@@ -79,7 +79,7 @@ JOVETOOLM = $(MANDIR)/jovetool.$(MANEXT)
|
||||
# compiler, adding -Xa -v will increase compiler checking.
|
||||
# On DEC OSF/1, -std1 -O
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
|
||||
# For making dependencies under BSD systems
|
||||
DEPENDFLAG = -M
|
||||
@@ -163,13 +163,13 @@
|
||||
@@ -163,13 +163,13 @@ LDFLAGS =
|
||||
#
|
||||
# You can just say 'make SYSDEFS=-Dwhatever' on these systems.
|
||||
|
||||
@ -64,7 +64,7 @@
|
||||
|
||||
# For SYSVR4 (/usr/ucb/cc will NOT work because of setjmp.h):
|
||||
# CC = /usr/bin/cc
|
||||
@@ -213,7 +213,7 @@
|
||||
@@ -213,7 +213,7 @@ NROFF = nroff
|
||||
TROFF = troff -Tpost
|
||||
TROFFPOST = | /usr/lib/lp/postscript/dpost - >troff.out.ps
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- abbrev.c.orig Fri Mar 8 02:34:41 1996
|
||||
+++ abbrev.c Wed Dec 20 05:19:33 2000
|
||||
@@ -274,7 +274,16 @@
|
||||
--- abbrev.c.orig 1996-03-07 17:34:41 UTC
|
||||
+++ abbrev.c
|
||||
@@ -274,7 +274,16 @@ EditAbbrevs()
|
||||
"jabbXXXXXX"
|
||||
#endif
|
||||
);
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- io.c.orig Fri Mar 8 02:34:42 1996
|
||||
+++ io.c Wed Dec 20 05:19:17 2000
|
||||
@@ -1193,10 +1193,16 @@
|
||||
--- io.c.orig 1996-03-07 17:34:42 UTC
|
||||
+++ io.c
|
||||
@@ -1193,10 +1193,16 @@ tmpinit()
|
||||
#endif
|
||||
);
|
||||
tfname = copystr(buf);
|
||||
@ -17,3 +17,15 @@
|
||||
#else /* MSFILESYSTEM */
|
||||
tmpfd = open(tfname, O_CREAT|O_EXCL|O_BINARY|O_RDWR, S_IWRITE|S_IREAD);
|
||||
#endif /* MSFILESYSTEM */
|
||||
@@ -1240,9 +1246,9 @@ int Jr_Len; /* length of Just Read Line
|
||||
|
||||
void
|
||||
#ifdef USE_PROTOTYPES
|
||||
-getline proto((daddr addr, register char *buf))
|
||||
+get_line proto((daddr addr, register char *buf))
|
||||
#else
|
||||
-getline(addr, buf)
|
||||
+get_line(addr, buf)
|
||||
daddr addr;
|
||||
register char *buf;
|
||||
#endif
|
||||
|
11
editors/jove/files/patch-io.h
Normal file
11
editors/jove/files/patch-io.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- io.h.orig 1996-03-07 17:34:42 UTC
|
||||
+++ io.h
|
||||
@@ -37,7 +37,7 @@ extern void
|
||||
close_file proto((File *fp)),
|
||||
d_cache_init proto((void)),
|
||||
file_write proto((char *fname, bool app)),
|
||||
- getline proto((daddr addr,char *buf)),
|
||||
+ get_line proto((daddr addr,char *buf)),
|
||||
lsave proto((void)),
|
||||
putreg proto((File *fp,LinePtr line1,int char1,LinePtr line2,int char2,bool makesure)),
|
||||
read_file proto((char *file, bool is_insert)),
|
@ -1,19 +1,11 @@
|
||||
*** mouse.c.org Thu Mar 7 12:34:43 1996
|
||||
--- mouse.c Thu Jun 25 14:17:16 1998
|
||||
***************
|
||||
*** 266,272 ****
|
||||
/* Format of command to xterm to start or stop mouse hilite tracking:
|
||||
* ^[ [ func ; startx ; starty ; firstrow ; lastrow T
|
||||
*/
|
||||
! #define XTERMBUG
|
||||
#ifdef XTERMBUG
|
||||
static const char hl_fmt[] = "\033[%d;%d;%d;%d;%dTX";
|
||||
#else
|
||||
--- 266,272 ----
|
||||
/* Format of command to xterm to start or stop mouse hilite tracking:
|
||||
* ^[ [ func ; startx ; starty ; firstrow ; lastrow T
|
||||
*/
|
||||
! /* #undef XTERMBUG */
|
||||
#ifdef XTERMBUG
|
||||
static const char hl_fmt[] = "\033[%d;%d;%d;%d;%dTX";
|
||||
#else
|
||||
--- mouse.c.orig 1996-03-07 17:34:43 UTC
|
||||
+++ mouse.c
|
||||
@@ -266,7 +266,7 @@ int mproto;
|
||||
/* Format of command to xterm to start or stop mouse hilite tracking:
|
||||
* ^[ [ func ; startx ; starty ; firstrow ; lastrow T
|
||||
*/
|
||||
-#define XTERMBUG
|
||||
+/* #undef XTERMBUG */
|
||||
#ifdef XTERMBUG
|
||||
static const char hl_fmt[] = "\033[%d;%d;%d;%d;%dTX";
|
||||
#else
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- proc.c.orig Sat Mar 9 06:46:40 1996
|
||||
+++ proc.c Wed Dec 20 05:20:13 2000
|
||||
@@ -827,8 +827,14 @@
|
||||
--- proc.c.orig 1996-03-08 21:46:40 UTC
|
||||
+++ proc.c
|
||||
@@ -827,8 +827,14 @@ UnixToBuf(flags, bnm, InFName, cmd)
|
||||
int ph;
|
||||
|
||||
swritef(pnbuf, sizeof(pnbuf), "%s/%s", TmpDir, "jpXXXXXX");
|
||||
@ -16,7 +16,7 @@
|
||||
complain("cannot make pipe for filter: %s", strerror(errno));
|
||||
close(1);
|
||||
close(2);
|
||||
@@ -923,7 +929,18 @@
|
||||
@@ -923,7 +929,18 @@ bool wrap;
|
||||
jmp_buf sav_jmp;
|
||||
|
||||
swritef(tnambuf, sizeof(tnambuf), "%s/%s", TmpDir, "jfXXXXXX");
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- rec.c.orig Fri Mar 8 02:34:43 1996
|
||||
+++ rec.c Wed Dec 20 05:19:50 2000
|
||||
@@ -55,8 +55,12 @@
|
||||
--- rec.c.orig 1996-03-07 17:34:43 UTC
|
||||
+++ rec.c
|
||||
@@ -55,8 +55,12 @@ recinit()
|
||||
#endif
|
||||
);
|
||||
recfname = copystr(buf);
|
||||
|
20
editors/jove/files/patch-recover.c
Normal file
20
editors/jove/files/patch-recover.c
Normal file
@ -0,0 +1,20 @@
|
||||
--- recover.c.orig 1996-03-07 17:34:43 UTC
|
||||
+++ recover.c
|
||||
@@ -160,7 +160,7 @@ size_t n;
|
||||
private char *getblock proto((daddr atl));
|
||||
|
||||
void
|
||||
-getline(tl, buf)
|
||||
+get_line(tl, buf)
|
||||
daddr tl;
|
||||
char *buf;
|
||||
{
|
||||
@@ -561,7 +561,7 @@ FILE *out;
|
||||
Nchars = Nlines = 0L;
|
||||
while (--nlines >= 0) {
|
||||
addr = getaddr(ptrs_fp);
|
||||
- getline(addr, buf);
|
||||
+ get_line(addr, buf);
|
||||
Nlines += 1;
|
||||
Nchars += 1 + strlen(buf);
|
||||
fputs(buf, out);
|
@ -1,5 +1,5 @@
|
||||
--- sysdep.h.orig Mon Jul 20 16:39:19 1998
|
||||
+++ sysdep.h Mon Jul 20 16:40:08 1998
|
||||
--- sysdep.h.orig 1996-03-19 04:44:33 UTC
|
||||
+++ sysdep.h
|
||||
@@ -154,6 +154,7 @@
|
||||
# define USE_FSYNC 1
|
||||
# define USE_FSTAT 1
|
||||
|
Loading…
Reference in New Issue
Block a user