cs sdk v 1.14 released

Home  |  Product  |  Documents  |  Tutorials  |  FAQ |   Download  |   Forum |   Contacts  |   Link  


  Cross Suit

 Cross Suit SDK

 Documents
      classes
 Starting...
           Tutorials

 LUA tutorials

   Support

  Forum
  q&a

 Product parts

 Virtual File system

 Virtual Render
 Virtual Machine
   

  Demo Games

   

 3D Engine

  gvSystem(dx9)

 Link

 

 

unzip_Globals.h File Reference

#include <stdio.h>

Include dependency graph for unzip_Globals.h:

Go to the source code of this file.

Defines

#define SPLIT(x)

Typedefs

typedef split_filename SFS

Functions

void * malloc_chk (int n)
void quit_with (char *error)

Variables

ULONG crc
ULONG bhold
long rsize
long last_kpal
long total_size
long total_csize
int rc = 1
int pos_count
int sf_count
int e_count
int total_files
UINT sb_size = 0
BYTE bsize
BYTEsb = NULL
BYTEsbp = NULL
BYTEsbe = NULL
char * init_path
char ** pos_parms
char spin
char zfn [MAX_PATH_ZIPINFO]
char output_path [MAX_PATH_ZIPINFO]
char sw_dirs
char sw_freshen
char sw_new
char sw_overwrite
char sw_test
char sw_view
char sw_extract
char * sw_exclude
FILE * ifile
FILE * ofile
char copyright []
char help []
char bad_op [] = "Invalid parameter -%s\n"
char bad_value [] = "Missing value for -%c parameter\n"
char bad_switch [] = "Invalid syntax at %s\n"
char no_memory [] = "No memory available\n"
char no_zip_found [] = "ZIP file: %s was not found\n"
char done [] = "PCDEZIP completed normally\n"
char stop_here [] = "\nStopping at user's request\n"
char * compress_msg [10]
char * decompr_msg [10]
char view_hdr []
char view_line [] = "%8ld %8.8s%7ld %3d%% %s %c%s%s\n"
char view_nextline [] = "\n\t\t"
char view_trailer []
char view_encrypt [] = "?Marks encrypted files\n"
char view_none [] = "\nNo files were selected\n"
char not_supported [] = "File type not supported\n"
char extract_msg [] = "Extracting from"
char extract_test [] = "Testing"
char extract_hdr [] = "%s: %s\n\n"
char extract_line [] = "%11.11sing: %s "
char extract_skip [] = "Bypassing unknown compress type\n"
char extract_encr [] = "Encrypted File: %s * Bypassed *\n"
char extract_ec [] = "Extraction"
char extract_tc [] = "Testing"
char extract_done [] = " \n%s Complete: %d files processed\n"
char extract_none [] = "\nNothing extracted\n"
char old_file [] = " %s\n Existing:%8ld %s "
char new_file [] = "Zip:%8ld %s\n"
char overwrite_q [] = " Overwrite existing file? (Y/n/all/stop) "
char kpal_msg [] = "%c\b"
char spin_char [] = "/-\\|"
char dir_error [] = "Output directory not available\n"
char invalid_dir [] = "Unable to create output directory\n"
char open_error [] = "Error opening output file\n"
char read_error [] = "Error reading ZIP file\n"
char write_error [] = "Error writing output file\n"
char data_error [] = "Data integrity error -- run stopped\n"
char overflow_msg [] = "Decode stack overflow while unshrinking\n"
char crc_error [] = "CRC error -- run stopped\n"
char test_ok [] = "Tested ok\n"
cmd_parm parm_table []
SFSsf
SFS wf
SFS ef
UINT bll []
UINT cll []
UINT cle []
UINT cdo []
UINT cde []


Define Documentation

#define SPLIT (  ) 

Value:

fnsplit(x.path,         /* split file into its */   \
                        x.drv,  x.dir,      /* basic components    */   \
                        x.fname, x.ext);

Definition at line 176 of file unzip_Globals.h.


Typedef Documentation

typedef struct split_filename SFS

Definition at line 174 of file unzip_Globals.h.


Function Documentation

void* malloc_chk ( int  n  ) 

Definition at line 239 of file unzip_Globals.h.

References appMalloc(), and NOT.

Here is the call graph for this function:

void quit_with ( char *  error  ) 

Definition at line 255 of file unzip_Globals.h.


Variable Documentation

char bad_op[] = "Invalid parameter -%s\n"

Definition at line 78 of file unzip_Globals.h.

char bad_switch[] = "Invalid syntax at %s\n"

Definition at line 80 of file unzip_Globals.h.

char bad_value[] = "Missing value for -%c parameter\n"

Definition at line 79 of file unzip_Globals.h.

Definition at line 18 of file unzip_Globals.h.

UINT bll[]

