Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

unzip-6.0/macos/source/maccfg.h  view on Meta::CPAN

#  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;
    ulg         CRCvalue;

    CInfoPBRec  fpb;        /* Macintosh FInfo / FXInfo structure */
    long        Cr_UTCoffs; /* difference "local time - UTC" for Creat-time */
    long        Md_UTCoffs; /* difference "local time - UTC" for Modif-time */
    long        Bk_UTCoffs; /* difference "local time - UTC" for Bckup-time */

    short       TextEncodingBase;   /* TextEncodingBase (Charset) */
    char       *FullPath;           /* Path of the current file */
    char       *FinderComment;      /* Finder Comment of current file */
} MACINFO;


/*****************************************************************************/
/*  Global Vars                                                              */
/*****************************************************************************/

#define SYSTEM_SPECIFIC_GLOBALS \
    short    giCursor;\
    CursHandle rghCursor[4];       /* status cursors */

#define SYSTEM_SPECIFIC_CTOR    MacGlobalsInit


/*****************************************************************************/
/*  Prototypes                                                               */
/*****************************************************************************/

void    screenOpen      OF((char *));                         /* macscreen.c */
void    screenControl   OF((char *, int));                    /* macscreen.c */
void    screenDump      OF((char *, long));                   /* macscreen.c */
void    screenUpdate    OF((WindowPtr));                      /* macscreen.c */
void    screenClose     OF((void));                           /* macscreen.c */
int     macgetch        OF((void));                           /* macscreen.c */

int     macmkdir        OF((char *));                             /* macos.c */
short   macopen         OF((char *, short));                      /* macos.c */
short   maccreat        OF((char *));                             /* macos.c */
short   macread         OF((short, char *, unsigned));            /* macos.c */
long    macwrite        OF((short, char *, unsigned));            /* macos.c */
short   macclose        OF((short));                              /* macos.c */
long    maclseek        OF((short, long, short));                 /* macos.c */
char   *macfgets        OF((char *, int, FILE *));                /* macos.c */
int     macfprintf      OF((FILE *, char *, ...));                /* macos.c */
int     macprintf       OF((char *, ...));                        /* macos.c */

ulg    makePPClong(ZCONST uch *sig);
ush    makePPCword(ZCONST uch *b);
void   UserStop(void);

#endif /* !__maccfg_h */



( run in 0.787 second using v1.01-cache-2.11-cpan-0bb4e1dffa6 )