home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / compress / zoosrc20.zoo / options.h < prev    next >
C/C++ Source or Header  |  1989-07-25  |  5KB  |  258 lines

  1. /* @(#) options.h 2.22 88/08/24 15:27:36 */
  2.  
  3. /*
  4. The contents of this file are hereby released to the public domain.
  5.  
  6.                            -- Rahul Dhesi 1986/11/14
  7.  
  8. For documentation about this file, see options.doc.
  9. */
  10.  
  11.  
  12. /* ZOO is always defined currently */
  13. #define ZOO
  14.  
  15. /* Compilation without ZOOCOMMENT has not been tested */
  16. #define ZOOCOMMENT
  17.  
  18. #ifdef SYS_V
  19. #define FILTER
  20. #define VER_DISPLAY ";"
  21. #define VER_INPUT ":;"
  22. #define IO_MACROS
  23. #define EXISTS(f)        (access(f, 00) == 0)
  24. #define MEMSET
  25. #define FNLIMIT 14
  26. #define CHEKDIR
  27. #define NIXTIME
  28. #define NIXFNAME
  29. #define NEEDCTYP
  30. #define NOENUM
  31. #define PORTABLE
  32. #define REN_LINK
  33. #define SETBUF
  34. #define GETTZ
  35. #define FATTR
  36. #endif
  37.  
  38. #ifdef TURBOC
  39. #define VER_DISPLAY ";"
  40. #define VER_INPUT ":;"
  41. #define USE_ASCII
  42. #define SPECINIT
  43. #define SPECEXIT
  44. #define PURIFY
  45. #define DISK_CH ':'
  46. #define IGNORECASE
  47. #define WILDCARD "*.*"
  48. #define FOLD
  49. #define FORCESLASH
  50. #define FNLIMIT 12
  51. #define CUR_DIR "."
  52. #define PATH_CH "/"
  53. #define PATH_SEP ":/\\"
  54. #define EXT_CH '.'
  55. #define EXT_SEP  ":/\\."
  56. #define EXT_DFLT ".zoo"
  57. #define SETMODE
  58. /* 0x8000 and 0x4000 taken from <fcntl.h> for Turbo C */
  59. #define MODE_BIN(f)      setmode(fileno(f), 0x8000)
  60. #define MODE_TEXT(f)     setmode(fileno(f), 0x4000)
  61. #define LINT_ARGS
  62. #define MORE     ...
  63. #define NOTHING        void
  64. #define VOIDPTR        void *
  65. #define REN_REV
  66. #define UNBUF_IO
  67. #define UNBUF_LIMIT        512
  68. #ifdef  PORTABLE
  69. #define SPECNEXT
  70. #define NIXTIME
  71. #undef  WILDCARD
  72. #endif
  73.  
  74. #endif /* TURBOC */
  75.  
  76. #ifdef MSC
  77. #define VER_DISPLAY ";"
  78. #define VER_INPUT ":;"
  79. #define ALWAYS_INT
  80. #define USE_ASCII
  81. #define SPECINIT
  82. #define SPECEXIT
  83. #define PURIFY
  84. #define DISK_CH ':'
  85. #define IGNORECASE
  86. #define WILDCARD "*.*"
  87. #define FOLD
  88. #define FORCESLASH
  89. #define FNLIMIT 12
  90. #define CUR_DIR "."
  91. #define PATH_CH "/"
  92. #define PATH_SEP ":/\\"
  93. #define EXT_CH '.'
  94. #define EXT_SEP  ":/\\."
  95. #define EXT_DFLT ".zoo"
  96. #define SETMODE
  97. /* 0x8000 and 0x4000 taken from <fcntl.h> for Microsoft C */
  98. #define MODE_BIN(f)      setmode(fileno(f), 0x8000)
  99. #define MODE_TEXT(f)     setmode(fileno(f), 0x4000)
  100. #define LINT_ARGS
  101. #define MORE
  102. #define NOTHING
  103. #define VOIDPTR        char *
  104. #define REN_NORM
  105.  
  106. #define UNBUF_IO
  107. #define UNBUF_LIMIT        512
  108.  
  109. #ifdef  PORTABLE
  110. #define SPECNEXT
  111. #define NIXTIME
  112. #undef  WILDCARD
  113. #endif
  114.  
  115. #endif /* MSC */
  116.  
  117. #ifdef BSD4_3
  118. #define NOSTRCHR /* not really needed for 4.3BSD */
  119. #define FILTER
  120. #define VER_DISPLAY ";"
  121. #define VER_INPUT ":;"
  122. #define IO_MACROS
  123. #define EXISTS(f)        (access(f, 00) == 0)
  124. #define FNLIMIT 1023
  125. #define CHEKDIR
  126. #define NIXTIME
  127. #define NIXFNAME
  128. #define NEEDCTYP
  129. #define PORTABLE
  130. #define NOENUM
  131. #define REN_REV
  132. #define SETBUF
  133. #define GETTZ
  134. #define FATTR
  135. #endif
  136.  
  137.  
  138.  
  139. #ifdef VMS
  140.  
  141. /*
  142. Select VMS pre-4.6 or 4.6 next line.  Pre-4.6 library does not have
  143. rename() and memset() so zoo defines its own;  4.6 has these, so we
  144. must use them, else VMS library functions will conflict with our
  145. own.
  146. */
  147. # if 1        /* VMS version 4.6 */
  148. #  define VMS_RENAME /* this symbol used only in file vms.c */
  149. #  define REN_REV
  150. #  define MEMSET
  151. # else        /* VMS pre-version 4.5 */
  152. #  define REN_NORM
  153. # endif
  154.  
  155. #define VER_DISPLAY ";"
  156. #define VER_INPUT ":;"
  157.  
  158. #define IO_MACROS
  159. #define SPEC_WILD
  160. #define EXT_ANYWAY
  161. #define VER_CH ';'
  162. #define SPECEXIT
  163. #define CHEKUDIR
  164. #define FNLIMIT 78
  165. #define DIR_SEP '.'  /* separates dir fields */
  166. #define DISK_CH ':'
  167. #define DIR_LBRACK "[" /* left bracketing symbol dir dir name */
  168. #define PATH_CH "]"
  169. #define PATH_SEP ":]"
  170. #define EXT_CH '.'
  171. #define EXT_SEP ":]."
  172. #define EXT_DFLT ".zoo"
  173. #define CUR_DIR "."
  174. #define NIXTIME
  175. #define NEEDCTYP
  176. #define NOENUM
  177. #define PORTABLE
  178. #define DUMB_ASS
  179. #define IGNORECASE
  180. #define SPECMOD
  181. #define SPECNEXT
  182. #define WILDCARD "*.*"
  183. #define FOLD
  184. #endif
  185.  
  186. #ifdef MCH_AMIGA
  187. #define VER_DISPLAY ";"
  188. #define VER_INPUT ":;"
  189. #define PURIFY
  190. #define DISK_CH ':'
  191. #define SPECNEXT
  192. #define WILDCARD "*"
  193. #define IGNORECASE
  194. #define FNLIMIT 30
  195. #define NEEDCTYP
  196. #define CUR_DIR "."
  197. #define PATH_CH "/"
  198. #define PATH_SEP ":/"
  199. #define EXT_CH   '.'
  200. #define EXT_SEP  ":/."
  201. #define EXT_DFLT ".zoo"
  202. #define PORTABLE
  203. #define NOSIGNAL
  204. #define REN_REV
  205. #define NOENUM
  206. #define SETBUF
  207. #define CHEKUDIR
  208. #define GETUTIME
  209. #define NIXTIME
  210. #endif
  211.  
  212. #ifdef NIXFNAME
  213. #define CUR_DIR "."
  214. #define PATH_CH "/"
  215. #define PATH_SEP "/"
  216. #define EXT_CH '.'
  217. #define EXT_SEP  "/."
  218. #define EXT_DFLT ".zoo"
  219. #endif
  220.  
  221. #ifdef GENERIC
  222. /* #define SPECNEXT */
  223. #define IGNORECASE
  224. #define FNLIMIT 11
  225. #define NEEDCTYP
  226. #define CUR_DIR "."
  227. #define PATH_CH "/"
  228. #define PATH_SEP ":/"
  229. #define EXT_CH   '.'
  230. #define EXT_SEP  ":/."
  231. #define EXT_DFLT ".zoo"
  232. #define PORTABLE
  233. #define NOSIGNAL
  234. /* REN_LINK is UNIX-specific.  Can't find a generic rename() function */
  235. #define REN_LINK
  236. /* #define FLAT */
  237. #define NOENUM
  238. #define SETBUF
  239. #define CHEKUDIR
  240. #define GETUTIME
  241. #define NIXTIME
  242. #endif
  243.  
  244. /* ANSI compatibility in declarations -- see zoofns.h for usage */
  245. #ifndef PARMS
  246. #ifdef LINT_ARGS
  247. #define    PARMS(x)        x
  248. #else
  249. #define    PARMS(x)        ()
  250. #endif
  251. #endif
  252.  
  253. /* Compensate for strchr/index differences */
  254. #ifdef NOSTRCHR
  255. #define    strchr    index
  256. #define    strrchr    rindex
  257. #endif
  258.