home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / OSDEFS.H < prev    next >
Encoding:
C/C++ Source or Header  |  2001-03-02  |  955 b   |  53 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. #ifdef RISCOS
  28. #define SEP '.'
  29. #define MAXPATHLEN 256
  30. #define DELIM ','
  31. #endif
  32.  
  33.  
  34. /* Filename separator */
  35. #ifndef SEP
  36. #define SEP '/'
  37. #endif
  38.  
  39. /* Max pathname length */
  40. #ifndef MAXPATHLEN
  41. #define MAXPATHLEN 1024
  42. #endif
  43.  
  44. /* Search path entry delimiter */
  45. #ifndef DELIM
  46. #define DELIM ':'
  47. #endif
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52. #endif /* !Py_OSDEFS_H */
  53.