diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-02-28 15:42:47 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-02-28 15:42:47 (GMT) |
commit | 01fbc688967f4d68e2a080dd0de56c582e220432 (patch) | |
tree | 08f786705dc11d6c25fb733ff7d5996500d4f2e0 /Mac/Python/macgetpath.c | |
parent | dc1c64a148cc8b1ec57bf72020b001221fe62bb0 (diff) | |
download | cpython-01fbc688967f4d68e2a080dd0de56c582e220432.zip cpython-01fbc688967f4d68e2a080dd0de56c582e220432.tar.gz cpython-01fbc688967f4d68e2a080dd0de56c582e220432.tar.bz2 |
- Reorganized init code
- Fixed serious bug in code to get options from a resource
Diffstat (limited to 'Mac/Python/macgetpath.c')
-rw-r--r-- | Mac/Python/macgetpath.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Mac/Python/macgetpath.c b/Mac/Python/macgetpath.c index b782736..38feb3e 100644 --- a/Mac/Python/macgetpath.c +++ b/Mac/Python/macgetpath.c @@ -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; { |