00001
00002
00003
00004
00005
00006
00007 #ifndef _CONFIG_H
00008 # define _CONFIG_H
00009
00010
00011
00012
00013 #ifdef amiga
00014 # define AMIGA 1
00015 # define COMPILED_BY "Manx Aztec C 5.2b"
00016 #endif
00017
00018
00019 #ifdef M_SYSV
00020 # define UNIXV 1
00021 #endif
00022
00023
00024 #ifdef xelos
00025 # define UNIXV 1
00026 #endif
00027
00028
00029 #ifdef bsd
00030 # define BSD 1
00031 #else
00032 # ifdef sun
00033 # define BSD 1
00034 # endif
00035 #endif
00036
00037
00038 #ifdef M_I86
00039 # ifndef M_SYSV
00040 # define MSDOS 1
00041 # ifdef IBMC2
00042 # define COMPILED_BY "IBM C/2 1.00"
00043 # else
00044 # define MICROSOFT 1
00045 # define COMPILED_BY "Microsoft C 5.10"
00046 # endif
00047 # endif
00048 #endif
00049
00050
00051 #ifdef __TURBOC__
00052 # define MSDOS 1
00053 # define TURBOC 1
00054 # ifdef __BORLANDC__
00055 # define COMPILED_BY "Borland C 2.00"
00056 # else
00057 # define COMPILED_BY (__TURBOC__ >= 661 ? "Turbo C++ 1.00" : "Turbo C 2.00")
00058 # endif
00059 #endif
00060
00061
00062 #ifdef M68000
00063 # define TOS 1
00064 # define COMPILED_BY "Mark Williams C"
00065 #endif
00066
00067
00068 #if defined(__atarist__) && defined(__gem__)
00069 # define TOS 1
00070 # define COMPILED_BY "GNU-C " __VERSION__
00071 #endif
00072
00073
00074 #ifdef OSK
00075 # define COMPILED_BY "Microware C V2.3 Edition 40"
00076 #endif
00077
00078
00079
00080
00081 #ifdef VMS
00082 # define COMPILED_BY "VAX/VMS VAXC compiler"
00083 # undef VMS
00084 # define VMS 1
00085 #endif
00086
00087
00088
00089
00090
00091
00092
00093
00094 #ifndef BSD
00095 # define BSD 0
00096 #endif
00097
00098 #ifndef UNIXV
00099 # define UNIXV 0
00100 #endif
00101
00102 #ifndef UNIX7
00103 # define UNIX7 0
00104 #endif
00105
00106 #ifndef MSDOS
00107 # define MSDOS 0
00108 #endif
00109
00110 #ifndef TOS
00111 # define TOS 0
00112 #endif
00113
00114 #ifndef AMIGA
00115 # define AMIGA 0
00116 #endif
00117
00118 #ifndef OSK
00119 # define OSK 0
00120 #endif
00121
00122 #ifndef COHERENT
00123 # define COHERENT 0
00124 #endif
00125
00126 #ifndef RAINBOW
00127 # define RAINBOW 0
00128 #endif
00129
00130 #ifndef VMS
00131 # define VMS 0
00132 #endif
00133
00134 #if !BSD && !UNIXV && !UNIX7 && !MSDOS && !TOS && !AMIGA && !OSK && !COHERENT && !VMS
00135 # define MINIX 1
00136 #else
00137 # define MINIX 0
00138 #endif
00139
00140
00141 #if UNIXV || UNIX7 || BSD || MINIX || COHERENT
00142 # define ANY_UNIX 1
00143 #else
00144 # define ANY_UNIX 0
00145 #endif
00146
00147
00148
00149 #ifndef AZTEC_C
00150 # define AZTEC_C 0
00151 #endif
00152
00153 #ifndef MICROSOFT
00154 # define MICROSOFT 0
00155 #endif
00156
00157 #ifndef TURBOC
00158 # define TURBOC 0
00159 #endif
00160
00161
00162
00163 #if MSDOS
00164 # define CREDIT "Ported to MS-DOS by Guntram Blohm & Martin Patzel"
00165 # if RAINBOW
00166 # define CREDIT2 "Rainbow support added by Willett Kempton"
00167 # endif
00168 #endif
00169
00170 #if AMIGA
00171 # define CREDIT "Ported to AmigaDOS 2.04 by Mike Rieser & Dale Rahn"
00172 #endif
00173
00174 #if TOS
00175 # define CREDIT "Ported to Atari/TOS by Guntram Blohm & Martin Patzel"
00176 #endif
00177
00178 #if OSK
00179 # define CREDIT "Ported to Microware OS9/68k by Peter Reinig"
00180 #endif
00181
00182 #if COHERENT
00183 # define CREDIT "Ported to Coherent by Esa Ahola"
00184 #endif
00185
00186 #if VMS
00187 # define CREDIT "Ported to VAX/VMS by John Campbell"
00188 #endif
00189
00190
00191
00192
00193
00194
00195
00196 #if !TOS && !AMIGA
00197 # define ttywrite(buf, len) write(1, buf, (unsigned)(len))
00198 #endif
00199
00200
00201
00202
00203
00204 #if BSD || UNIX7 || OSK
00205 # define strchr index
00206 #endif
00207 extern char *strchr();
00208
00209
00210 #if BSD
00211 # define memcpy(dest, src, siz) bcopy(src, dest, siz)
00212 #endif
00213
00214
00215
00216
00217
00218 #if BSD || COHERENT
00219 # define getcwd getwd
00220 #endif
00221 extern char *getcwd();
00222
00223
00224 #if !TOS
00225 #define tread(fd,buf,n) read(fd,buf,(unsigned)(n))
00226 #define twrite(fd,buf,n) write(fd,buf,(unsigned)(n))
00227 #endif
00228
00229
00230
00231
00232 #if UNIX7 || TOS
00233 # define void int
00234 #endif
00235
00236
00237
00238 #if UNIX7 || MINIX
00239 # define UCHAR(c) ((c) & 0xff)
00240 # define uchar char
00241 #else
00242 # define UCHAR(c) ((unsigned char)(c))
00243 # define uchar unsigned char
00244 #endif
00245
00246
00247 #if BSD || AMIGA
00248 extern void *malloc();
00249 #else
00250 extern char *malloc();
00251 #endif
00252
00253
00254 #if !AMIGA
00255 extern long lseek();
00256 #endif
00257
00258
00259
00260 #if ANY_UNIX
00261 # ifndef TMPDIR
00262 # if MINIX
00263 # define TMPDIR "/tmp"
00264 # endif
00265 # endif
00266 # ifndef PRSVDIR
00267 # define PRSVDIR "/usr/preserve"
00268 # endif
00269 # ifndef PRSVINDEX
00270 # define PRSVINDEX "/usr/preserve/Index"
00271 # endif
00272 # ifndef EXRC
00273 # define EXRC ".exrc"
00274 # endif
00275 # define SCRATCHOUT "%s/soXXXXXX"
00276 # ifndef SHELL
00277 # define SHELL "/bin/sh"
00278 # endif
00279 # if COHERENT
00280 # ifndef REDIRECT
00281 # define REDIRECT ">"
00282 # endif
00283 # endif
00284 #endif
00285
00286 #if AMIGA
00287 # ifndef CC_COMMAND
00288 # define CC_COMMAND "cc"
00289 # endif
00290 # ifndef COLON
00291 # define COLON ':'
00292 # endif
00293 # ifndef SYSEXRC
00294 # define SYSEXRC "S:" EXRC
00295 # endif
00296 # ifndef MAXRCLEN
00297 # define MAXRCLEN 2048
00298 # endif
00299 # ifndef NBUFS
00300 # define NBUFS 10
00301 # endif
00302 # ifndef NEEDSYNC
00303 # define NEEDSYNC TRUE
00304 # endif
00305 # ifndef PRSVDIR
00306 # define PRSVDIR "Elvis:"
00307 # endif
00308 # ifndef PRSVINDEX
00309 # define PRSVINDEX "Elvis:Index"
00310 # endif
00311 # ifndef REDIRECT
00312 # define REDIRECT ">"
00313 # endif
00314 # ifndef SCRATCHIN
00315 # define SCRATCHIN "%sSIXXXXXX"
00316 # endif
00317 # ifndef SCRATCHOUT
00318 # define SCRATCHOUT "%sSOXXXXXX"
00319 # endif
00320 # ifndef SHELL
00321 # define SHELL "newshell"
00322 # endif
00323 # ifndef TERMTYPE
00324 # define TERMTYPE "amiga"
00325 # endif
00326 # ifndef TMPDIR
00327 # define TMPDIR "T:"
00328 # endif
00329 # ifndef TMPNAME
00330 # define TMPNAME "%selv_%x.%x"
00331 # endif
00332 #endif
00333
00334 #if MSDOS || TOS
00335
00336 # ifndef TMPDIR
00337 # define TMPDIR "C:\\tmp"
00338 # endif
00339 # ifndef PRSVDIR
00340 # define PRSVDIR "C:\\preserve"
00341 # endif
00342 # ifndef PRSVINDEX
00343 # define PRSVINDEX "C:\\preserve\\Index"
00344 # endif
00345 # define TMPNAME "%s\\elv_%x.%x"
00346 # if MSDOS
00347 # if MICROSOFT
00348 # define CC_COMMAND "cl -c"
00349 # else
00350 # if __BORLANDC__
00351 # define CC_COMMAND "bcc"
00352 # else
00353 # if TURBOC
00354 # define CC_COMMAND "tcc"
00355 # endif
00356 # endif
00357 # endif
00358 # endif
00359 # define SCRATCHIN "%s\\siXXXXXX"
00360 # define SCRATCHOUT "%s\\soXXXXXX"
00361 # define SLASH '\\'
00362 # ifndef SHELL
00363 # if TOS
00364 # define SHELL "shell.ttp"
00365 # else
00366 # define SHELL "command.com"
00367 # endif
00368 # endif
00369 # define NEEDSYNC TRUE
00370 # if TOS && __GNUC__
00371 # define REDIRECT "2>"
00372 # define CC_COMMAND "gcc -c"
00373 # else
00374 # define REDIRECT ">"
00375 # endif
00376 #endif
00377
00378 #if VMS
00379
00380 # ifndef TMPDIR
00381 # define TMPDIR "sys$scratch:"
00382 # endif
00383 # define TMPNAME "%selv_%x.%x;1"
00384 # define SCRATCHIN "%ssiXXXXXX"
00385 # define SCRATCHOUT "%ssoXXXXXX"
00386 # define SLASH '\:'
00387 # ifndef SHELL
00388 # define SHELL ""
00389 # endif
00390 # define REDIRECT ">"
00391 # define tread(fd,buf,n) vms_read(fd,buf,(unsigned)(n))
00392 # define close vms_close
00393 # define lseek vms_lseek
00394 # define unlink vms_delete
00395 # define delete __delete
00396 # define rpipe vms_rpipe
00397 # define rpclose vms_rpclose
00398 # define ttyread vms_ttyread
00399
00400 # define sync()
00401
00402 # define m_fWord m_fw_ord
00403 # define m_bWord m_bw_ord
00404 # define m_eWord m_ew_ord
00405 # define m_Nsrch m_n_srch
00406 # define m_Fch m_f_ch
00407 # define m_Tch m_t_ch
00408 # define v_Xchar v_x_char
00409
00410 # define LINES elvis_LINES
00411 # define COLS elvis_COLS
00412 # define curscr elvis_curscr
00413 # define stdscr elvis_stdscr
00414 # define initscr elvis_initscr
00415 # define endwin elvis_endwin
00416 # define wrefresh elvis_wrefresh
00417 #endif
00418
00419 #if OSK
00420 # ifndef TMPDIR
00421 # define TMPDIR "/dd/tmp"
00422 # endif
00423 # ifndef PRSVDIR
00424 # define PRSVDIR "/dd/usr/preserve"
00425 # endif
00426 # ifndef PRSVINDEX
00427 # define PRSVINDEX "/dd/usr/preserve/Index"
00428 # endif
00429 # ifndef CC_COMMAND
00430 # define CC_COMMAND "cc -r"
00431 # endif
00432 # ifndef EXRC
00433 # define EXRC ".exrc"
00434 # endif
00435 # define SCRATCHOUT "%s/soXXXXXX"
00436 # ifndef SHELL
00437 # define SHELL "shell"
00438 # endif
00439 # define FILEPERMS (S_IREAD|S_IWRITE)
00440 # define REDIRECT ">>-"
00441 # define sync()
00442 #endif
00443
00444 #ifndef TAGS
00445 # define TAGS "tags"
00446 #endif
00447
00448 #ifndef TMPNAME
00449 # define TMPNAME "%s/elv_%x.%x"
00450 #endif
00451
00452 #ifndef EXINIT
00453 # define EXINIT "EXINIT"
00454 #endif
00455
00456 #ifndef EXRC
00457 # define EXRC "elvis.rc"
00458 #endif
00459
00460 #ifndef HMEXRC
00461 # define HMEXRC EXRC
00462 #endif
00463
00464 #ifndef KEYWORDPRG
00465 # define KEYWORDPRG "ref"
00466 #endif
00467
00468 #ifndef SCRATCHOUT
00469 # define SCRATCHIN "%s/SIXXXXXX"
00470 # define SCRATCHOUT "%s/SOXXXXXX"
00471 #endif
00472
00473 #ifndef ERRLIST
00474 # define ERRLIST "errlist"
00475 #endif
00476
00477 #ifndef SLASH
00478 # define SLASH '/'
00479 #endif
00480
00481 #ifndef SHELL
00482 # define SHELL "shell"
00483 #endif
00484
00485 #ifndef REG
00486 # define REG register
00487 #endif
00488
00489 #ifndef NEEDSYNC
00490 # define NEEDSYNC FALSE
00491 #endif
00492
00493 #ifndef FILEPERMS
00494 # define FILEPERMS 0666
00495 #endif
00496
00497 #ifndef PRESERVE
00498 # define PRESERVE "elvprsv"
00499 #endif
00500
00501 #ifndef CC_COMMAND
00502 # define CC_COMMAND "cc -c"
00503 #endif
00504
00505 #ifndef MAKE_COMMAND
00506 # define MAKE_COMMAND "make"
00507 #endif
00508
00509 #ifndef REDIRECT
00510 # define REDIRECT "2>"
00511 #endif
00512
00513 #ifndef BLKSIZE
00514 # ifdef CRUNCH
00515 # define BLKSIZE 1024
00516 # else
00517 # define BLKSIZE 2048
00518 # endif
00519 #endif
00520
00521 #ifndef KEYBUFSIZE
00522 # define KEYBUFSIZE 1000
00523 #endif
00524
00525 #endif