Staging
v0.8.1
https://github.com/python/cpython
Revision e329d1af1351a3f4b29ba0437e9220f70c29a390 authored by Benjamin Peterson on 30 October 2008, 22:48:10 UTC, committed by Benjamin Peterson on 30 October 2008, 22:48:10 UTC
........
  r67060 | benjamin.peterson | 2008-10-30 17:39:25 -0500 (Thu, 30 Oct 2008) | 1 line

  backport bin() documentation
........
  r67061 | benjamin.peterson | 2008-10-30 17:44:18 -0500 (Thu, 30 Oct 2008) | 1 line

  finish backporting binary literals and new octal literals docs
........
1 parent 424b481
Raw File
Tip revision: e329d1af1351a3f4b29ba0437e9220f70c29a390 authored by Benjamin Peterson on 30 October 2008, 22:48:10 UTC
Blocked revisions 67060-67061 via svnmerge
Tip revision: e329d1a
osdefs.h
#ifndef Py_OSDEFS_H
#define Py_OSDEFS_H
#ifdef __cplusplus
extern "C" {
#endif


/* Operating system dependencies */

/* Mod by chrish: QNX has WATCOM, but isn't DOS */
#if !defined(__QNX__)
#if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
#if defined(PYOS_OS2) && defined(PYCC_GCC)
#define MAXPATHLEN 260
#define SEP L'/'
#define ALTSEP L'\\'
#else
#define SEP L'\\'
#define ALTSEP L'/'
#define MAXPATHLEN 256
#endif
#define DELIM L';'
#endif
#endif

/* Filename separator */
#ifndef SEP
#define SEP L'/'
#endif

/* Max pathname length */
#ifndef MAXPATHLEN
#if defined(PATH_MAX) && PATH_MAX > 1024
#define MAXPATHLEN PATH_MAX
#else
#define MAXPATHLEN 1024
#endif
#endif

/* Search path entry delimiter */
#ifndef DELIM
#define DELIM L':'
#endif

#ifdef __cplusplus
}
#endif
#endif /* !Py_OSDEFS_H */
back to top