- Reorganized init code

- Fixed serious bug in code to get options from a resource
This commit is contained in:
Jack Jansen 1996-02-28 15:42:47 +00:00
parent dc1c64a148
commit 01fbc68896
5 changed files with 63 additions and 45 deletions

View file

@ -43,9 +43,9 @@ getpythonpath()
char *curwd;
char *p, *endp;
int newlen;
extern char *PyMac_GetPythonDir();
staticforward char *PyMac_GetPythonDir();
#ifndef USE_BUILTIN_PATH
extern char *PyMac_GetPythonPath();
staticforward char *PyMac_GetPythonPath();
#endif
if ( pythonpath ) return pythonpath;
@ -89,7 +89,7 @@ getpythonpath()
/*
** Open/create the Python Preferences file, return the handle
*/
short
static short
PyMac_OpenPrefFile()
{
AliasHandle handle;
@ -142,7 +142,7 @@ PyMac_OpenPrefFile()
/*
** Return the name of the Python directory
*/
char *
static char *
PyMac_GetPythonDir()
{
static char name[256];
@ -187,7 +187,7 @@ PyMac_GetPythonDir()
}
#ifndef USE_BUILTIN_PATH
char *
static char *
PyMac_GetPythonPath(dir)
char *dir;
{