Mercurial > cpython-lru_cache-weakref
diff Python/import.c @ 675:5aff9f8fd299 legacy-trunk
Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 26 Feb 1992 15:19:13 +0000 |
| parents | 04ed4765b17c |
| children | 9a754486ef0b |
line wrap: on
line diff
--- a/Python/import.c Wed Feb 26 15:17:59 1992 +0000 +++ b/Python/import.c Wed Feb 26 15:19:13 1992 +0000 @@ -36,6 +36,7 @@ #include "marshal.h" #include "compile.h" #include "ceval.h" +#include "osdefs.h" #ifdef DEBUG #define D(x) x @@ -53,20 +54,6 @@ #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 @@ FILE *fp, *fpc; node *n; int err; - char namebuf[258]; + char namebuf[MAXPATHLEN+1]; int namelen; long mtime; extern long getmtime();
