From 5bdbabd203488c4ca26696ae6da9e0f7a789326f Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Mon, 24 Jul 2000 19:52:52 +0000 Subject: [PATCH] Added more prototypes. --- Mac/Include/macglue.h | 2 +- Mac/Python/macmain.c | 3 +++ Mac/Python/macshlglue.c | 11 ++++++----- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Mac/Include/macglue.h b/Mac/Include/macglue.h index e7e64386de..ba492add5d 100644 --- a/Mac/Include/macglue.h +++ b/Mac/Include/macglue.h @@ -40,7 +40,7 @@ typedef struct { double bg_yield; /* yield at most so long when in background */ } PyMacSchedParams; - +char *PyMac_getscript(void); /* Get the default encoding for our 8bit character set */ #ifdef USE_GUSI1 void PyMac_FixGUSIcd(void); /* Workaround for GUSI chdir() call */ extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */ diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 20dd4cb0ce..903f292b51 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -50,6 +50,9 @@ extern int ccommand(char ***); #endif #endif #include +#ifdef USE_MAC_SHARED_LIBRARY +extern PyMac_AddLibResources(void); +#endif #define STARTUP "PythonStartup" diff --git a/Mac/Python/macshlglue.c b/Mac/Python/macshlglue.c index 4b51070670..523efc99a1 100644 --- a/Mac/Python/macshlglue.c +++ b/Mac/Python/macshlglue.c @@ -50,6 +50,12 @@ PERFORMANCE OF THIS SOFTWARE. #include #include +/* Defined in the MSL runtime: */ +extern void __initialize(void); + +/* Defined either in macglue.c or in a MPW library: */ +extern pascal int PLstrcmp(unsigned char *, unsigned char *); + /* ** Variables passed from shared lib initialization to PyMac_AddLibResources. */ @@ -64,12 +70,7 @@ OSErr pascal __initialize_with_resources(CFragInitBlockPtr data) { /* Call the MW runtime's initialization routine */ -/* #ifdef __CFM68K__ */ -#if 1 __initialize(); -#else - __sinit(); -#endif if ( data == nil ) return noErr; if ( data->fragLocator.where == kDataForkCFragLocator ) { -- 2.49.0