Initial value:

                                
    {
    16, 17, 18, 0, 8, 7, 9, 6, 10, 5,
    11, 4, 12, 3, 13, 2, 14, 1, 15
    }

Definition at line 195 of file unzip_Globals.h.

Definition at line 34 of file unzip_Globals.h.

UINT cde[]

Initial value:

                                
    {                                       
    0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4,
    5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10,
    11, 11, 12, 12, 13, 13
    }

Definition at line 224 of file unzip_Globals.h.

UINT cdo[]

Initial value:

                                
    {                                       
    1, 2, 3, 4, 5, 7, 9, 13, 17, 25,
    33, 49, 65, 97, 129, 193, 257, 385,
    513, 769, 1025, 1537, 2049, 3073,
    4097, 6145, 8193, 12289, 16385, 24577
    }

Definition at line 216 of file unzip_Globals.h.

UINT cle[]

Initial value:

                                
    {                                       
    0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1,
    1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4,
    4, 4, 5, 5, 5, 5, 0, 99, 99
    }

Definition at line 209 of file unzip_Globals.h.

UINT cll[]

Initial value:

                                
    {                                       
    3, 4, 5, 6, 7, 8, 9, 10, 11, 13,
    15, 17, 19, 23, 27, 31, 35, 43,
    51, 59, 67, 83, 99, 115, 131, 163,
    195, 227, 258, 0, 0
    }

Definition at line 201 of file unzip_Globals.h.

char * compress_msg[10]

Initial value:

 { "unknown", "stored", "shrunk", "reduce1",
                         "reduce2", "reduce3", "reduce4",
                         "imploded", "tokenized", "deflated" }

Definition at line 85 of file unzip_Globals.h.

char copyright[]

Initial value:

 "PCDEZIP v1.00 þþ Copyright (c) 1994, "
                         "Bob Flanders and Michael Holmes\n"
                         "First Published in PC Magazine "
                         "January 11, 1994\n\n"

Definition at line 61 of file unzip_Globals.h.

Definition at line 18 of file unzip_Globals.h.

char crc_error[] = "CRC error -- run stopped\n"

Definition at line 123 of file unzip_Globals.h.

char data_error[] = "Data integrity error -- run stopped\n"

Definition at line 121 of file unzip_Globals.h.

char * decompr_msg[10]

Initial value:

 { "unknown", "copy", "unshrink", "expand",
                         "expand", "expand", "expand",
                         "explod", "", "inflat" }

Definition at line 88 of file unzip_Globals.h.

char dir_error[] = "Output directory not available\n"

Definition at line 116 of file unzip_Globals.h.

char done[] = "PCDEZIP completed normally\n"

Definition at line 83 of file unzip_Globals.h.

int e_count

Definition at line 26 of file unzip_Globals.h.

Definition at line 180 of file unzip_Globals.h.

char extract_done[] = " \n%s Complete: %d files processed\n"

Definition at line 109 of file unzip_Globals.h.

char extract_ec[] = "Extraction"

Definition at line 107 of file unzip_Globals.h.

char extract_encr[] = "Encrypted File: %s * Bypassed *\n"

Definition at line 106 of file unzip_Globals.h.

char extract_hdr[] = "%s: %s\n\n"

Definition at line 103 of file unzip_Globals.h.

char extract_line[] = "%11.11sing: %s "

Definition at line 104 of file unzip_Globals.h.

char extract_msg[] = "Extracting from"

Definition at line 101 of file unzip_Globals.h.

char extract_none[] = "\nNothing extracted\n"

Definition at line 110 of file unzip_Globals.h.

char extract_skip[] = "Bypassing unknown compress type\n"

Definition at line 105 of file unzip_Globals.h.

char extract_tc[] = "Testing"

Definition at line 108 of file unzip_Globals.h.

char extract_test[] = "Testing"

Definition at line 102 of file unzip_Globals.h.

char help[]

Initial value:

 "usage:  PCDEZIP  [switches]  zipfile  "
                         "[target\\]  [filespec [...]]\n\n"
                         "switches: -f  freshen existing files\n"
                         "\t  -n  extract new and updated files\n"
                         "\t  -o  do not prompt on overwrite\n"
                         "\t  -v  view ZIP directory\n"
                         "\t  -d  create directories\n"
                         "\t  -t  test file integrity\n\n"
                         "zipfile   is source .ZIP file\n\n"
                         "target\\   is the target directory;"
                         " trailing backslash required\n\n"
                         "filenames are files to be extracted;"
                         " wildcards supported\n\n"

Definition at line 65 of file unzip_Globals.h.

FILE* ifile

Definition at line 51 of file unzip_Globals.h.

char* init_path

Definition at line 37 of file unzip_Globals.h.

char invalid_dir[] = "Unable to create output directory\n"

Definition at line 117 of file unzip_Globals.h.

char kpal_msg[] = "%c\b"

Definition at line 114 of file unzip_Globals.h.

