diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-20 04:04:41 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-11-20 04:04:41 +0000 |
commit | a300e998432c9df806d767549742a9b28b331da6 (patch) | |
tree | 95958e1d6d7816b7c75a61fac6a7ebccc09c4fa8 /usr.bin/lex | |
parent | 93d7f55b038092ded0514b3f745fd014c1845492 (diff) |
Always use the system m4.
Diffstat (limited to 'usr.bin/lex')
-rw-r--r-- | usr.bin/lex/main.c | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/usr.bin/lex/main.c b/usr.bin/lex/main.c index 5acbff63dcb..77ad759bd21 100644 --- a/usr.bin/lex/main.c +++ b/usr.bin/lex/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.21 2015/11/19 23:34:56 mmcc Exp $ */ +/* $OpenBSD: main.c,v 1.22 2015/11/20 04:04:40 millert Exp $ */ /* flex - tool to generate fast lexical analyzers */ @@ -228,8 +228,12 @@ main(argc, argv) void check_options() { +<<<<<<< main.c + int i; +======= int i; const char *m4 = NULL; +>>>>>>> 1.20 if (lex_compat) { if (C_plus_plus) @@ -350,6 +354,21 @@ check_options() outfile_created = 1; } +<<<<<<< main.c + + + /* Setup the filter chain. */ + output_chain = filter_create_int(NULL, filter_tee_header, headerfilename); + filter_create_ext(output_chain, M4, "-P", 0); + filter_create_int(output_chain, filter_fix_linedirs, NULL); + + /* For debugging, only run the requested number of filters. */ + if (preproc_level > 0) { + filter_truncate(output_chain, preproc_level); + filter_apply_chain(output_chain); + } + yyout = stdout; +======= /* Setup the filter chain. */ output_chain = filter_create_int(NULL, filter_tee_header, headerfilename); if (!(m4 = getenv("M4"))) @@ -363,6 +382,7 @@ check_options() filter_apply_chain(output_chain); } yyout = stdout; +>>>>>>> 1.20 /* always generate the tablesverify flag. */ |