Mercurial > ~dholland > hg > tradcpp > index.cgi
comparison main.c @ 71:dc63e70e425d
Accept and ignore -traditional.
author | David A. Holland |
---|---|
date | Mon, 10 Jun 2013 16:05:42 -0400 |
parents | 57e0c7a50b2d |
children | 70d7ebeb4523 |
comparison
equal
deleted
inserted
replaced
70:ca5e4e0237f5 | 71:dc63e70e425d |
---|---|
80 .nestcomment = false, | 80 .nestcomment = false, |
81 .undef = false, | 81 .undef = false, |
82 .unused = false, | 82 .unused = false, |
83 }; | 83 }; |
84 | 84 |
85 /* this is always true, but can be set explicitly with -traditional */ | |
86 static bool traditional = true; | |
87 | |
85 //////////////////////////////////////////////////////////// | 88 //////////////////////////////////////////////////////////// |
86 // commandline macros | 89 // commandline macros |
87 | 90 |
88 struct commandline_macro { | 91 struct commandline_macro { |
89 struct place where; | 92 struct place where; |
731 { "Wundef", &warns.undef, true }, | 734 { "Wundef", &warns.undef, true }, |
732 { "Wunused-macros", &warns.unused, true }, | 735 { "Wunused-macros", &warns.unused, true }, |
733 { "fdollars-in-identifiers", &mode.input_allow_dollars, true }, | 736 { "fdollars-in-identifiers", &mode.input_allow_dollars, true }, |
734 { "fno-dollars-in-identifiers", &mode.input_allow_dollars, false }, | 737 { "fno-dollars-in-identifiers", &mode.input_allow_dollars, false }, |
735 { "nostdinc", &mode.do_stdinc, false }, | 738 { "nostdinc", &mode.do_stdinc, false }, |
739 { "traditional", &traditional, true }, | |
736 { "undef", &mode.do_stddef, false }, | 740 { "undef", &mode.do_stddef, false }, |
737 }; | 741 }; |
738 static const unsigned num_flag_options = HOWMANY(flag_options); | 742 static const unsigned num_flag_options = HOWMANY(flag_options); |
739 | 743 |
740 static const struct act_option act_options[] = { | 744 static const struct act_option act_options[] = { |