Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macgetpath.c @ 3422:67f5d29d405b legacy-trunk
- Reorganized init code
- Fixed serious bug in code to get options from a resource
| author | Jack Jansen <jack.jansen@cwi.nl> |
|---|---|
| date | Wed, 28 Feb 1996 15:42:47 +0000 |
| parents | 14991c4331df |
| children | 61f19a7b1ff1 |
line wrap: on
line diff
--- a/Mac/Python/macgetpath.c Tue Feb 27 15:21:19 1996 +0000 +++ b/Mac/Python/macgetpath.c Wed Feb 28 15:42:47 1996 +0000 @@ -43,9 +43,9 @@ 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 @@ /* ** Open/create the Python Preferences file, return the handle */ -short +static short PyMac_OpenPrefFile() { AliasHandle handle; @@ -142,7 +142,7 @@ /* ** Return the name of the Python directory */ -char * +static char * PyMac_GetPythonDir() { static char name[256]; @@ -187,7 +187,7 @@ } #ifndef USE_BUILTIN_PATH -char * +static char * PyMac_GetPythonPath(dir) char *dir; {
