Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

unzip-6.0/explode.c  view on Meta::CPAN

        3649, 3713, 3777, 3841, 3905, 3969, 4033};
static ZCONST ush cpdist8[] =
        {1, 129, 257, 385, 513, 641, 769, 897, 1025, 1153, 1281,
        1409, 1537, 1665, 1793, 1921, 2049, 2177, 2305, 2433, 2561, 2689,
        2817, 2945, 3073, 3201, 3329, 3457, 3585, 3713, 3841, 3969, 4097,
        4225, 4353, 4481, 4609, 4737, 4865, 4993, 5121, 5249, 5377, 5505,
        5633, 5761, 5889, 6017, 6145, 6273, 6401, 6529, 6657, 6785, 6913,
        7041, 7169, 7297, 7425, 7553, 7681, 7809, 7937, 8065};


/* Macros for inflate() bit peeking and grabbing.
   The usage is:

        NEEDBITS(j)
        x = b & mask_bits[j];
        DUMPBITS(j)

   where NEEDBITS makes sure that b has at least j bits in it, and
   DUMPBITS removes the bits from b.  The macros use the variable k
   for the number of bits in b.  Normally, b and k are register
   variables for speed.

unzip-6.0/funzip.c  view on Meta::CPAN

#define  GZPISX 4               /* bit for extra field present */
#define  GZPISF 8               /* bit for filename present */
#define  GZPISC 16              /* bit for comment present */
#define  GZPISE 32              /* bit for encryption */
#define GZPTIM 2                /* offset of Unix file modification time */
#define GZPEXF 6                /* offset of extra flags */
#define GZPCOS 7                /* offset of operating system compressed on */
#define GZPHDR 8                /* length of minimal gzip header */

#ifdef THEOS
/* Macros cause stack overflow in compiler */
ush SH(uch* p) { return ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8)); }
ulg LG(uch* p) { return ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16)); }
#else /* !THEOS */
/* Macros for getting two-byte and four-byte header values */
#define SH(p) ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8))
#define LG(p) ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16))
#endif /* ?THEOS */

/* Function prototypes */
static void err OF((int, char *));
#if (defined(USE_DEFLATE64) && defined(__16BIT__))
static int partflush OF((uch *rawbuf, unsigned w));
#endif
int main OF((int, char **));

unzip-6.0/inflate.c  view on Meta::CPAN

#if 0
/* And'ing with mask_bits[n] masks the lower n bits */
ZCONST unsigned near mask_bits[17] = {
    0x0000,
    0x0001, 0x0003, 0x0007, 0x000f, 0x001f, 0x003f, 0x007f, 0x00ff,
    0x01ff, 0x03ff, 0x07ff, 0x0fff, 0x1fff, 0x3fff, 0x7fff, 0xffff
};
#endif /* 0 */


/* Macros for inflate() bit peeking and grabbing.
   The usage is:

        NEEDBITS(j)
        x = b & mask_bits[j];
        DUMPBITS(j)

   where NEEDBITS makes sure that b has at least j bits in it, and
   DUMPBITS removes the bits from b.  The macros use the variable k
   for the number of bits in b.  Normally, b and k are register
   variables for speed and are initialized at the beginning of a

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

*/
/*---------------------------------------------------------------------------

  UnZp.h

  This header-files is global to the project Unzip standalone.

  ---------------------------------------------------------------------------*/

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define MACUNZIP_STANDALONE
#define MACUNZIP

/* These functions are defined as a macro instead of a function.
so we have to undefine them for replacing */
#undef getc
#undef getchar
#undef putchar

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

*/
/*---------------------------------------------------------------------------

  UnZpLib.h

  This header-files is global to the project UnZpLib.

  ---------------------------------------------------------------------------*/

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define MacStaticLib
#define MACUNZIP

/* These functions are defined as a macro instead of a function.
so we have to undefine them for replacing (see printf.c)  */
#undef getc
#undef getchar
#undef putchar

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

