mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Optionally bracket all external declarations of init functions with "ifndef"s.
This commit is contained in:
parent
2afc2c74cd
commit
91cae85c32
2 changed files with 4 additions and 4 deletions
|
|
@ -38,7 +38,7 @@ def main():
|
|||
if mustwait:
|
||||
sys.exit(1)
|
||||
|
||||
def process(gentype, program, output, modules=[], module_files=[], debug=0):
|
||||
def process(gentype, program, output, modules=[], module_files=[], debug=0, with_ifdef=0):
|
||||
try:
|
||||
module_dict = macmodulefinder.process(program, modules, module_files, debug)
|
||||
except macmodulefinder.Missing, arg:
|
||||
|
|
@ -54,7 +54,7 @@ def process(gentype, program, output, modules=[], module_files=[], debug=0):
|
|||
return 1 # So the user can inspect it
|
||||
elif gentype == 'source':
|
||||
import macgen_src
|
||||
warnings = macgen_src.generate(output, module_dict, debug)
|
||||
warnings = macgen_src.generate(output, module_dict, debug, with_ifdef)
|
||||
return warnings
|
||||
elif gentype == 'resource':
|
||||
import macgen_rsrc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue