diff Python/import.c @ 5894:e2df95b7be78 legacy-trunk

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.
author Guido van Rossum <guido@python.org>
date Mon, 21 Jul 1997 14:54:36 +0000
parents bfe9ba74c19e
children 8d2194e22e67
line wrap: on
line diff
--- a/Python/import.c	Sat Jul 19 23:46:59 1997 +0000
+++ b/Python/import.c	Mon Jul 21 14:54:36 1997 +0000
@@ -61,7 +61,7 @@
 /* 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 @@
 		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)