Archive-Unzip-Burst
view release on metacpan or search on metacpan
unzip-6.0/macos/source/maccfg.h view on Meta::CPAN
#endif
#define lenEOL 1
#define PutNativeEOL *q++ = native(CR);
#define NOANSIFILT /* MWRKS C creates broken code for the ANSI-ESC filter */
#define MALLOC_WORK
#define INT_SPRINTF
#if (!defined(NO_EF_UT_TIME) && !defined(USE_EF_UT_TIME))
# define USE_EF_UT_TIME
#endif
#undef IZ_CHECK_TZ
#undef MORE
#undef DYNAMIC_CRC_TABLE
#ifndef MPW
# ifndef MacStaticLib
# ifndef USE_SIOUX
# define fgets macfgets
# define fflush(f)
# define fprintf macfprintf
# define fputs(s,f) macfprintf((f), "%s", (s))
# define printf macprintf
# ifdef putc
# undef putc
# endif
# define putc(c,f) macfprintf((f), "%c", (c))
# endif /* !USE_SIOUX */
# else
# ifdef putc
# undef putc
# endif
# define putc(c,f) fprintf((f), "%c", (c))
# endif
# define isatty(f) (((f) >= 0) || ((f) <= 2))
#endif
#ifndef isascii
# define isascii(c) ((unsigned char)(c) <= 0x3F)
#endif
#include "macstat.h"
#include "macdir.h"
#ifdef CR
# undef CR
#endif
#ifdef foreign
# undef foreign
#endif
#define foreign(c) ((c) & 0x80 ? MacRoman_to_WinCP1252[(c) & 0x7f] : (c))
#ifdef native
# undef native
#endif
#define native(c) ((c) & 0x80 ? WinCP1252_to_MacRoman[(c) & 0x7f] : (c))
#define NATIVE "MacRoman charset"
#ifdef _ISO_INTERN
# undef _ISO_INTERN
#endif
#define _ISO_INTERN(str1) {register uch *p;\
for (p=(uch *)(str1); *p; p++)\
*p = (*p & 0x80) ? WinCP1252_to_MacRoman[*p & 0x7f] : *p;}
#ifdef _OEM_INTERN
# undef _OEM_INTERN
#endif
#ifndef IZ_OEM2ISO_ARRAY
# define IZ_OEM2ISO_ARRAY
#endif
#define _OEM_INTERN(str1) {register uch *p;\
for (p=(uch *)(str1); *p; p++)\
*p = (*p & 0x80) ? WinCP1252_to_MacRoman[oem2iso[*p & 0x7f]] : *p;}
#ifdef __FILEIO_C /* get the ISO8859-1 <--> MacROMAN conversion tables */
# include "charmap.h"
#else
extern ZCONST uch WinCP1252_to_MacRoman[128];
extern ZCONST uch MacRoman_to_WinCP1252[128];
#endif
#define EB_M3_FL_NOCHANGE 0x02 /* filename will be not changed */
/* other EB_M3 flags are defined in unzpriv.h */
#define EB_MAC3_SIZE (EB_HEADSIZE + EB_MAC3_HLEN)
/*****************************************************************************/
/* Structure typedefs */
/*****************************************************************************/
typedef struct _ZipExtraHdr {
ush header; /* 2 bytes */
ush data; /* 2 bytes */
} ZIP_EXTRA_HEADER;
/* the following structure is a combination of the old and the new
extra-field definition; so it's *not* the definition of the extra-field */
typedef struct _MacInfo {
unsigned char *filename; /* for ZipIt ef */
ush header; /* tag for this extra block type */
ush data; /* total data size for this block */
ulg size; /* uncompressed finder attribute data size */
ush flags; /* info bits:
bit 0 if set, file is a data fork
bit 1 if set, filename will be not changed
bit 2 if set, Attribs is uncompressed
bit 3 if set, date and times are in 64 bit;
if zero, date and times are in 32 bit
bit 4 if set, "local time - UTC" offsets are
omitted
bits 5-15 reserved; not tested; */
ush CompType;
( run in 2.620 seconds using v1.01-cache-2.11-cpan-d7f47b0818f )