aboutsummaryrefslogtreecommitdiff
path: root/src/preproc.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 17:24:18 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 18:55:38 +0300
commit4b0e477181f51c12f62236ec91f4bb714125393d (patch)
tree9ddb2c5c16549ce5bf6056e45aef3646402accbc /src/preproc.c
parentcede19f7c5a151c1aeb7c93d1793183bca8e8289 (diff)
downloadgrecs-4b0e477181f51c12f62236ec91f4bb714125393d.tar.gz
grecs-4b0e477181f51c12f62236ec91f4bb714125393d.tar.bz2
Support standalone compilation.
* AUTHORS, COPYING, NEWS, README: New files. * .gitignore: Update. * am/.gitignore: New file. * build-aux/.gitignore: New file. * build-aux/ylwrap: Remove. * Makefile.am: Define ACLOCAL_AMFLAGS [GRECS_CHANGELOG]: Build ChangeLog. * am/grecs.m4: Define GRECS_CHANGELOG and GRECS_SRCDIR. Fixup first argument, if it is [.]. * configure.ac: New file. * src/Make-inst.am (include_HEADERS): Add wordsplit.h. Install libgrecs.m4. * Make-shared.am (noinst_HEADERS): Add wordsplit.h. * src/Make-static.am: Likewise. * src/Make.am (GRECS_SRC): Remove wordsplit.h (noinst_HEADERS): Add yygrecs.h (YLWRAP): Remove. * src/libgrecs.m4: New file. * src/yygrecs.h: New file. * src/grecs-gram.y: Include yygrecs.h. * src/grecs-lex.l: Likewise. * src/preproc.c (yy_grecs_flex_debug): Rename to grecs_yy_flex_debug.
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
@@ -48,7 +48,7 @@ struct buffer_ctx {
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;
@@ -432,7 +432,7 @@ push_source(const char *name, int once)
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();
@@ -456,14 +456,14 @@ pop_source()
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

Return to:

Send suggestions and report system problems to the System administrator.