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