diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2018-05-28 19:12:29 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2018-05-31 23:39:35 +0200 |
commit | 646a5c1cbfd95873950a87b5f75d52073a967023 (patch) | |
tree | b8b8d2ab3b0d432ea69ad1a64d1c789649d65020 /source/d/p2c/p2c.getline.diff | |
parent | d31c50870d0bee042ce660e445c9294a59a3a65b (diff) | |
download | current-646a5c1cbfd95873950a87b5f75d52073a967023.tar.gz current-646a5c1cbfd95873950a87b5f75d52073a967023.tar.xz |
Mon May 28 19:12:29 UTC 201820180528191229
a/pkgtools-15.0-noarch-13.txz: Rebuilt.
installpkg: default line length for --terselength is the number of columns.
removepkg: added --terse mode.
upgradepkg: default line length for --terselength is the number of columns.
upgradepkg: accept -option in addition to --option.
ap/vim-8.1.0026-x86_64-1.txz: Upgraded.
d/bison-3.0.5-x86_64-1.txz: Upgraded.
e/emacs-26.1-x86_64-1.txz: Upgraded.
kde/kopete-4.14.3-x86_64-8.txz: Rebuilt.
Recompiled against libidn-1.35.
n/conntrack-tools-1.4.5-x86_64-1.txz: Upgraded.
n/libnetfilter_conntrack-1.0.7-x86_64-1.txz: Upgraded.
n/libnftnl-1.1.0-x86_64-1.txz: Upgraded.
n/links-2.16-x86_64-2.txz: Rebuilt.
Rebuilt to enable X driver for -g mode.
n/lynx-2.8.9dev.19-x86_64-1.txz: Upgraded.
n/nftables-0.8.5-x86_64-1.txz: Upgraded.
n/p11-kit-0.23.11-x86_64-1.txz: Upgraded.
n/ulogd-2.0.7-x86_64-1.txz: Upgraded.
n/whois-5.3.1-x86_64-1.txz: Upgraded.
xap/network-manager-applet-1.8.12-x86_64-1.txz: Upgraded.
xap/vim-gvim-8.1.0026-x86_64-1.txz: Upgraded.
Diffstat (limited to 'source/d/p2c/p2c.getline.diff')
-rw-r--r-- | source/d/p2c/p2c.getline.diff | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/source/d/p2c/p2c.getline.diff b/source/d/p2c/p2c.getline.diff new file mode 100644 index 000000000..25df12c15 --- /dev/null +++ b/source/d/p2c/p2c.getline.diff @@ -0,0 +1,118 @@ +--- ./src/lex.c.orig 1993-12-07 23:36:49.000000000 -0600 ++++ ./src/lex.c 2018-02-01 15:27:54.224877642 -0600 +@@ -1044,7 +1044,7 @@ + + + +-void getline() ++void p2c_getline() + { + char *cp, *cp2; + +@@ -1071,7 +1071,7 @@ + infname = stralloc(cp); + infname[cp2 - cp] = 0; + } +- getline(); ++ p2c_getline(); + return; + } + if (copysource && *inbuf) { +@@ -1088,7 +1088,7 @@ + fprintf(stderr, "\n"); + if (inputkind == INP_INCFILE) { + pop_input(); +- getline(); ++ p2c_getline(); + } else + strcpy(inbuf, "\001"); + } +@@ -1179,7 +1179,7 @@ + infname = fname; + inf_lnum = 0; + } else +- inf_lnum--; /* adjust for extra getline() */ ++ inf_lnum--; /* adjust for extra p2c_getline() */ + *inbuf = 0; + inbufptr = inbuf; + gettok(); +@@ -2367,7 +2367,7 @@ + else + commentline(CMT_POST); + trailing = 0; +- getline(); ++ p2c_getline(); + i = 0; + for (;;) { + if (*inbufptr == ' ') { +@@ -2419,7 +2419,7 @@ + if (isspace(*inbufptr)) { + inbufptr++; + } else if (!*inbufptr) { +- getline(); ++ p2c_getline(); + } else if (*inbufptr == '{') { + inbufptr++; + comment(0); +@@ -2513,7 +2513,7 @@ + switch (*inbufptr++) { + + case 0: +- getline(); ++ p2c_getline(); + break; + + case ' ': +@@ -2765,7 +2765,7 @@ + case 0: + if (commenting_flag) + saveinputcomment(inbufptr-1); +- getline(); ++ p2c_getline(); + cp = curtokbuf; + for (;;) { + inbufindent = 0; +@@ -2782,7 +2782,7 @@ + } + if (!*inbufptr && !commenting_flag) { /* blank line */ + *cp++ = '\001'; +- getline(); ++ p2c_getline(); + } else + break; + } +@@ -2797,10 +2797,10 @@ + *cp++ = '\001'; + *cp++ = '\014'; + if (!*inbufptr && !commenting_flag) { +- getline(); ++ p2c_getline(); + while (!*inbufptr) { + *cp++ = '\001'; +- getline(); ++ p2c_getline(); + } + } + *cp = 0; +--- ./src/parse.c.orig 2018-02-01 15:25:56.206878896 -0600 ++++ ./src/parse.c 2018-02-01 15:28:00.997877570 -0600 +@@ -5073,7 +5073,7 @@ + out_include(fname, 1); + outsection(majorspace); + pop_input(); +- getline(); ++ p2c_getline(); + gettok(); + } + +--- ./src/TAGS.orig 1993-12-07 23:36:55.000000000 -0600 ++++ ./src/TAGS 2018-02-01 15:27:50.927877677 -0600 +@@ -176,7 +176,7 @@ + char getchartok(2466,60243 + Static int getflag(2451,60064 + char *getinlinepart(2414,59241 +-void getline(1047,22000 ++void p2c_getline(1047,22000 + char *getparenstr(2481,60499 + void gettok(2728,65611 + void gettok(2752,66193 |