diff options
author | Guido van Rossum <guido@python.org> | 1992-02-26 15:19:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-02-26 15:19:13 (GMT) |
commit | d8bac6de5719d081423d9123ba3dce5e65dcf29a (patch) | |
tree | dae9066b5b504d354aba1961bdabd8678c852eb3 /Python | |
parent | 7169dbb76dcd1d25f2989eb00da33d05c3d6279b (diff) | |
download | cpython-d8bac6de5719d081423d9123ba3dce5e65dcf29a.zip cpython-d8bac6de5719d081423d9123ba3dce5e65dcf29a.tar.gz cpython-d8bac6de5719d081423d9123ba3dce5e65dcf29a.tar.bz2 |
Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/import.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/Python/import.c b/Python/import.c index 899621f..7fc50c8 100644 --- a/Python/import.c +++ b/Python/import.c @@ -36,6 +36,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "marshal.h" #include "compile.h" #include "ceval.h" +#include "osdefs.h" #ifdef DEBUG #define D(x) x @@ -53,20 +54,6 @@ extern char *argv0; #define MAGIC 0x949494L -/* Define pathname separator used in file names */ - -#ifdef macintosh -#define SEP ':' -#endif - -#ifdef MSDOS -#define SEP '\\' -#endif - -#ifndef SEP -#define SEP '/' -#endif - static object *modules; /* Forward */ @@ -181,7 +168,7 @@ get_module(m, name, m_ret) FILE *fp, *fpc; node *n; int err; - char namebuf[258]; + char namebuf[MAXPATHLEN+1]; int namelen; long mtime; extern long getmtime(); |