Added more prototypes.

This commit is contained in:
Jack Jansen 2000-07-24 19:52:52 +00:00
parent 1f9f2f4c49
commit 5bdbabd203
3 changed files with 10 additions and 6 deletions

View file

@ -40,7 +40,7 @@ typedef struct {
double bg_yield; /* yield at most so long when in background */ double bg_yield; /* yield at most so long when in background */
} PyMacSchedParams; } PyMacSchedParams;
char *PyMac_getscript(void); /* Get the default encoding for our 8bit character set */
#ifdef USE_GUSI1 #ifdef USE_GUSI1
void PyMac_FixGUSIcd(void); /* Workaround for GUSI chdir() call */ void PyMac_FixGUSIcd(void); /* Workaround for GUSI chdir() call */
extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */ extern void PyMac_SetGUSISpin(void); /* Install our private GUSI spin routine */

View file

@ -50,6 +50,9 @@ extern int ccommand(char ***);
#endif #endif
#endif #endif
#include <unistd.h> #include <unistd.h>
#ifdef USE_MAC_SHARED_LIBRARY
extern PyMac_AddLibResources(void);
#endif
#define STARTUP "PythonStartup" #define STARTUP "PythonStartup"

View file

@ -50,6 +50,12 @@ PERFORMANCE OF THIS SOFTWARE.
#include <Files.h> #include <Files.h>
#include <Resources.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. ** Variables passed from shared lib initialization to PyMac_AddLibResources.
*/ */
@ -64,12 +70,7 @@ OSErr pascal
__initialize_with_resources(CFragInitBlockPtr data) __initialize_with_resources(CFragInitBlockPtr data)
{ {
/* Call the MW runtime's initialization routine */ /* Call the MW runtime's initialization routine */
/* #ifdef __CFM68K__ */
#if 1
__initialize(); __initialize();
#else
__sinit();
#endif
if ( data == nil ) return noErr; if ( data == nil ) return noErr;
if ( data->fragLocator.where == kDataForkCFragLocator ) { if ( data->fragLocator.where == kDataForkCFragLocator ) {