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
@@ -39,25 +39,25 @@ struct input_file_ident {
dev_t device;
};
struct buffer_ctx {
struct buffer_ctx *prev; /* Pointer to previous context */
grecs_locus_t locus; /* Current input location */
size_t namelen; /* Length of the file name */
size_t xlines; /* Number of #line directives output so far */
struct input_file_ident id;
FILE *infile;
};
-extern int yy_grecs_flex_debug;
+extern int grecs_yy_flex_debug;
static struct buffer_ctx *context_stack;
static char *linebufbase = NULL;
static size_t linebufsize = 0;
#define INFILE context_stack->infile
#define LOCUS context_stack->locus
static char *linebuf;
static size_t bufsize;
static char *putback_buffer;
static size_t putback_size;
static size_t putback_max;
@@ -423,56 +423,56 @@ push_source(const char *name, int once)
/* Push current context */
ctx = grecs_malloc(sizeof(*ctx));
ctx->locus.file = grecs_install_text(name);
ctx->locus.line = 1;
ctx->xlines = 0;
ctx->namelen = strlen(ctx->locus.file);
ctx->id.i_node = st.st_ino;
ctx->id.device = st.st_dev;
ctx->infile = fp;
ctx->prev = context_stack;
context_stack = ctx;
- if (yy_grecs_flex_debug)
+ if (grecs_yy_flex_debug)
fprintf (stderr, "Processing file `%s'\n", name);
pp_line_stmt();
return 0;
}
static int
pop_source()
{
struct buffer_ctx *ctx;
if (!context_stack)
return 1;
fclose(INFILE);
/* Restore previous context */
ctx = context_stack->prev;
grecs_free(context_stack);
context_stack = ctx;
if (!context_stack) {
- if (yy_grecs_flex_debug)
+ if (grecs_yy_flex_debug)
fprintf (stderr, "End of input\n");
return 1;
}
LOCUS.line++;
- if (yy_grecs_flex_debug)
+ if (grecs_yy_flex_debug)
fprintf (stderr, "Resuming file `%s' at line %lu\n",
LOCUS.file, (unsigned long) LOCUS.line);
pp_line_stmt();
return 0;
}
static int
try_file(const char *name, int allow_cwd, int err_not_found, char **newp)
{
static char *cwd = ".";

Return to:

Send suggestions and report system problems to the System administrator.