Got rid of macglue.h, replacing it by pymactoolbox.h where relevant.

Cleaned up various things in the toolbox modules.
This commit is contained in:
Jack Jansen 2003-11-20 13:31:00 +00:00
parent 3305d2487d
commit 7107c1aff3
43 changed files with 51 additions and 303 deletions

View file

@ -142,12 +142,7 @@ UniChar_ptr = InputOnlyType("UniCharPtr", "u")
# Stuff added immediately after the system include files
includestuff = """
#ifdef _WIN32
#include "pywintoolbox.h"
#else
#include "macglue.h"
#include "pymactoolbox.h"
#endif
/* Macro to test whether a weak-loaded CFM function exists */
#define PyMac_PRECHECK(rtn) do { if ( &rtn == NULL ) {\\
@ -200,11 +195,3 @@ class MacModule(Module):
"Subclass which gets the exception initializer from macglue.c"
def exceptionInitializer(self):
return "PyMac_GetOSErrException()"
_SetOutputFileName = SetOutputFileName # Save original
def SetOutputFileName(file = None):
"Set the output file name and set its creator&type to CWIE&TEXT"
_SetOutputFileName(file)
if file:
import MacOS
MacOS.SetCreatorAndType(file, 'CWIE', 'TEXT')