@@ -55,17 +55,17 @@ int fppPreProcess(struct fppTag *tags)
55
55
global -> wrongline = 0 ;
56
56
global -> errors = 0 ;
57
57
global -> recursion = 0 ;
58
- global -> rec_recover = TRUE ;
59
- global -> instring = FALSE ;
60
- global -> inmacro = FALSE ;
58
+ global -> rec_recover = FPP_TRUE ;
59
+ global -> instring = FPP_FALSE ;
60
+ global -> inmacro = FPP_FALSE ;
61
61
global -> workp = NULL ;
62
- global -> keepcomments = FALSE ; /* Write out comments flag */
63
- global -> cflag = FALSE ; /* -C option (keep comments) */
64
- global -> eflag = FALSE ; /* -E option (never fail) */
62
+ global -> keepcomments = FPP_FALSE ; /* Write out comments flag */
63
+ global -> cflag = FPP_FALSE ; /* -C option (keep comments) */
64
+ global -> eflag = FPP_FALSE ; /* -E option (never fail) */
65
65
global -> nflag = 0 ; /* -N option (no predefines) */
66
- global -> wflag = FALSE ; /* -W option (write #defines) */
66
+ global -> wflag = FPP_FALSE ; /* -W option (write #defines) */
67
67
68
- global -> ifstack [0 ]= TRUE ; /* #if information */
68
+ global -> ifstack [0 ]= FPP_TRUE ; /* #if information */
69
69
global -> ifptr = global -> ifstack ;
70
70
global -> incend = global -> incdir ;
71
71
@@ -106,23 +106,23 @@ int fppPreProcess(struct fppTag *tags)
106
106
global -> first_file = NULL ;
107
107
global -> userdata = NULL ;
108
108
109
- global -> linelines = TRUE ;
110
- global -> warnillegalcpp = FALSE ;
111
- global -> outputLINE = TRUE ;
112
- global -> warnnoinclude = TRUE ;
113
- global -> showversion = TRUE ;
114
- global -> showincluded = FALSE ;
115
- global -> showspace = FALSE ;
116
- global -> nestcomments = FALSE ;
117
- global -> warnnestcomments = FALSE ;
118
- global -> outputfile = TRUE ;
109
+ global -> linelines = FPP_TRUE ;
110
+ global -> warnillegalcpp = FPP_FALSE ;
111
+ global -> outputLINE = FPP_TRUE ;
112
+ global -> warnnoinclude = FPP_TRUE ;
113
+ global -> showversion = FPP_TRUE ;
114
+ global -> showincluded = FPP_FALSE ;
115
+ global -> showspace = FPP_FALSE ;
116
+ global -> nestcomments = FPP_FALSE ;
117
+ global -> warnnestcomments = FPP_FALSE ;
118
+ global -> outputfile = FPP_TRUE ;
119
119
global -> included = 0 ;
120
120
121
- global -> comment = FALSE ;
122
- global -> rightconcat = FALSE ;
121
+ global -> comment = FPP_FALSE ;
122
+ global -> rightconcat = FPP_FALSE ;
123
123
global -> work [0 ] = '\0' ;
124
124
global -> initialfunc = NULL ;
125
- global -> allowincludelocal = TRUE ;
125
+ global -> allowincludelocal = FPP_TRUE ;
126
126
127
127
memset (global -> symtab , 0 , SBSIZE * sizeof (DEFBUF * ));
128
128
@@ -209,7 +209,7 @@ ReturnCode cppmain(struct Global *global)
209
209
sharp (global );
210
210
/*
211
211
* This loop is started "from the top" at the beginning of each line
212
- * wrongline is set TRUE in many places if it is necessary to write
212
+ * wrongline is set FPP_TRUE in many places if it is necessary to write
213
213
* a #line record. (But we don't write them when expanding macros.)
214
214
*
215
215
* The counter variable has two different uses: at
@@ -225,13 +225,13 @@ ReturnCode cppmain(struct Global *global)
225
225
include = global -> included ;
226
226
227
227
while (include -- ) {
228
- openinclude (global , global -> include [(unsigned )include ], TRUE );
228
+ openinclude (global , global -> include [(unsigned )include ], FPP_TRUE );
229
229
}
230
230
231
231
for (;;) {
232
232
counter = 0 ; /* Count empty lines */
233
233
for (;;) { /* For each line, ... */
234
- global -> comment = FALSE ; /* No comment yet! */
234
+ global -> comment = FPP_FALSE ; /* No comment yet! */
235
235
global -> chpos = 0 ; /* Count whitespaces */
236
236
while (type [(c = get (global ))] == SPA ) /* Skip leading blanks */
237
237
if (global -> showspace ) {
@@ -248,7 +248,7 @@ ReturnCode cppmain(struct Global *global)
248
248
++ counter ; /* Do nothing now */
249
249
}
250
250
else if (c == '#' ) { /* Is 1st non-space '#' */
251
- global -> keepcomments = FALSE ; /* Don't pass comments */
251
+ global -> keepcomments = FPP_FALSE ; /* Don't pass comments */
252
252
ret = control (global , & counter ); /* Yes, do a #command */
253
253
if (ret )
254
254
return (ret );
@@ -388,7 +388,7 @@ ReturnCode cppmain(struct Global *global)
388
388
if (a == global -> excluded ) {
389
389
expstuff (global , "__brace__" , "{" );
390
390
expstuff (global , "__init_func__" , global -> initialfunc );
391
- initfunc = TRUE ;
391
+ initfunc = FPP_TRUE ;
392
392
}
393
393
}
394
394
@@ -475,7 +475,7 @@ ReturnCode cppmain(struct Global *global)
475
475
if (c == '\n' ) { /* Compiling at EOL? */
476
476
Putchar (global , '\n' ); /* Output newline, if */
477
477
if (global -> infile -> fp == NULL ) /* Expanding a macro, */
478
- global -> wrongline = TRUE ; /* Output # line later */
478
+ global -> wrongline = FPP_TRUE ; /* Output # line later */
479
479
}
480
480
} /* Continue until EOF */
481
481
@@ -491,7 +491,7 @@ ReturnCode cppmain(struct Global *global)
491
491
}
492
492
}
493
493
if (global -> wflag ) {
494
- global -> out = TRUE ; /* enable output */
494
+ global -> out = FPP_TRUE ; /* enable output */
495
495
outdefines (global ); /* Write out #defines */
496
496
}
497
497
return (FPP_OK );
@@ -592,6 +592,6 @@ void sharp(struct Global *global)
592
592
}
593
593
}
594
594
Putchar (global , '\n' );
595
- global -> wrongline = FALSE ;
595
+ global -> wrongline = FPP_FALSE ;
596
596
return ;
597
597
}
0 commit comments