*/
/*---------------------------------------------------------------------------

  UnZpSFX.h

  This header-files is global to the project UnzipSFX standalone.

  ---------------------------------------------------------------------------*/

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define MACUNZIP_STANDALONE
#define MACUNZIP

/* These functions are defined as a macro instead of a function.
so we have to undefine them for replacing */
#undef getc
#undef getchar
#undef putchar

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

*/
/*---------------------------------------------------------------------------

  UnZpSx.h

  This header-files is global to the project Unzip Sioux.

  ---------------------------------------------------------------------------*/

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define USE_SIOUX
#define MACUNZIP

#ifndef    TRUE
#define    TRUE 1
#endif  /* TRUE */
#ifndef    FALSE
#define    FALSE 0

unzip-6.0/macos/source/getenv.c  view on Meta::CPAN

/*  Module level Vars                                                        */
/*****************************************************************************/

static char ListAllKeyValues = 0;
static unsigned LineNumber   = 0;
static char CompletePath[NAME_MAX];
Boolean IgnoreEnvironment    = false;  /* used by dialog.c and initfunc.c
                                          of the Mainapp */

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

typedef struct _EnviromentPair {
    char *key;
    char *value;
} EnviromentPair;


#define MAX_COMMAND 1024

unzip-6.0/macos/source/macbin3.c  view on Meta::CPAN


/*****************************************************************************/
/*  Includes                                                                 */
/*****************************************************************************/

#include <string.h>
#include <stdio.h>
#include "macbin3.h"

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

/* source (the macbinary file) will be deleted */
#define DELETE_MACBINARY_SOURCE

/* enable encoding
#define INCLUDE_ENCODE_MACBINARY         */

/* enable decoding */
#define INCLUDE_DECODE_MACBINARY

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

*/
/*---------------------------------------------------------------------------
    MACOS specific configuration and declarations:
  ---------------------------------------------------------------------------*/

#ifndef __maccfg_h
#define __maccfg_h


/*****************************************************************************/
/*  Macros, missing RTL declarations, compatibility typedefs                 */
/*****************************************************************************/


#if defined(__MWERKS__) && defined(macintosh)
#  include <OSUtils.h>

   typedef unsigned long mode_t;
#  define _STAT

#  if (defined(MacStaticLib) || defined(USE_SIOUX))

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

#include <script.h>
#include <sound.h>

#include "pathname.h"
#include "helpers.h"
#include "macstuff.h"
#include "mactime.h"
#include "macbin3.h"

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

/* disable ZipIt support
#define SwitchZIPITefSupportOff */

#define read_only   file_attr       /* for readability only */
#define EB_MAX_OF_VARDATA   1300    /* max possible datasize of extra-field */

#ifdef WILD_STOP_AT_DIR
#  define WESEP     , (oU.W_flag ? ':' : '\0')

unzip-6.0/macos/source/macscreen.c  view on Meta::CPAN

/*****************************************************************************/

#include <QuickDraw.h>

#include <stdio.h>
#include <stdarg.h>
#include <string.h>


/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define bufferSize      4096

#define screenWindow    128

#define pauseOption     0x0001
#define scrollOption    0x0002


unzip-6.0/macos/source/mactime.c  view on Meta::CPAN



/*
The MacOS function GetDateTime returns  the
number of seconds elapsed since midnight, January 1, 1904.
*/
const unsigned long MacOS_2_Unix = 2082844800L;


/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/


#ifndef TEST_TIME_LIB
#define my_gmtime    gmtime
#define my_localtime localtime
#define my_mktime    mktime
#define my_time      time
#endif

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

 *     Mac has no support for DST handling.
 *     DST changeover is all manually set by the user.


------------------------------------------------------------------------------*/

#include <time.h>
#include <mactypes.h>

