13 #if defined(VAXC) || defined(VMS)
19 #define get_char() get_byte()
26 #define memzero(s, n) memset ((voidp)(s), 0, (n))
28 typedef unsigned char uch;
29 typedef unsigned short ush;
30 typedef unsigned long ulg;
46 #define INBUFSIZ 0x8000
47 #define INBUF_EXTRA 64
48 #define OUTBUFSIZ 16384
49 #define OUTBUF_EXTRA 2048
50 #define DIST_BUFSIZE 0x8000
53 #define DECLARE(type, array, size) type array[size]
55 #define tab_suffix window
56 #define tab_prefix prev
57 #define head (prev+WSIZE)
59 #define PACK_MAGIC "\037\036"
60 #define GZIP_MAGIC "\037\213"
61 #define OLD_GZIP_MAGIC "\037\236"
62 #define LZH_MAGIC "\037\240"
63 #define LZW_MAGIC "\037\235"
64 #define PKZIP_MAGIC "\120\113\003\004"
67 #define ASCII_FLAG 0x01
68 #define CONTINUATION 0x02
69 #define EXTRA_FIELD 0x04
70 #define ORIG_NAME 0x08
72 #define ENCRYPTED 0x20
77 #define MIN_LOOKAHEAD (MAX_MATCH+MIN_MATCH+1)
78 #define MAX_DIST (WSIZE-MIN_LOOKAHEAD)
79 #define translate_eol 0
81 #define get_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(0))
82 #define try_byte() (inptr < insize ? inbuf[inptr++] : fill_inbuf(1))
83 #define put_ubyte(c) {window[outcnt++]=(uch)(c); if (outcnt==WSIZE)\
87 #define SH(p) ((ush)(uch)((p)[0]) | ((ush)(uch)((p)[1]) << 8))
88 #define LG(p) ((ulg)(SH(p)) | ((ulg)(SH((p)+2)) << 16))
91 # define Assert(cond,msg)
104 #define BIT_MASK 0x1f
105 #define BLOCK_MODE 0x80
106 #define LZW_RESERVED 0x60
108 #define FIRST (CLEAR+1)
113 void ffpmsg(
const char *err_message);
115 local
int get_method OF((FILE *in));
117 local ulg updcrc OF((uch *s,
unsigned n));
118 local
int fill_inbuf OF((
int eof_ok));
119 local
void flush_outbuf OF((
void));
120 local
void flush_window OF((
void));
121 local
void write_buf OF((voidp buf,
unsigned cnt));
122 local
void error OF((
char *m));
123 local ulg flush_block OF((
char *buf, ulg stored_len,
int eof));
126 local
int file_read OF((
char *buf,
unsigned size));
127 local
void send_bits OF((
int value,
int length));
128 local
unsigned bi_reverse OF((
unsigned value,
int length));
129 local
void bi_windup OF((
void));
130 local
void copy_block OF((
char *buf,
unsigned len,
int header));
131 local int (*read_buf) OF((
char *buf,
unsigned size));
132 local
void lm_init OF((
int pack_level, ush *flags));
133 local ulg deflate OF((
void));
134 local
void ct_init OF((ush *attr,
int *method));
135 local
int ct_tally OF((
int dist,
int lc));
136 local
void bi_init OF((file_t zipfile));
138 #define put_byte(c) {outbuf[outcnt++]=(uch)(c); if (outcnt==OUTBUFSIZ)\
142 #define put_short(w) \
143 { if (outcnt < OUTBUFSIZ-2) { \
144 outbuf[outcnt++] = (uch) ((w) & 0xff); \
145 outbuf[outcnt++] = (uch) ((ush)(w) >> 8); \
147 put_byte((uch)((w) & 0xff)); \
148 put_byte((uch)((ush)(w) >> 8)); \
153 #define put_long(n) { \
154 put_short((n) & 0xffff); \
155 put_short(((ulg)(n)) >> 16); \
161 local
void fillbuf OF((
int n));
162 local
unsigned getbits OF((
int n));
163 local
void init_getbits OF((
void));
166 local
void make_table OF((
int nchar, uch bitlen[],
167 int tablebits, ush table[]));
170 local
void read_pt_len OF((
int nn,
int nbit,
int i_special));
171 local
void read_c_len OF((
void));
172 local
unsigned decode_c OF((
void));
173 local
unsigned decode_p OF((
void));
174 local
void huf_decode_start OF((
void));
177 local
void decode_start OF((
void));
178 local
unsigned decode OF((
unsigned count, uch
buffer[]));
180 local
int unlzh OF((FILE *in, FILE *out));
181 local
int unlzw OF((FILE *in, FILE *out));
183 local
void read_tree OF((
void));
184 local
void build_tree_unpack OF((
void));
186 local
int unpack OF((FILE *in, FILE *out));
187 local
int check_zipfile OF((FILE *in));
188 local
int unzip OF((FILE *in, FILE *out));
190 int (*work) OF((FILE *infile, FILE *outfile)) = unzip;
202 local
int huft_build OF((
unsigned *,
unsigned,
unsigned, ush *, ush *,
203 struct huft **,
int *));
204 local
int huft_free OF((
struct huft *));
205 local
int inflate_codes OF((
struct huft *,
struct huft *,
int,
int));
206 local
int inflate_stored OF((
void));
207 local
int inflate_fixed OF((
void));
208 local
int inflate_dynamic OF((
void));
209 local
int inflate_block OF((
int *));
210 local
int inflate OF((
void));
Definition: compress.h:193
Definition: tVideoCapabilitiesEml.cc:67