From 4b0e477181f51c12f62236ec91f4bb714125393d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Sat, 7 May 2011 17:24:18 +0300 Subject: 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. --- src/preproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/preproc.c') 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 { 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; @@ -432,7 +432,7 @@ push_source(const char *name, int once) 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(); @@ -456,14 +456,14 @@ pop_source() 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); -- cgit v1.2.1