|
Lines 1-74
Link Here
|
| 1 |
--- lex.c.orig |
|
|
| 2 |
+++ lex.c |
| 3 |
@@ -520,7 +520,7 @@ |
| 4 |
if (outf != stdout) |
| 5 |
printf("Translation aborted: Too many errors.\n"); |
| 6 |
if (verbose) |
| 7 |
- fprintf(logf, "Translation aborted: Too many errors.\n"); |
| 8 |
+ fprintf(p2c_logf, "Translation aborted: Too many errors.\n"); |
| 9 |
closelogfile(); |
| 10 |
exit_failure(); |
| 11 |
} |
| 12 |
@@ -541,9 +541,9 @@ |
| 13 |
printf("Translation aborted.\n"); |
| 14 |
} |
| 15 |
if (verbose) { |
| 16 |
- fprintf(logf, "%s:%d:%d: %s\n", |
| 17 |
+ fprintf(p2c_logf, "%s:%d:%d: %s\n", |
| 18 |
infname, inf_lnum, outf_lnum, msg); |
| 19 |
- fprintf(logf, "Translation aborted.\n"); |
| 20 |
+ fprintf(p2c_logf, "Translation aborted.\n"); |
| 21 |
} |
| 22 |
closelogfile(); |
| 23 |
exit_failure(); |
| 24 |
@@ -562,7 +562,7 @@ |
| 25 |
{ |
| 26 |
if (checkeatnote(msg)) { |
| 27 |
if (verbose) |
| 28 |
- fprintf(logf, "%s:%d:%d: Omitted warning: %s\n", |
| 29 |
+ fprintf(p2c_logf, "%s:%d:%d: Omitted warning: %s\n", |
| 30 |
infname, inf_lnum, outf_lnum, msg); |
| 31 |
return; |
| 32 |
} |
| 33 |
@@ -577,7 +577,7 @@ |
| 34 |
{ |
| 35 |
if (checkeatnote(msg)) { |
| 36 |
if (verbose) |
| 37 |
- fprintf(logf, "%s:%d:%d: Omitted internal error in %s: %s\n", |
| 38 |
+ fprintf(p2c_logf, "%s:%d:%d: Omitted internal error in %s: %s\n", |
| 39 |
infname, inf_lnum, outf_lnum, proc, msg); |
| 40 |
return; |
| 41 |
} |
| 42 |
@@ -596,7 +596,7 @@ |
| 43 |
{ |
| 44 |
if (blockkind == TOK_IMPORT || checkeatnote(msg)) { |
| 45 |
if (verbose) |
| 46 |
- fprintf(logf, "%s:%d:%d: Omitted note: %s\n", |
| 47 |
+ fprintf(p2c_logf, "%s:%d:%d: Omitted note: %s\n", |
| 48 |
infname, inf_lnum, outf_lnum, msg); |
| 49 |
return; |
| 50 |
} |
| 51 |
@@ -612,12 +612,12 @@ |
| 52 |
{ |
| 53 |
if (blockkind == TOK_IMPORT || checkeatnote(msg)) { |
| 54 |
if (verbose) |
| 55 |
- fprintf(logf, "%s:%d:%d: Omitted end-note: %s\n", |
| 56 |
+ fprintf(p2c_logf, "%s:%d:%d: Omitted end-note: %s\n", |
| 57 |
infname, inf_lnum, outf_lnum, msg); |
| 58 |
return; |
| 59 |
} |
| 60 |
if (verbose) |
| 61 |
- fprintf(logf, "%s:%d:%d: Recorded end-note: %s\n", |
| 62 |
+ fprintf(p2c_logf, "%s:%d:%d: Recorded end-note: %s\n", |
| 63 |
infname, inf_lnum, outf_lnum, msg); |
| 64 |
(void) strlist_add(&endnotelist, msg); |
| 65 |
} |
| 66 |
@@ -1327,7 +1327,7 @@ |
| 67 |
else |
| 68 |
printf("Reading include file \"%s\"\n", fn); |
| 69 |
if (verbose) |
| 70 |
- fprintf(logf, "Reading include file \"%s\"\n", fn); |
| 71 |
+ fprintf(p2c_logf, "Reading include file \"%s\"\n", fn); |
| 72 |
if (expandincludes == 0) { |
| 73 |
push_input_file(fp, fn, 2); |
| 74 |
curtok = TOK_INCLUDE; |