diff 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
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);