summaryrefslogtreecommitdiffstats
path: root/Python/import.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-07-21 14:54:36 (GMT)
committerGuido van Rossum <guido@python.org>1997-07-21 14:54:36 (GMT)
commitef3d02ebb955d01b2a8484d7c25f5ced4bf2036d (patch)
treee5c9f58a81c0a3489f51f267393d355f60a4be58 /Python/import.c
parent766118525adee39af4e009e765ee1364df956964 (diff)
downloadcpython-ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d.zip
cpython-ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d.tar.gz
cpython-ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d.tar.bz2
Removed some variables that are used to exchange data between import.c and
importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and the modules dictionary is now passed using PyImport_GetModuleDict(). Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists but we don't want to use it.
Diffstat (limited to 'Python/import.c')
-rw-r--r--Python/import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/import.c b/Python/import.c
index 2a4b5cc..aa1272b 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -61,7 +61,7 @@ extern long PyOS_GetLastModificationTime(); /* In getmtime.c */
/* New way to come up with the magic number: (YEAR-1995), MONTH, DAY */
#define MAGIC (20121 | ((long)'\r'<<16) | ((long)'\n'<<24))
-PyObject *_PyImport_Modules; /* This becomes sys.modules */
+static PyObject *_PyImport_Modules; /* This becomes sys.modules */
/* Initialize things */
@@ -461,7 +461,7 @@ find_module(name, path, buf, buflen, p_fp)
if (!PyString_Check(v))
continue;
len = PyString_Size(v);
- if (len + 2 + namelen + _PyImport_MaxSuffixSize >= buflen)
+ if (len + 2 + namelen + MAXSUFFIXSIZE >= buflen)
continue; /* Too long */
strcpy(buf, PyString_AsString(v));
if ((int)strlen(buf) != len)