Mercurial > ~dholland > hg > tradcpp > index.cgi
changeset 71:dc63e70e425d
Accept and ignore -traditional.
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 16:05:42 -0400 |
parents | ca5e4e0237f5 |
children | b1d0f10e8d36 |
files | main.c |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/main.c Sun Mar 31 11:22:22 2013 -0400 +++ b/main.c Mon Jun 10 16:05:42 2013 -0400 @@ -82,6 +82,9 @@ .unused = false, }; +/* this is always true, but can be set explicitly with -traditional */ +static bool traditional = true; + //////////////////////////////////////////////////////////// // commandline macros @@ -733,6 +736,7 @@ { "fdollars-in-identifiers", &mode.input_allow_dollars, true }, { "fno-dollars-in-identifiers", &mode.input_allow_dollars, false }, { "nostdinc", &mode.do_stdinc, false }, + { "traditional", &traditional, true }, { "undef", &mode.do_stddef, false }, }; static const unsigned num_flag_options = HOWMANY(flag_options);