aboutsummaryrefslogtreecommitdiff
path: root/src/preproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/preproc.c')
-rw-r--r--src/preproc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/preproc.c b/src/preproc.c
index 28f473f..cff8224 100644
--- a/src/preproc.c
+++ b/src/preproc.c
@@ -45,13 +45,13 @@ struct buffer_ctx {
45 size_t namelen; /* Length of the file name */ 45 size_t namelen; /* Length of the file name */
46 size_t xlines; /* Number of #line directives output so far */ 46 size_t xlines; /* Number of #line directives output so far */
47 struct input_file_ident id; 47 struct input_file_ident id;
48 FILE *infile; 48 FILE *infile;
49}; 49};
50 50
51extern int yy_grecs_flex_debug; 51extern int grecs_yy_flex_debug;
52static struct buffer_ctx *context_stack; 52static struct buffer_ctx *context_stack;
53static char *linebufbase = NULL; 53static char *linebufbase = NULL;
54static size_t linebufsize = 0; 54static size_t linebufsize = 0;
55 55
56#define INFILE context_stack->infile 56#define INFILE context_stack->infile
57#define LOCUS context_stack->locus 57#define LOCUS context_stack->locus
@@ -429,13 +429,13 @@ push_source(const char *name, int once)
429 ctx->id.i_node = st.st_ino; 429 ctx->id.i_node = st.st_ino;
430 ctx->id.device = st.st_dev; 430 ctx->id.device = st.st_dev;
431 ctx->infile = fp; 431 ctx->infile = fp;
432 ctx->prev = context_stack; 432 ctx->prev = context_stack;
433 context_stack = ctx; 433 context_stack = ctx;
434 434
435 if (yy_grecs_flex_debug) 435 if (grecs_yy_flex_debug)
436 fprintf (stderr, "Processing file `%s'\n", name); 436 fprintf (stderr, "Processing file `%s'\n", name);
437 437
438 pp_line_stmt(); 438 pp_line_stmt();
439 439
440 return 0; 440 return 0;
441} 441}
@@ -453,20 +453,20 @@ pop_source()
453 /* Restore previous context */ 453 /* Restore previous context */
454 ctx = context_stack->prev; 454 ctx = context_stack->prev;
455 grecs_free(context_stack); 455 grecs_free(context_stack);
456 context_stack = ctx; 456 context_stack = ctx;
457 457
458 if (!context_stack) { 458 if (!context_stack) {
459 if (yy_grecs_flex_debug) 459 if (grecs_yy_flex_debug)
460 fprintf (stderr, "End of input\n"); 460 fprintf (stderr, "End of input\n");
461 return 1; 461 return 1;
462 } 462 }
463 463
464 LOCUS.line++; 464 LOCUS.line++;
465 465
466 if (yy_grecs_flex_debug) 466 if (grecs_yy_flex_debug)
467 fprintf (stderr, "Resuming file `%s' at line %lu\n", 467 fprintf (stderr, "Resuming file `%s' at line %lu\n",
468 LOCUS.file, (unsigned long) LOCUS.line); 468 LOCUS.file, (unsigned long) LOCUS.line);
469 469
470 pp_line_stmt(); 470 pp_line_stmt();
471 471
472 return 0; 472 return 0;

Return to:

Send suggestions and report system problems to the System administrator.