summaryrefslogtreecommitdiffstats
path: root/Mac/Python/macgetpath.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1996-02-28 15:42:47 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1996-02-28 15:42:47 (GMT)
commit01fbc688967f4d68e2a080dd0de56c582e220432 (patch)
tree08f786705dc11d6c25fb733ff7d5996500d4f2e0 /Mac/Python/macgetpath.c
parentdc1c64a148cc8b1ec57bf72020b001221fe62bb0 (diff)
downloadcpython-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.c10
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;
{