mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Moved definition of search path DELIM here (from sysmodule.c).
This commit is contained in:
parent
e2437a191d
commit
9b9ccd3fe3
1 changed files with 9 additions and 0 deletions
|
@ -27,17 +27,26 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifdef macintosh
|
#ifdef macintosh
|
||||||
#define SEP ':'
|
#define SEP ':'
|
||||||
#define MAXPATHLEN 256
|
#define MAXPATHLEN 256
|
||||||
|
#define DELIM ' '
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MSDOS
|
#ifdef MSDOS
|
||||||
#define SEP '\\'
|
#define SEP '\\'
|
||||||
#define MAXPATHLEN 256
|
#define MAXPATHLEN 256
|
||||||
|
#define DELIM ';'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Filename separator */
|
||||||
#ifndef SEP
|
#ifndef SEP
|
||||||
#define SEP '/'
|
#define SEP '/'
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Max pathname length */
|
||||||
#ifndef MAXPATHLEN
|
#ifndef MAXPATHLEN
|
||||||
#define MAXPATHLEN 1024
|
#define MAXPATHLEN 1024
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Search path entry delimiter */
|
||||||
|
#ifndef DELIM
|
||||||
|
#define DELIM ':'
|
||||||
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue