summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2006-03-21 21:22:33 +0000
committerJohn Millaway <john43@users.sourceforge.net>2006-03-21 21:22:33 +0000
commit84807fceb85ea583aedd2a0701966a484acb0d35 (patch)
treedb4299c1edcb07c33dcd74f2411e5a17f90b63da /main.c
parentd71e70468f7f654b56941eb73a3e5cf15fca6091 (diff)
Reverted previous input filter changes.
Added noop macro to scanner output. Modified scan.l to escape m4 quotes found in user code.
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8a5d494..0ead73a 100644
--- a/main.c
+++ b/main.c
@@ -137,6 +137,8 @@ static char outfile_path[MAXLINE];
static int outfile_created = 0;
static char *skelname = NULL;
static int _stdout_closed = 0; /* flag to prevent double-fclose() on stdout. */
+const char *escaped_qstart = "[[]]M4_YY_NOOP[M4_YY_NOOP[M4_YY_NOOP[[]]";
+const char *escaped_qend = "[[]]M4_YY_NOOP]M4_YY_NOOP]M4_YY_NOOP[[]]";
/* For debugging. The max number of filters to apply to skeleton. */
static int preproc_level = 1000;
@@ -367,7 +369,7 @@ void check_options ()
/* For debugging, only run the requested number of filters. */
if (preproc_level > 0) {
filter_truncate(output_chain, preproc_level);
- filter_apply_chain(output_chain, true);
+ filter_apply_chain(output_chain);
}
yyout = stdout;