diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-23 13:51:46 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2001-08-23 13:51:46 (GMT) |
commit | 77105a960b078d79a4e7827b320e66217a78a0f8 (patch) | |
tree | d1fe67a54dc00b2dcb552d3187efd2fd9f2b2794 /Mac/Modules | |
parent | 88e0b5bee0e69b628a9358c987bf49ac885d1c21 (diff) | |
download | cpython-77105a960b078d79a4e7827b320e66217a78a0f8.zip cpython-77105a960b078d79a4e7827b320e66217a78a0f8.tar.gz cpython-77105a960b078d79a4e7827b320e66217a78a0f8.tar.bz2 |
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.
Diffstat (limited to 'Mac/Modules')
-rw-r--r-- | Mac/Modules/ae/aesupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/app/appsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/cf/cfsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/cm/cmsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/ctl/ctlsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/dlg/dlgsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/drag/dragsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/evt/evtsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/fm/fmsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/help/helpsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/icn/icnsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/list/listsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/macconfig.c | 92 | ||||
-rw-r--r-- | Mac/Modules/menu/menusupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/mlte/mltesupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/qd/qdsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/qdoffs/qdoffssupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/qt/qtsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/res/ressupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/scrap/scrapsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/snd/sndsupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/te/tesupport.py | 4 | ||||
-rw-r--r-- | Mac/Modules/win/winsupport.py | 4 |
23 files changed, 90 insertions, 90 deletions
diff --git a/Mac/Modules/ae/aesupport.py b/Mac/Modules/ae/aesupport.py index a7351e2..7a00986 100644 --- a/Mac/Modules/ae/aesupport.py +++ b/Mac/Modules/ae/aesupport.py @@ -164,7 +164,7 @@ initstuff = initstuff + """ PyMac_INIT_TOOLBOX_OBJECT_CONVERT(AEDesc, AEDesc_Convert); """ -module = MacModule('AE', 'AE', includestuff, finalstuff, initstuff) +module = MacModule('_AE', 'AE', includestuff, finalstuff, initstuff) class AEDescDefinition(GlobalObjectDefinition): @@ -222,5 +222,5 @@ execfile('aegen.py') for f in functions: module.add(f) for f in aedescmethods: aedescobject.add(f) -SetOutputFileName('AEmodule.c') +SetOutputFileName('_AEmodule.c') module.generate() diff --git a/Mac/Modules/app/appsupport.py b/Mac/Modules/app/appsupport.py index d370a57..5cfe29c 100644 --- a/Mac/Modules/app/appsupport.py +++ b/Mac/Modules/app/appsupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Appearance.h' # The Apple header file -MODNAME = 'App' # The name of the module +MODNAME = '_App' # The name of the module OBJECTNAME = 'UNUSED' # The basic name of the objects used here KIND = 'Record' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'App' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + KIND # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/cf/cfsupport.py b/Mac/Modules/cf/cfsupport.py index 95a26f6..1f3f357 100644 --- a/Mac/Modules/cf/cfsupport.py +++ b/Mac/Modules/cf/cfsupport.py @@ -8,10 +8,10 @@ import string # Declarations that change for each manager -MODNAME = 'CF' # The name of the module +MODNAME = '_CF' # The name of the module # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'CF' # The prefix for module-wide routines INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner OUTPUTFILE = MODNAME + "module.c" # The file generated by this program diff --git a/Mac/Modules/cm/cmsupport.py b/Mac/Modules/cm/cmsupport.py index cb9112b..6511a3c 100644 --- a/Mac/Modules/cm/cmsupport.py +++ b/Mac/Modules/cm/cmsupport.py @@ -7,10 +7,10 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Components.h' # The Apple header file -MODNAME = 'Cm' # The name of the module +MODNAME = '_Cm' # The name of the module # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Cm' # The prefix for module-wide routines C_OBJECTPREFIX = 'CmpObj' # The prefix for object methods CI_OBJECTPREFIX = 'CmpInstObj' INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/ctl/ctlsupport.py b/Mac/Modules/ctl/ctlsupport.py index 869811b..f65d7fb 100644 --- a/Mac/Modules/ctl/ctlsupport.py +++ b/Mac/Modules/ctl/ctlsupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Controls.h' # The Apple header file -MODNAME = 'Ctl' # The name of the module +MODNAME = '_Ctl' # The name of the module OBJECTNAME = 'Control' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Ctl' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + 'Handle' # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/dlg/dlgsupport.py b/Mac/Modules/dlg/dlgsupport.py index b166b42..af72b3a 100644 --- a/Mac/Modules/dlg/dlgsupport.py +++ b/Mac/Modules/dlg/dlgsupport.py @@ -240,7 +240,7 @@ class MyObjectDefinition(GlobalObjectDefinition): Output("DisposeDialog(%s);", itselfname) # Create the generator groups and link them -module = MacModule('Dlg', 'Dlg', includestuff, finalstuff, initstuff) +module = MacModule('_Dlg', 'Dlg', includestuff, finalstuff, initstuff) object = MyObjectDefinition('Dialog', 'DlgObj', 'DialogPtr') module.addobject(object) @@ -300,5 +300,5 @@ f = ManualGenerator("SetUserItemHandler", setuseritembody) module.add(f) # generate output -SetOutputFileName('Dlgmodule.c') +SetOutputFileName('_Dlgmodule.c') module.generate() diff --git a/Mac/Modules/drag/dragsupport.py b/Mac/Modules/drag/dragsupport.py index c35111e..e26ddd5 100644 --- a/Mac/Modules/drag/dragsupport.py +++ b/Mac/Modules/drag/dragsupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Drag.h' # The Apple header file -MODNAME = 'Drag' # The name of the module +MODNAME = '_Drag' # The name of the module OBJECTNAME = 'DragObj' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Drag' # The prefix for module-wide routines OBJECTTYPE = 'DragRef' # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/evt/evtsupport.py b/Mac/Modules/evt/evtsupport.py index 88ee6c2..ede353d 100644 --- a/Mac/Modules/evt/evtsupport.py +++ b/Mac/Modules/evt/evtsupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Events.h' # The Apple header file -MODNAME = 'Evt' # The name of the module +MODNAME = '_Evt' # The name of the module OBJECTNAME = 'Event' # The basic name of the objects used here KIND = 'Record' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Evt' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + KIND # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/fm/fmsupport.py b/Mac/Modules/fm/fmsupport.py index 9ec1e0e..3b40716 100644 --- a/Mac/Modules/fm/fmsupport.py +++ b/Mac/Modules/fm/fmsupport.py @@ -7,10 +7,10 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Fonts.h' # The Apple header file -MODNAME = 'Fm' # The name of the module +MODNAME = '_Fm' # The name of the module # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Fm' # The prefix for module-wide routines INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner OUTPUTFILE = MODNAME + "module.c" # The file generated by this program diff --git a/Mac/Modules/help/helpsupport.py b/Mac/Modules/help/helpsupport.py index 3eeb06a..96fbfe2 100644 --- a/Mac/Modules/help/helpsupport.py +++ b/Mac/Modules/help/helpsupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Balloons.h' # The Apple header file -MODNAME = 'Help' # The name of the module +MODNAME = '_Help' # The name of the module OBJECTNAME = 'UNUSED' # The basic name of the objects used here KIND = 'Record' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Help' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + KIND # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/icn/icnsupport.py b/Mac/Modules/icn/icnsupport.py index bfdc555..52d075d 100644 --- a/Mac/Modules/icn/icnsupport.py +++ b/Mac/Modules/icn/icnsupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Icons.h' # The Apple header file -MODNAME = 'Icn' # The name of the module +MODNAME = '_Icn' # The name of the module OBJECTNAME = 'Icon' # The basic name of the objects used here KIND = 'Handle' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Icn' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + KIND # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/list/listsupport.py b/Mac/Modules/list/listsupport.py index d5ddd5b..b9bb964 100644 --- a/Mac/Modules/list/listsupport.py +++ b/Mac/Modules/list/listsupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Lists.h' # The Apple header file -MODNAME = 'List' # The name of the module +MODNAME = '_List' # The name of the module OBJECTNAME = 'List' # The basic name of the objects used here KIND = 'Handle' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'List' # The prefix for module-wide routines OBJECTTYPE = "ListHandle" # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/macconfig.c b/Mac/Modules/macconfig.c index 50c7d89..0e4dd91 100644 --- a/Mac/Modules/macconfig.c +++ b/Mac/Modules/macconfig.c @@ -94,35 +94,35 @@ extern void initicglue(); #ifndef USE_CORE_TOOLBOX #define USE_CORE_TOOLBOX #endif -extern void initApp(); -extern void initFm(); -extern void initHelp(); -extern void initIcn(); -extern void initList(); -extern void initMlte(); -extern void initQdoffs(); -extern void initSnd(); -extern void initSndihooks(); -extern void initScrap(); -extern void initTE(); +extern void init_App(); +extern void init_Fm(); +extern void init_Help(); +extern void init_Icn(); +extern void init_List(); +extern void init_Mlte(); +extern void init_Qdoffs(); +extern void init_Snd(); +extern void init_Sndihooks(); +extern void init_Scrap(); +extern void init_TE(); extern void initColorPicker(); extern void initPrinting(); -extern void initCF(); +extern void init_CF(); #endif #ifdef USE_CORE_TOOLBOX -extern void initAE(); -extern void initCtl(); -extern void initDlg(); -extern void initDrag(); -extern void initEvt(); -extern void initMenu(); -extern void initQd(); -extern void initRes(); -extern void initWin(); +extern void init_AE(); +extern void init_Ctl(); +extern void init_Dlg(); +extern void init_Drag(); +extern void init_Evt(); +extern void init_Menu(); +extern void init_Qd(); +extern void init_Res(); +extern void init_Win(); #endif #ifdef USE_QT -extern void initCm(); -extern void initQt(); +extern void init_Cm(); +extern void init_Qt(); #endif #ifdef USE_IMG @@ -217,40 +217,40 @@ struct _inittab _PyImport_Inittab[] = { {"icglue", initicglue}, #endif #ifdef USE_CORE_TOOLBOX - {"AE", initAE}, - {"Ctl", initCtl}, - {"Dlg", initDlg}, - {"Drag", initDrag}, - {"Evt", initEvt}, - {"Menu", initMenu}, - {"Qd", initQd}, - {"Win", initWin}, - {"Res", initRes}, + {"_AE", init_AE}, + {"_Ctl", init_Ctl}, + {"_Dlg", init_Dlg}, + {"_Drag", init_Drag}, + {"_Evt", init_Evt}, + {"_Menu", init_Menu}, + {"_Qd", init_Qd}, + {"_Win", init_Win}, + {"_Res", init_Res}, #endif #ifdef USE_TOOLBOX - {"App", initApp}, - {"Fm", initFm}, - {"Icn", initIcn}, - {"List", initList}, - {"Mlte", initMlte}, - {"Qdoffs", initQdoffs}, - {"Snd", initSnd}, - {"Sndihooks", initSndihooks}, + {"_App", init_App}, + {"_Fm", init_Fm}, + {"_Icn", init_Icn}, + {"_List", init_List}, + {"_Mlte", init_Mlte}, + {"_Qdoffs", init_Qdoffs}, + {"_Snd", init_Snd}, + {"_Sndihooks", init_Sndihooks}, /* Carbon scrap manager is completely different */ - {"Scrap", initScrap}, - {"TE", initTE}, + {"_Scrap", init_Scrap}, + {"_TE", init_TE}, {"ColorPicker", initColorPicker}, #if !TARGET_API_MAC_CARBON - {"Help", initHelp}, + {"_Help", init_Help}, {"Printing", initPrinting}, #endif #if TARGET_API_MAC_CARBON - {"CF", initCF}, + {"_CF", init_CF}, #endif #endif #ifdef USE_QT - {"Cm", initCm}, - {"Qt", initQt}, + {"_Cm", init_Cm}, + {"_Qt", init_Qt}, #endif #ifdef USE_IMG {"imgcolormap", initimgcolormap}, diff --git a/Mac/Modules/menu/menusupport.py b/Mac/Modules/menu/menusupport.py index a438f14..199c8af 100644 --- a/Mac/Modules/menu/menusupport.py +++ b/Mac/Modules/menu/menusupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Menus.h' # The Apple header file -MODNAME = 'Menu' # The name of the module +MODNAME = '_Menu' # The name of the module OBJECTNAME = 'Menu' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Menu' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + 'Handle' # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/mlte/mltesupport.py b/Mac/Modules/mlte/mltesupport.py index a1152be..e4418cb 100644 --- a/Mac/Modules/mlte/mltesupport.py +++ b/Mac/Modules/mlte/mltesupport.py @@ -8,10 +8,10 @@ import string # Declarations that change for each manager -MODNAME = 'Mlte' # The name of the module +MODNAME = '_Mlte' # The name of the module # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Mlte' # The prefix for module-wide routines INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner OUTPUTFILE = MODNAME + "module.c" # The file generated by this program diff --git a/Mac/Modules/qd/qdsupport.py b/Mac/Modules/qd/qdsupport.py index cd6282b..5f7c5bc 100644 --- a/Mac/Modules/qd/qdsupport.py +++ b/Mac/Modules/qd/qdsupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'QuickDraw.h' # The Apple header file -MODNAME = 'Qd' # The name of the module +MODNAME = '_Qd' # The name of the module OBJECTNAME = 'Graf' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Qd' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + 'Ptr' # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/qdoffs/qdoffssupport.py b/Mac/Modules/qdoffs/qdoffssupport.py index bc21531..cee5f94 100644 --- a/Mac/Modules/qdoffs/qdoffssupport.py +++ b/Mac/Modules/qdoffs/qdoffssupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'QDOffscreen.h' # The Apple header file -MODNAME = 'Qdoffs' # The name of the module +MODNAME = '_Qdoffs' # The name of the module OBJECTNAME = 'GWorld' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Qdoffs' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + 'Ptr' # The C type used to represent them OBJECTPREFIX = OBJECTNAME + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/qt/qtsupport.py b/Mac/Modules/qt/qtsupport.py index e1b7374..2d66327 100644 --- a/Mac/Modules/qt/qtsupport.py +++ b/Mac/Modules/qt/qtsupport.py @@ -9,11 +9,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Movies.h' # The Apple header file -MODNAME = 'Qt' # The name of the module +MODNAME = '_Qt' # The name of the module OBJECTNAME = 'Movie' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Qt' # The prefix for module-wide routines OBJECTTYPE = "Movie" # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/res/ressupport.py b/Mac/Modules/res/ressupport.py index 8be1b94..2a72748 100644 --- a/Mac/Modules/res/ressupport.py +++ b/Mac/Modules/res/ressupport.py @@ -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() diff --git a/Mac/Modules/scrap/scrapsupport.py b/Mac/Modules/scrap/scrapsupport.py index 44dee33..516b22b 100644 --- a/Mac/Modules/scrap/scrapsupport.py +++ b/Mac/Modules/scrap/scrapsupport.py @@ -10,10 +10,10 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Scrap.h' # The Apple header file -MODNAME = 'Scrap' # The name of the module +MODNAME = '_Scrap' # The name of the module # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Scrap' # The prefix for module-wide routines INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner OUTPUTFILE = '@' + MODNAME + "module.c" # The file generated by this program diff --git a/Mac/Modules/snd/sndsupport.py b/Mac/Modules/snd/sndsupport.py index dcaa654..9c100ac 100644 --- a/Mac/Modules/snd/sndsupport.py +++ b/Mac/Modules/snd/sndsupport.py @@ -334,7 +334,7 @@ class SpbObjectDefinition(ObjectDefinition): sndobject = SndObjectDefinition('SndChannel', 'SndCh', 'SndChannelPtr') spbobject = SpbObjectDefinition('SPB', 'SPBObj', 'SPBPtr') spbgenerator = ManualGenerator("SPB", "return SPBObj_New();") -module = MacModule('Snd', 'Snd', includestuff, finalstuff, initstuff) +module = MacModule('_Snd', 'Snd', includestuff, finalstuff, initstuff) module.addobject(sndobject) module.addobject(spbobject) module.add(spbgenerator) @@ -359,5 +359,5 @@ for f in sndmethods: sndobject.add(f) # generate output -SetOutputFileName('Sndmodule.c') +SetOutputFileName('_Sndmodule.c') module.generate() diff --git a/Mac/Modules/te/tesupport.py b/Mac/Modules/te/tesupport.py index 6cb96e2..6aa5a65 100644 --- a/Mac/Modules/te/tesupport.py +++ b/Mac/Modules/te/tesupport.py @@ -7,12 +7,12 @@ import string # Declarations that change for each manager MACHEADERFILE = 'TextEdit.h' # The Apple header file -MODNAME = 'TE' # The name of the module +MODNAME = '_TE' # The name of the module OBJECTNAME = 'TE' # The basic name of the objects used here KIND = 'Handle' # Usually 'Ptr' or 'Handle' # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'TE' # The prefix for module-wide routines OBJECTTYPE = "TEHandle" # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner diff --git a/Mac/Modules/win/winsupport.py b/Mac/Modules/win/winsupport.py index cc1c312..5bb5bda 100644 --- a/Mac/Modules/win/winsupport.py +++ b/Mac/Modules/win/winsupport.py @@ -7,11 +7,11 @@ import string # Declarations that change for each manager MACHEADERFILE = 'Windows.h' # The Apple header file -MODNAME = 'Win' # The name of the module +MODNAME = '_Win' # The name of the module OBJECTNAME = 'Window' # The basic name of the objects used here # The following is *usually* unchanged but may still require tuning -MODPREFIX = MODNAME # The prefix for module-wide routines +MODPREFIX = 'Win' # The prefix for module-wide routines OBJECTTYPE = OBJECTNAME + 'Ptr' # The C type used to represent them OBJECTPREFIX = MODPREFIX + 'Obj' # The prefix for object methods INPUTFILE = string.lower(MODPREFIX) + 'gen.py' # The file generated by the scanner |