home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / OSDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  868 b   |  46 lines

  1. #ifndef Py_OSDEFS_H
  2. #define Py_OSDEFS_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6.  
  7.  
  8. /* Operating system dependencies */
  9.  
  10. #ifdef macintosh
  11. #define SEP ':'
  12. #define MAXPATHLEN 256
  13. /* Mod by Jack: newline is less likely to occur in filenames than space */
  14. #define DELIM '\n'
  15. #endif
  16.  
  17. /* Mod by chrish: QNX has WATCOM, but isn't DOS */
  18. #if !defined(__QNX__)
  19. #if defined(MS_WINDOWS) || defined(__BORLANDC__) || defined(__WATCOMC__) || defined(__DJGPP__) || defined(PYOS_OS2)
  20. #define SEP '\\'
  21. #define ALTSEP '/'
  22. #define MAXPATHLEN 256
  23. #define DELIM ';'
  24. #endif
  25. #endif
  26.  
  27. /* Filename separator */
  28. #ifndef SEP
  29. #define SEP '/'
  30. #endif
  31.  
  32. /* Max pathname length */
  33. #ifndef MAXPATHLEN
  34. #define MAXPATHLEN 1024
  35. #endif
  36.  
  37. /* Search path entry delimiter */
  38. #ifndef DELIM
  39. #define DELIM ':'
  40. #endif
  41.  
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* !Py_OSDEFS_H */
  46.