mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
The MacOS toolbox modules have acquired an _ in front of their name. Normal usage is through a wrapper module (without underscore) which lives in the Carbon package.
This commit is contained in:
parent
88e0b5bee0
commit
77105a960b
26 changed files with 178 additions and 172 deletions
|
@ -93,7 +93,7 @@ initstuff = initstuff + """
|
|||
PyMac_INIT_TOOLBOX_OBJECT_CONVERT(Handle, OptResObj_Convert);
|
||||
"""
|
||||
|
||||
module = MacModule('Res', 'Res', includestuff, finalstuff, initstuff)
|
||||
module = MacModule('_Res', 'Res', includestuff, finalstuff, initstuff)
|
||||
|
||||
getattrHookCode = """
|
||||
if (strcmp(name, "size") == 0)
|
||||
|
@ -192,5 +192,5 @@ execfile('resedit.py')
|
|||
for f in functions: module.add(f)
|
||||
for f in resmethods: resobject.add(f)
|
||||
|
||||
SetOutputFileName('Resmodule.c')
|
||||
SetOutputFileName('_Resmodule.c')
|
||||
module.generate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue