home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume29 / cproto / part02 / config.h next >
Encoding:
C/C++ Source or Header  |  1992-04-06  |  877 b   |  58 lines

  1. /* $Id: config.h 3.3 92/04/04 13:59:06 cthuang Exp $
  2.  *
  3.  * cproto configuration and system dependencies
  4.  */
  5.  
  6. /* maximum include file nesting */
  7. #ifndef MAX_INC_DEPTH
  8. #define MAX_INC_DEPTH 15
  9. #endif
  10.  
  11. /* maximum number of include directories */
  12. #ifndef MAX_INC_DIR
  13. #define MAX_INC_DIR 15
  14. #endif
  15.  
  16. /* maximum text buffer size */
  17. #ifndef MAX_TEXT_SIZE
  18. #define MAX_TEXT_SIZE 256
  19. #endif
  20.  
  21. /* Borland C predefines __MSDOS__ */
  22. #ifdef __MSDOS__
  23. #ifndef MSDOS
  24. #define MSDOS
  25. #endif
  26. #endif
  27.  
  28. #ifdef MSDOS
  29. #include <malloc.h>
  30. #include <stdlib.h>
  31. #else
  32. extern char *malloc();
  33. extern char *getenv();
  34. #endif
  35.  
  36. #ifdef BSD
  37. #include <strings.h>
  38. #define strchr index
  39. #define strrchr rindex
  40. #else
  41. #include <string.h>
  42. #endif
  43.  
  44. #ifndef MSDOS
  45. extern char *strstr();
  46. #endif
  47.  
  48. /* C preprocessor */
  49. #ifdef TURBO_CPP
  50. #define CPP "cpp -P-"
  51. #endif
  52.  
  53. #ifndef MSDOS
  54. #ifndef CPP
  55. #define CPP "/lib/cpp"
  56. #endif
  57. #endif
  58.