123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- #ifndef DOS
- # define DOS
- #endif
- #ifndef MSDOS
- # define MSDOS
- #endif
- #ifdef __POWERC
- # define __TURBOC__
- #endif
- #if defined(_MSC_VER) || (defined(M_I86) && !defined(__WATCOMC__))
- # ifndef MSC
- # define MSC
- # endif
- #endif
- #if !defined(__GO32__) && !defined(__EMX__)
- # define NO_UNISTD_H
- #endif
- #if defined(__WATCOMC__) && defined(__386__)
- # define WATCOMC_386
- #endif
- #ifdef WINDLL
- # define MSWIN
- # define MEMORY16
- #endif
- #if !defined(__EMX__) && !defined(__GO32__) && !defined(WATCOMC_386)
- #if !defined(WINDLL)
- # define MSDOS16
- # define MEMORY16
- #endif
- #endif
- #if !defined(NO_ASM) && !defined(ASMV)
- # define ASMV
- #endif
- #if !defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME)
- # define USE_EF_UT_TIME
- #endif
- #if (!defined(NO_IZ_CHECK_TZ) && !defined(IZ_CHECK_TZ))
- # define IZ_CHECK_TZ
- #endif
- #ifdef MEMORY16
- # ifndef NO_ASM
- # define ASM_CRC 1
- # endif
- # ifdef __TURBOC__
- # include <alloc.h>
- # if defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__)
- # if defined(DYNAMIC_CRC_TABLE) && defined(DYNALLOC_CRCTAB)
- error: No dynamic CRC table allocation with Borland C far data models.
- # endif
- # endif
- # define nearmalloc malloc
- # define nearfree free
- # define DYN_ALLOC
- # else
- # include <malloc.h>
- # define nearmalloc _nmalloc
- # define nearfree _nfree
- # define farmalloc _fmalloc
- # define farfree _ffree
- # endif
- # define MY_ZCALLOC 1
- # ifdef SMALL_MEM
- # define CBSZ 2048
- # define ZBSZ 2048
- # endif
- # ifdef MEDIUM_MEM
- # define CBSZ 4096
- # define ZBSZ 4096
- # endif
- # ifndef CBSZ
- # define CBSZ 8192
- # define ZBSZ 8192
- # endif
- #endif
- #ifndef NO_SYMLINKS
- # define NO_SYMLINKS
- #endif
- #ifdef MATCH
- # undef MATCH
- #endif
- #define MATCH dosmatch
- #define USE_CASE_MAP
- #define ROUNDED_TIME(time) (((time) + 1) & (~1))
- #define PROCNAME(n) (action == ADD || action == UPDATE ? wild(n) : \
- procname(n, 1))
- #define FOPR "rb"
- #define FOPM "r+b"
- #define FOPW "wb"
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <io.h>
- #ifdef ZCRYPT_INTERNAL
- # ifdef WINDLL
- # define ZCR_SEED2 (unsigned)3141592654L
- # else
- # ifndef __GO32__
- # include <process.h> /* getpid() declaration for srand seed */
- # endif
- # endif
- #endif
- #if defined(__GO32__) && !defined(__DJGPP__)
- char *strlwr(char *);
- int setmode(int, int);
- #endif
- #ifdef __WATCOMC__
- # define NO_MKTEMP
- # define HAS_OPENDIR
- # define SSTAT stat_bandaid
- int stat_bandaid(const char *path, struct stat *buf);
- # ifdef __386__
- # ifdef ASMV
- # pragma aux match_init "_*" parm caller [] modify []
- # pragma aux longest_match "_*" parm caller [] value [eax] \
- modify [eax ecx edx]
- # endif
- # ifndef USE_ZLIB
- # pragma aux crc32 "_*" parm caller [] value [eax] modify [eax]
- # pragma aux get_crc_table "_*" parm caller [] value [eax] \
- modify [eax ecx edx]
- # endif
- # else
- # ifdef ASMV
- # pragma aux match_init "_*" parm caller [] loadds modify [ax bx]
- # pragma aux longest_match "_*" parm caller [] loadds value [ax] \
- modify [ax bx cx dx es]
- # endif
- # ifndef USE_ZLIB
- # pragma aux crc32 "_*" parm caller [] value [ax dx] \
- modify [ax bx cx dx es]
- # pragma aux get_crc_table "_*" parm caller [] value [ax] \
- modify [ax bx cx dx]
- # endif
- # endif
- #endif
- #if defined(_MSC_VER) && _MSC_VER == 700
- # define localtime(t) msc7_localtime(t)
- #endif
- #ifdef __TURBOC__
- # ifdef __FILEIO_C
- # include <dir.h> /* supplies mktemp() prototype */
- # endif
- #endif
- #if (defined(__TURBOC__) && !defined(__BORLANDC__) && __TURBOC__ <= 0x0201)
- # ifndef NO_MKTIME
- # define NO_MKTIME
- # endif
- #endif
- void check_for_windows(char *app);
|