pkgsrc/lang/p2c/patches/patch-ae
dholland f25bee23a2 Assorted fixes:
- explain why we need post-extract chmods
 - sort PLIST
 - add patch comments
 - clean up some pkglint
 - fix a symbol name conflict with logf (from math.h + a gcc builtin)
 - fix some other bugs/issues found by gcc
 - add standard headers
 - remove some bogus BSD/System V include probing
 - probably fix gcc 4.5 build (not fully tested)
 - bump PKGREVISION
2011-12-18 16:54:08 +00:00

45 lines
1.3 KiB
Text

$NetBSD: patch-ae,v 1.2 2011/12/18 16:54:09 dholland Exp $
- fix symbol conflict with getline (which is now a POSIX thing)
- fix symbol conflict with logf (from math.h)
--- parse.c.orig 1991-04-24 20:30:42.000000000 +0000
+++ parse.c
@@ -3150,7 +3150,7 @@ Static Stmt *p_body()
long saveserial;
if (verbose)
- fprintf(logf, "%s, %d/%d: Translating %s (in %s)\n",
+ fprintf(loggf, "%s, %d/%d: Translating %s (in %s)\n",
infname, inf_lnum, outf_lnum,
curctx->name, curctx->ctx->name);
notephase = 1;
@@ -3769,7 +3769,7 @@ Token blkind;
out_include(fname, 1);
outsection(majorspace);
pop_input();
- getline();
+ my_getline();
gettok();
}
@@ -4157,8 +4157,8 @@ int need;
if (!fp) {
if (need)
perror(infnbuf);
- if (logf)
- fprintf(logf, "(Unable to open search file \"%s\")\n", infnbuf);
+ if (loggf)
+ fprintf(loggf, "(Unable to open search file \"%s\")\n", infnbuf);
return 0;
}
flushcomments(NULL, -1, -1);
@@ -4195,7 +4195,7 @@ int need;
else
printf("Reading import text for \"%s\"\n", mod->name);
if (verbose)
- fprintf(logf, "%s, %d/%d: Reading import text for \"%s\"\n",
+ fprintf(loggf, "%s, %d/%d: Reading import text for \"%s\"\n",
infname, inf_lnum, outf_lnum, mod->name);
pushctx(mod);
gettok();