1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
/* os.h - source/target operating system dependencies for bcc */
/* Copyright (C) 1992 Bruce Evans */
/*
must have unix-near-compatible creat, open, read, write and close
source O/S's supported:
default:
*IX
special:
EDOS (#define SOS_EDOS if required)
MSDOS (#define SOS_MSDOS)
target O/S's supported:
default:
*IX
MSDOS
special:
EDOS (#define TOS_EDOS)
*/
/* defaults */
#define CREATPERMS 0666 /* permissions for creat */
#define EOL 10 /* source newline */
#define EOLTO 10 /* target newline */
#define DIRCHAR '/'
#define DIRSTRING "/"
#define isabspath(fnameptr, tempcptr) \
((*(tempcptr) = *(fnameptr)) == DIRCHAR)
/* special */
#ifdef SOS_EDOS
# undef DEFAULT_INCLUDE_DIR
# define DEFAULT_INCLUDE_DIR "3"
# undef DIRCHAR
# define DIRCHAR ':'
# undef DIRSTRING
# define DIRSTRING ":"
# define AS09
# undef EOL
# define EOL 13
# undef isabspath
# define isabspath(fnameptr, tempcptr) \
((*(tempcptr) = *(fnameptr)) >= '0' && *(tempcptr) <= '9' && \
(fnameptr)[1] == DIRCHAR)
#endif
#ifdef TOS_EDOS
# undef EOLTO
# define EOLTO 13
#endif
/* don't let names dealt with here affect anything outside this file */
#undef SOS_EDOS
#undef SOS_MSDOS
|