123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- #if defined(__OS2__) && !defined(OS2)
- # define OS2
- #endif
- #if defined(_MSC_VER) || (defined(M_I86) && !defined(__WATCOMC__))
- # ifndef MSC
- # define MSC
- # endif
- #endif
- #if defined(__WATCOMC__) && defined(__386__)
- # define WATCOMC_386
- #endif
- #if defined(__EMX__) || defined(WATCOMC_386) || defined(__BORLANDC__)
- # if (defined(OS2) && !defined(__32BIT__))
- # define __32BIT__
- # endif
- #endif
- #if defined(OS2) && !defined(__32BIT__)
- # define MEMORY16
- #endif
- #ifndef NO_ASM
- # 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
- #ifndef ZP_NEED_MEMCOMPR
- # define ZP_NEED_MEMCOMPR
- #endif
- #ifdef MEMORY16
- # 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
- #endif
- #if (defined(OS2) && !defined(MSDOS))
- # define MSDOS
- #endif
- #define USE_CASE_MAP
- #define PROCNAME(n) (action == ADD || action == UPDATE ? wild(n) : \
- procname(n, 1))
- #define ROUNDED_TIME(time) ((time_t)(((unsigned long)(time) + 1) & (~1)))
- #define FOPR "rb"
- #define FOPM "r+b"
- #define FOPW "wb"
- #ifdef __32BIT__
- # define CBSZ 0x40000
- # define ZBSZ 0x40000
- #else
- # define CBSZ 0xE000
- # define ZBSZ 0x7F00
- #endif
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <io.h>
- #ifdef ZCRYPT_INTERNAL
- # ifndef __GO32__
- # include <process.h> /* getpid() declaration for srand seed */
- # endif
- #endif
- #ifndef S_IFMT
- # define S_IFMT 0xF000
- #endif
- #ifdef MSC
- # define NO_UNISTD_H
- #endif
- #ifdef __WATCOMC__
- # define NO_MKTEMP
- # ifdef __386__
- # ifdef ASMV
- # pragma aux window "*";
- # pragma aux prev "*";
- # pragma aux prev_length "*";
- # pragma aux strstart "*";
- # pragma aux match_start "*";
- # pragma aux max_chain_length "*";
- # pragma aux good_match "*";
- # pragma aux nice_match "*";
- # pragma aux match_init "*";
- # pragma aux longest_match "*";
- # 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
- # if defined(ASMV) || defined(ASM_CRC)
- # endif
- # 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
- #ifdef __IBMC__
- # define NO_UNISTD_H
- # define NO_MKTEMP
- # define timezone _timezone
- # define tzset _tzset
- #endif
|