home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c163 / 3.ddi / SCRE_SOU.EXE / P4MISC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-29  |  2.2 KB  |  139 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 __cplusplus
  25.    #define CPP
  26. #endif
  27.  
  28. #ifdef GERMAN
  29. #define LANGUAGE
  30. #endif
  31.  
  32. #ifdef LANGUAGE
  33. #define NO_SIZE_T
  34. #endif
  35.  
  36. #ifdef HC386
  37. char *fcvt( double, int, int *, int * ) ;
  38. #define near _Near
  39. #define far  _Far
  40. #define huge _Huge
  41. #define IS_386
  42. #define int386 int86
  43. #endif
  44.  
  45. #ifdef TURBO
  46. #define DO_LOCK
  47. #endif
  48.  
  49. #ifdef ZORTECH
  50. #define NO_LOCK
  51. /* #define size_t unsigned */
  52. #endif
  53.  
  54. #ifdef __WATCOMC__
  55. #define NO_LOCK
  56. #define IS_386
  57. #define __386__
  58. #endif
  59.  
  60. #ifdef UNIX
  61. extern  long  filelength() ;
  62. extern  char *fcvt() ;
  63. extern  long  lseek() ;
  64. #define DO_ERRNO
  65. #define NO_POW
  66. #define NO_SPAWNL
  67. #define NO_FILELENGTH
  68. #define NO_KBHIT
  69. #define NO_MEMMOVE
  70. #define NO_REMOVE
  71. #define NO_RENAME
  72. #define NO_STRUPR
  73. #define NO_STRLWR
  74. #define NO_STRNICMP
  75. #define NO_SIZE_T
  76. #define PORTABLE
  77. #define VARARGS
  78. #endif
  79.  
  80. #ifdef NO_TEST
  81. #define NO_SIZE_T
  82. #define NO_CHSIZE
  83. #define NO_LOCK
  84. #define NO_MEMMOVE
  85. #define NO_POW
  86. #define NO_SPAWNL
  87. #define NO_FILELENGTH
  88. #define NO_REMOVE
  89. #define NO_RENAME
  90. #define NO_STRLWR
  91. #define NO_STRUPR
  92. #define NO_STRNICMP
  93. #define LANGUAGE
  94. #define PORTABLE
  95. #endif
  96.  
  97. #ifndef DO_LOCK
  98. #ifndef NO_LOCK
  99. #define DO_LOCKING
  100. #endif
  101. #endif
  102.  
  103. #ifdef NO_SIZE_T
  104. typedef unsigned   size_t ;
  105. #endif
  106.  
  107. #ifdef DO_CHSIZE
  108. int  chsize( int, long ) ;
  109. #endif
  110.  
  111. #ifdef NO_FILELENGTH
  112. long  filelength(int) ;
  113. #endif
  114.  
  115. #ifdef NO_MEMMOVE
  116. void *memmove( void *, void *, size_t ) ;
  117. #endif
  118.  
  119. #ifdef NO_REMOVE
  120. int remove( char * ) ;
  121. #endif
  122.  
  123. #ifdef NO_STRNICMP
  124. int  strnicmp( char *, char *, size_t ) ;
  125. #endif
  126.  
  127. #ifdef NO_STRUPR
  128. char *strlwr( char * ) ;
  129. #endif
  130.  
  131. #ifdef NO_STRUPR
  132. char *strupr( char * ) ;
  133. #endif
  134.  
  135. #ifdef LANGUAGE
  136. extern int v4map[256] ;
  137. int u4memcmp( unsigned char *, unsigned char *, size_t ) ;
  138. #endif
  139.