home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c160 / 1.ddi / H / P4MISC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-04  |  2.1 KB  |  136 lines

  1.  
  2. /* p4misc.h (c)Copyright Sequiter Software Inc., 1987-1990.  All rights reserved.
  3.  
  4.    Declarations for non-standard C runtime library functions.
  5. */
  6.  
  7. /* Default locking is 'DO_LOCKING' (call to 'locking' rather than 'lock') 
  8.    which is MSC. */
  9.  
  10. #ifndef HC386
  11. #ifndef ZORTECH
  12. #ifndef TURBO
  13. #ifndef __WATCOMC__
  14. #ifndef UNIX
  15. #ifndef MSC
  16. #define MSC
  17. #endif
  18. #endif
  19. #endif
  20. #endif
  21. #endif
  22. #endif
  23.  
  24. #ifdef GERMAN
  25. #define LANGUAGE
  26. #endif
  27.  
  28. #ifdef LANGUAGE
  29. #define NO_SIZE_T
  30. #endif
  31.  
  32. #ifdef HC386
  33. char *fcvt( double, int, int *, int * ) ;
  34. #define near _Near
  35. #define far  _Far
  36. #define huge _Huge
  37. #define IS_386
  38. #define int386 int86
  39. #endif
  40.  
  41. #ifdef TURBO
  42. #define DO_LOCK
  43. #define CPP
  44. #endif
  45.  
  46. #ifdef ZORTECH
  47. #define NO_LOCK
  48. #define CPP
  49. #define size_t unsigned
  50. #endif
  51.  
  52. #ifdef __WATCOMC__
  53. #define NO_LOCK
  54. #define IS_386
  55. #endif
  56.  
  57. #ifdef UNIX
  58. extern  long  filelength() ;
  59. extern  char *fcvt() ;
  60. extern  long  lseek() ;
  61. #define DO_ERRNO
  62. #define NO_POW
  63. #define NO_SPAWNL
  64. #define NO_FILELENGTH
  65. #define NO_KBHIT
  66. #define NO_MEMMOVE
  67. #define NO_REMOVE
  68. #define NO_RENAME
  69. #define NO_STRUPR
  70. #define NO_STRLWR
  71. #define NO_STRNICMP
  72. #define NO_SIZE_T
  73. #define PORTABLE
  74. #define VARARGS
  75. #endif
  76.  
  77. #ifdef NO_TEST
  78. #define NO_SIZE_T
  79. #define NO_CHSIZE
  80. #define NO_LOCK
  81. #define NO_MEMMOVE
  82. #define NO_POW
  83. #define NO_SPAWNL
  84. #define NO_FILELENGTH
  85. #define NO_REMOVE
  86. #define NO_RENAME
  87. #define NO_STRLWR
  88. #define NO_STRUPR
  89. #define NO_STRNICMP
  90. #define LANGUAGE
  91. #define PORTABLE
  92. #endif
  93.  
  94. #ifndef DO_LOCK
  95. #ifndef NO_LOCK
  96. #define DO_LOCKING
  97. #endif
  98. #endif
  99.  
  100. #ifdef NO_SIZE_T
  101. typedef unsigned   size_t ;
  102. #endif
  103.  
  104. #ifdef DO_CHSIZE
  105. int  chsize( int, long ) ;
  106. #endif
  107.  
  108. #ifdef NO_FILELENGTH
  109. long  filelength(int) ;
  110. #endif
  111.  
  112. #ifdef NO_MEMMOVE
  113. void *memmove( void *, void *, size_t ) ;
  114. #endif
  115.  
  116. #ifdef NO_REMOVE
  117. int remove( char * ) ;
  118. #endif
  119.  
  120. #ifdef NO_STRNICMP
  121. int  strnicmp( char *, char *, size_t ) ;
  122. #endif
  123.  
  124. #ifdef NO_STRUPR
  125. char *strlwr( char * ) ;
  126. #endif
  127.  
  128. #ifdef NO_STRUPR
  129. char *strupr( char * ) ;
  130. #endif
  131.  
  132. #ifdef LANGUAGE
  133. extern int v4map[256] ;
  134. int u4memcmp( unsigned char *, unsigned char *, size_t ) ;
  135. #endif
  136.