/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/


  /*
   * ARGH.  Mac times are based on 1904 Jan 1 00:00, not 1970 Jan 1 00:00.
   *  So we have to diddle time_t's appropriately:  add or subtract 66 years'
   *  worth of seconds == number of days times 86400 == (66*365 regular days +
   *  17 leap days ) * 86400 == (24090 + 17) * 86400 == 2082844800L seconds.
   *  We hope time_t is an unsigned long (ulg) on the Macintosh...
   */

unzip-6.0/macos/source/macunzip.c  view on Meta::CPAN

#define UNZIP_INTERNAL
#include "unzip.h"
#include "unzvers.h"
#include "pathname.h"
#include "helpers.h"

#include <Traps.h>


/*****************************************************************************/
/*  Macros, typedefs                                                         */
/*****************************************************************************/

#define aboutAlert      128

#define selectDialog    129
#define okItem          1
#define cancelItem      2
#define editItem        3
#define staticItem      4

unzip-6.0/msdos/msdos.c  view on Meta::CPAN

  "\nwarning:  file attributes may not be correct\n";
#if (!defined(SFX) && !defined(WINDLL))
   static ZCONST char Far WarnUsedOnWindows[] =
     "\n%s warning: You are using the MSDOS version on Windows.\n"
     "Please try the native Windows version before reporting any problems.\n";
#endif



/****************************/
/*  Macros used in msdos.c  */
/****************************/

#ifdef WATCOMC_386
#  define WREGS(v,r) (v.w.r)
#  define int86x int386x
   static int int86x_realmode(int inter_no, union REGS *in,
                              union REGS *out, struct SREGS *seg);
#  define F_intdosx(ir,or,sr) int86x_realmode(0x21, ir, or, sr)
#  define XXX__MK_FP_IS_BROKEN
#else

unzip-6.0/netware/makefile.wat  view on Meta::CPAN

#   (for now) included only for completeness and as a starting point for a real
#   Novell Netware NLM port.  (This makefile was intended for Netware 3.11.)


# Commands to execute before making any target
# Set environment variables for compiler
.BEFORE
    @set inc386=\watcom\novh
    @set wcg386=\watcom\binp\wcl386.exe

# Macro definitions
NLMNAME = unzip
DESCRIPTION = unzip utility
VERSION = 5.5.3
COPYRIGHT = Copyright 1990-2007 Info-ZIP (www.info-zip.org).
SCREENNAME = Info-ZIP's UnZip Utility
CLIBIMP = \watcom\novi\clib.imp
OBJFILE = $NLMNAME.obj
PRELUDE = \watcom\novi\prelude.obj

# Compile switches

unzip-6.0/proginfo/extrafld.txt  view on Meta::CPAN

          0x334d        Info-ZIP Macintosh (new, D. Haase's 'Mac3' field)
          0x4154        Tandem NSK
          0x4341        Acorn/SparkFS (David Pilling)
          0x4453        Windows NT security descriptor (binary ACL)
          0x4704        VM/CMS
          0x470f        MVS
          0x4854        Theos, old inofficial port
          0x4b46        FWKCS MD5 (see below)
          0x4c41        OS/2 access control list (text ACL)
          0x4d49        Info-ZIP OpenVMS (obsolete)
          0x4d63        Macintosh SmartZIP, by Macro Bambini
          0x4f4c        Xceed original location extra field
          0x5356        AOS/VS (binary ACL)
          0x5455        extended timestamp
          0x554e        Xceed unicode extra field
          0x5855        Info-ZIP UNIX (original; also OS/2, NT, etc.)
          0x6375        Info-ZIP UTF-8 comment field
          0x6542        BeOS (BeBox, PowerMac, etc.)
          0x6854        Theos
          0x7075        Info-ZIP UTF-8 name field
          0x7441        AtheOS (AtheOS/Syllable attributes)

unzip-6.0/unzpriv.h  view on Meta::CPAN

#endif
#ifdef SYSTEM_SPECIFIC_DTOR
   void  SYSTEM_SPECIFIC_DTOR   OF((__GPRO));                       /* local */
#endif





/************/
/*  Macros  */
/************/

#ifndef MAX
#  define MAX(a,b)   ((a) > (b) ? (a) : (b))
#endif
#ifndef MIN
#  define MIN(a,b)   ((a) < (b) ? (a) : (b))
#endif

#ifdef DEBUG

unzip-6.0/vms/cmdline.c  view on Meta::CPAN

#include <climsgdef.h>
#include <clidef.h>
#include <lib$routines.h>
#include <str$routines.h>

#ifndef CLI$_COMMA
globalvalue CLI$_COMMA;
#endif

/*
**  "Macro" to initialize a dynamic string descriptor.
*/
#define init_dyndesc(dsc) {\
        dsc.dsc$w_length = 0;\
        dsc.dsc$b_dtype = DSC$K_DTYPE_T;\
        dsc.dsc$b_class = DSC$K_CLASS_D;\
        dsc.dsc$a_pointer = NULL;}

