diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1999-10-01 08:28:01 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1999-10-01 08:28:01 (GMT) |
commit | 91cae85c32022e4156be8b14487ce0fbc49814bc (patch) | |
tree | 5526e431308eb908d3db5be0d3f53950ddae44da /Mac/Tools/macfreeze/macgen_src.py | |
parent | 2afc2c74cdf839e049ed6917986edcbf09eef7bd (diff) | |
download | cpython-91cae85c32022e4156be8b14487ce0fbc49814bc.zip cpython-91cae85c32022e4156be8b14487ce0fbc49814bc.tar.gz cpython-91cae85c32022e4156be8b14487ce0fbc49814bc.tar.bz2 |
Optionally bracket all external declarations of init functions with "ifndef"s.
Diffstat (limited to 'Mac/Tools/macfreeze/macgen_src.py')
-rw-r--r-- | Mac/Tools/macfreeze/macgen_src.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Tools/macfreeze/macgen_src.py b/Mac/Tools/macfreeze/macgen_src.py index 198d403..c3e4541 100644 --- a/Mac/Tools/macfreeze/macgen_src.py +++ b/Mac/Tools/macfreeze/macgen_src.py @@ -15,7 +15,7 @@ PROJECT_TEMPLATE=os.path.join(TEMPLATEDIR, ':frozen.prj') CONFIG_TEMPLATE=os.path.join(TEMPLATEDIR, ':templatefrozenconfig.c') BUNDLE_TEMPLATE=os.path.join(TEMPLATEDIR, ':frozenbundle.rsrc') -def generate(output, module_dict, debug=0): +def generate(output, module_dict, debug=0, with_ifdef=0): problems = 0 output_created=0 if not os.path.exists(output): @@ -91,7 +91,7 @@ def generate(output, module_dict, debug=0): c_modules.append(module) ifp = open(CONFIG_TEMPLATE) ofp = open(config_name, 'w') - makeconfig.makeconfig(ifp, ofp, c_modules) + makeconfig.makeconfig(ifp, ofp, c_modules, with_ifdef) ifp.close() ofp.close() MacOS.SetCreatorAndType(config_name, 'CWIE', 'TEXT') |