Category : C Source Code
Archive   : PGP20SRC.ZIP
Filename : ZTAILOR.H

 
Output of file : ZTAILOR.H contained in archive : PGP20SRC.ZIP
/* tailor.h -- Not copyrighted 1991 Mark Adler */

/* const's are inconsistently used across ANSI libraries--kill for all
header files. */
#define const


/* Use prototypes and ANSI libraries if __STDC__ */
#ifdef __STDC__
# ifndef PROTO
# define PROTO
# endif /* !PROTO */
# define MODERN
#endif /* __STDC__ */


/* Use prototypes and ANSI libraries if Silicon Graphics */
#ifdef sgi
# ifndef PROTO
# define PROTO
# endif /* !PROTO */
# define MODERN
#endif /* sgi */


/* Define MSDOS for Turbo C as well as Microsoft C */
#ifdef __POWERC /* For Power C too */
# define __TURBOC__
#endif /* __POWERC */


/* Use prototypes and ANSI libraries if Microsoft or Borland C */
#ifdef MSDOS
# ifndef PROTO
# define PROTO
# endif /* !PROTO */
# define MODERN
#endif /* MSDOS */


/* Turn off prototypes if requested */
#ifdef NOPROTO
# ifdef PROTO
# undef PROTO
# endif /* PROTO */
#endif /* NOPROT */


/* Used to remove arguments in function prototypes for non-ANSI C */
#ifdef PROTO
# define OF(a) a
#else /* !PROTO */
# define OF(a) ()
#endif /* ?PROTO */


/* Allow far and huge allocation for small model (Microsoft C or Turbo C) */
#ifdef MSDOS
# ifndef DYN_ALLOC
# define DYN_ALLOC
# endif
# ifdef __TURBOC__
# include
# else /* !__TURBOC__ */
# include
# define farmalloc _fmalloc
# define farfree _ffree
# endif /* ?__TURBOC__ */
#else /* !MSDOS */
# define huge
# define far
# define near
# define farmalloc malloc
# define farfree free
#endif /* ?MSDOS */

#define fcalloc calloc
/* Assumes that all arrays are < 64K for MSDOS */

/* Define MSVMS if either MSDOS or VMS defined */
#ifdef MSDOS
# define MSVMS
#else /* !MSDOS */
# ifdef VMS
# define MSVMS
# endif /* VMS */
#endif /* ?MSDOS */


/* Define void, voidp, and extent (size_t) */
#include
#ifdef MODERN
# if !defined(M_XENIX) && !defined(__GNUC__)
# include
# endif /* !M_XENIX */
# include
typedef size_t extent;
typedef void voidp;
#else /* !MODERN */
typedef unsigned int extent;
#ifndef M_XENIX
# define void int
#endif
typedef char voidp;
#endif /* ?MODERN */

/* Get types and stat */
#ifdef VMS
# include
# include
#else /* !VMS */
# include
# include
#endif /* ?VMS */


/* Cheap fix for unlink on VMS */
#ifdef VMS
# define unlink delete
#endif /* VMS */


/* For Pyramid */
#ifdef pyr
# define strrchr rindex
# define ZMEM
#endif /* pyr */


/* File operations--use "b" for binary if allowed */
#ifdef MODERN
# define FOPR "rb"
# define FOPM "r+b"
# define FOPW "w+b"
#else /* !MODERN */
# define FOPR "r"
# define FOPM "r+"
# define FOPW "w+"
#endif /* ?MODERN */


/* Define this symbol if your target allows access to unaligned data.
* This is not mandatory, just a speed optimization. The compressed
* output is strictly identical.
*/
#if defined(MSDOS) || defined(M_XENIX) || defined(i386) || defined(mc68020) || defined(vax)
# define UNALIGNED_OK
#endif


/* Under MSDOS we may run out of memory when processing a large number
* of files. Compile with MEDIUM_MEM to reduce the memory requirements or
* with MIN_MEM to use as little memory as possible.
*/
#ifdef SMALL_MEM
# define BSZ 2048 /* Buffer size for files */
#else
#ifdef MEDIUM_MEM
# define BSZ 8192
#else
# define BSZ 16384
#endif
#endif

/* end of tailor.h */


  3 Responses to “Category : C Source Code
Archive   : PGP20SRC.ZIP
Filename : ZTAILOR.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/