long last_kpal

Definition at line 21 of file unzip_Globals.h.

char new_file[] = "Zip:%8ld %s\n"

Definition at line 112 of file unzip_Globals.h.

char no_memory[] = "No memory available\n"

Definition at line 81 of file unzip_Globals.h.

char no_zip_found[] = "ZIP file: %s was not found\n"

Definition at line 82 of file unzip_Globals.h.

char not_supported[] = "File type not supported\n"

Definition at line 100 of file unzip_Globals.h.

FILE * ofile

Definition at line 51 of file unzip_Globals.h.

char old_file[] = " %s\n Existing:%8ld %s "

Definition at line 111 of file unzip_Globals.h.

char open_error[] = "Error opening output file\n"

Definition at line 118 of file unzip_Globals.h.

char output_path[MAX_PATH_ZIPINFO]

Definition at line 37 of file unzip_Globals.h.

char overflow_msg[] = "Decode stack overflow while unshrinking\n"

Definition at line 122 of file unzip_Globals.h.

char overwrite_q[] = " Overwrite existing file? (Y/n/all/stop) "

Definition at line 113 of file unzip_Globals.h.

struct cmd_parm parm_table[]

Initial value:

             
    {
    { 'D', &sw_dirs,             0 },           
    { 'F', &sw_freshen,          0 },           
    { 'N', &sw_new,              0 },           
    { 'O', &sw_overwrite,        0 },           
    { 'T', &sw_test,             0 },           
    { 'V', &sw_view,             0 },           
    { 'E', &sw_extract,          0 }            
 
    }

Definition at line 144 of file unzip_Globals.h.

int pos_count

Definition at line 26 of file unzip_Globals.h.

char ** pos_parms

Definition at line 37 of file unzip_Globals.h.

int rc = 1

Definition at line 26 of file unzip_Globals.h.

char read_error[] = "Error reading ZIP file\n"

Definition at line 119 of file unzip_Globals.h.

long rsize

Definition at line 21 of file unzip_Globals.h.

BYTE * sb = NULL

Definition at line 35 of file unzip_Globals.h.

Definition at line 32 of file unzip_Globals.h.

BYTE * sbe = NULL

Definition at line 35 of file unzip_Globals.h.

BYTE * sbp = NULL

Definition at line 35 of file unzip_Globals.h.

SFS* sf

Definition at line 180 of file unzip_Globals.h.

int sf_count

Definition at line 26 of file unzip_Globals.h.

char spin

Definition at line 37 of file unzip_Globals.h.

char spin_char[] = "/-\\|"

Definition at line 115 of file unzip_Globals.h.

char stop_here[] = "\nStopping at user's request\n"

Definition at line 84 of file unzip_Globals.h.

char sw_dirs

Definition at line 37 of file unzip_Globals.h.

char * sw_exclude

Definition at line 37 of file unzip_Globals.h.

char sw_extract

Definition at line 37 of file unzip_Globals.h.

char sw_freshen

Definition at line 37 of file unzip_Globals.h.

char sw_new

Definition at line 37 of file unzip_Globals.h.

Definition at line 37 of file unzip_Globals.h.

char sw_test

Definition at line 37 of file unzip_Globals.h.

char sw_view

Definition at line 37 of file unzip_Globals.h.

char test_ok[] = "Tested ok\n"

Definition at line 124 of file unzip_Globals.h.

Definition at line 21 of file unzip_Globals.h.

Definition at line 26 of file unzip_Globals.h.

long total_size

Definition at line 21 of file unzip_Globals.h.

char view_encrypt[] = "?Marks encrypted files\n"

Definition at line 98 of file unzip_Globals.h.

char view_hdr[]

Initial value:

 "Processing: %s\n\n"
                         "  Length   Method   Size  Ratio   Date   Time   Name\n"
                         "  ------  -------- ------ ----- -------- -----  ----\n"

Definition at line 91 of file unzip_Globals.h.

char view_line[] = "%8ld %8.8s%7ld %3d%% %s %c%s%s\n"

Definition at line 94 of file unzip_Globals.h.

char view_nextline[] = "\n\t\t"

Definition at line 95 of file unzip_Globals.h.

char view_none[] = "\nNo files were selected\n"

Definition at line 99 of file unzip_Globals.h.

char view_trailer[]

Initial value:

 "  ------           ------ -----                 ----\n"
                         "%8ld%9.9s%8ld %3d%%%16.16s%5d\n\n%s"

Definition at line 96 of file unzip_Globals.h.

Definition at line 180 of file unzip_Globals.h.

char write_error[] = "Error writing output file\n"

Definition at line 120 of file unzip_Globals.h.

char zfn[MAX_PATH_ZIPINFO]

Definition at line 37 of file unzip_Globals.h.


Copyright(C) gvSystem & GamePlus All Rights Reserved.