diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-24 19:52:52 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 2000-07-24 19:52:52 (GMT) |
commit | 5bdbabd203488c4ca26696ae6da9e0f7a789326f (patch) | |
tree | ba9bb96bd0e42e20e12e8dc825812b27ae2725b3 /Mac/Python | |
parent | 1f9f2f4c490d901c6a5815f7db8cbe6ba4903849 (diff) | |
download | cpython-5bdbabd203488c4ca26696ae6da9e0f7a789326f.zip cpython-5bdbabd203488c4ca26696ae6da9e0f7a789326f.tar.gz cpython-5bdbabd203488c4ca26696ae6da9e0f7a789326f.tar.bz2 |
Added more prototypes.
Diffstat (limited to 'Mac/Python')
-rw-r--r-- | Mac/Python/macmain.c | 3 | ||||
-rw-r--r-- | Mac/Python/macshlglue.c | 11 |
2 files changed, 9 insertions, 5 deletions
diff --git a/Mac/Python/macmain.c b/Mac/Python/macmain.c index 20dd4cb..903f292 100644 --- a/Mac/Python/macmain.c +++ b/Mac/Python/macmain.c @@ -50,6 +50,9 @@ extern int ccommand(char ***); #endif #endif #include <unistd.h> +#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 4b51070..523efc9 100644 --- a/Mac/Python/macshlglue.c +++ b/Mac/Python/macshlglue.c @@ -50,6 +50,12 @@ PERFORMANCE OF THIS SOFTWARE. #include <Files.h> #include <Resources.h> +/* 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 ) { |