mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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:
parent
3305d2487d
commit
7107c1aff3
43 changed files with 51 additions and 303 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue