From 26c4770bab0f40e5d1883827706bfdf72a1a176b Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sun, 26 Nov 2017 13:33:18 +0100 Subject: [PATCH] Remove mcpp_mode. Use preproc=='mcpp' instead, which works the same and adds less noise. --- main.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.py b/main.py index a33e8b1..382968c 100755 --- a/main.py +++ b/main.py @@ -403,7 +403,6 @@ def main(argv): predefines = True script_header = '' script_timestamp = '' - mcpp_mode = False preshow = False raise_exception = False prettify = False @@ -471,7 +470,6 @@ def main(argv): % (preproc, u"', '".join(supported))) return 1 - mcpp_mode = False del preproc_cmdline[1:] if preproc == 'gcpp': @@ -481,7 +479,6 @@ def main(argv): ] elif preproc == 'mcpp': - mcpp_mode = True preproc_cmdline = [ 'mcpp', '-e', 'UTF-8', '-I-', '-N', '-3', '-j', '-V199901L', @@ -627,7 +624,7 @@ def main(argv): # At this point, for the external preprocessor to work we need the # script as a byte array, not as unicode, but it should be UTF-8. script = PreparePreproc(script) - if mcpp_mode: + if preproc == 'mcpp': # As a special treatment for mcpp, we force it to output its # macros so we can read if USE_xxx are defined. With GCC that # is achieved with -dN, but mcpp has no command line option.