/*
**  Memory allocation step for argv string buffer.
*/

unzip-6.0/vms/descrip_src.mms  view on Meta::CPAN

	@ write sys$output -
 "   or ""/MACRO = MMS$ARCH_NAME=IA64"", or ""/MACRO = MMS$ARCH_NAME=VAX"","
	@ write sys$output -
 "   as appropriate.  (Or try a newer version of MMS.)"
.ENDIF                              # __MMK__
	@ write sys$output ""
	I_WILL_DIE_NOW.  /$$$$INVALID$$$$
.ELSE                           # UNK_DEST
.IFDEF VAX_MULTI_CMPL               # VAX_MULTI_CMPL
	@ write sys$output -
 "   Macro ""GNUC"" is incompatible with ""VAXC"" or ""FORCE_VAXC""."
	@ write sys$output ""
	I_WILL_DIE_NOW.  /$$$$INVALID$$$$
.ELSE                               # VAX_MULTI_CMPL
.IFDEF NON_VAX_CMPL                     # NON_VAX_CMPL
	@ write sys$output -
 "   Macros ""GNUC"", ""VAXC"", and ""FORCE_VAXC"" are valid only on VAX."
	@ write sys$output ""
	I_WILL_DIE_NOW.  /$$$$INVALID$$$$
.ELSE                                   # NON_VAX_CMPL
.IFDEF LARGE_VAX                            # LARGE_VAX
	@ write sys$output -
 "   Macro ""LARGE"" is invalid on VAX."
	@ write sys$output ""
	I_WILL_DIE_NOW.  /$$$$INVALID$$$$
.ELSE                                       # LARGE_VAX
.IFDEF IZ_BZIP2                                 # IZ_BZIP2
.IFDEF BUILD_BZIP2                                  # BUILD_BZIP2
	@ if (f$search( "$(IZ_BZIP2)bzlib.h") .eqs. "") then -
	   write sys$output "   Can not find header file $(IZ_BZIP2)bzlib.h"
	@ if (f$search( "$(IZ_BZIP2)bzlib.h") .eqs. "") then -
	   write sys$output ""
	@ if (f$search( "$(IZ_BZIP2)bzlib.h") .eqs. "") then -

unzip-6.0/wince/winmain.h  view on Meta::CPAN

//******************************************************************************

#ifndef __WINMAIN_H__
#define __WINMAIN_H__

#ifdef __cplusplus
extern "C" {
#endif

//******************************************************************************
//***** Constants / Macros
//******************************************************************************

#define MRU_MAX_FILE                       4  // Should not exceed 9
#define MRU_START_ID                     501

#define WM_PRIVATE                    0x9999
#define MSG_SUBCLASS_DIALOG                1
#define MSG_INIT_DIALOG                    2
#define MSG_ADD_TEXT_TO_EDIT               3
#define MSG_PROMPT_TO_REPLACE              4



( run in 0.883 second using v1.01-cache-2.11-cpan-49f99fa48dc )