Lines Matching defs:Globals
147 typedef struct Globals { struct
149 zvoid *callerglobs; /* pointer to structure of pass-through global vars */
153 UzpOpts UzO; /* command options of general use */
158 int M_flag; /* -M: built-in "more" function */
163 int height; /* check for SIGWINCH, etc., eventually... */
164 int lines; /* count of lines displayed on current screen */
166 int width;
167 int chars; /* count of screen characters in current line */
171 int tz_is_valid; /* indicates that timezone info can be used */
173 int noargs; /* did true command line have *any* arguments? */
174 unsigned filespecs; /* number of real file specifications to be matched */
175 unsigned xfilespecs; /* number of excluded filespecs to be matched */
176 int process_all_files;
177 int overwrite_mode; /* 0 - query, 1 - always, 2 - never */
178 int create_dirs; /* used by main(), mapname(), checkdir() */
179 int extract_flag;
180 int newzip; /* reset in extract.c; used in crypt.c */
181 LONGINT real_ecrec_offset;
182 LONGINT expect_ecrec_offset;
183 long csize; /* used by decompr. (NEXTBYTE): must be signed */
184 long used_csize; /* used by extract_or_test_member(), explode() */
187 int fValidate; /* true if only validating an archive */
188 int filenotfound;
189 int redirect_data; /* redirect data to memory buffer */
190 int redirect_text; /* redirect text output to buffer */
192 int redirect_slide; /* redirect decompression area to mem buffer */
194 ulg _wsize; /* size of sliding window exceeds "unsigned" range */
196 unsigned _wsize; /* sliding window size can be hold in unsigned */
199 ulg redirect_size; /* size of redirected output buffer */
200 uch *redirect_buffer; /* pointer to head of allocated buffer */
201 uch *redirect_pointer; /* pointer past end of written data */
203 uch *redirect_sldptr; /* head of decompression slide buffer */
210 char **pfnames;
211 char **pxnames;
212 char sig[4];
213 char answerbuf[10];
214 min_info info[DIR_BLKSIZ];
215 min_info *pInfo;
217 union work area; /* see unzpriv.h for definition of work */
221 ZCONST ulg near *crc_32_tab;
223 ZCONST ulg Far *crc_32_tab;
226 ulg crc32val; /* CRC shift reg. (was static in funzip) */
229 FILE *in; /* file descriptor of compressed stream */
231 uch *inbuf; /* input buffer (any size is OK) */
232 uch *inptr; /* pointer into input buffer */
233 int incnt;
236 ulg bitbuf;
237 int bits_left; /* unreduce and unshrink only */
238 int zipeof;
239 char *argv0; /* used for NT and EXE_EXTENSION */
240 char *wildzipfn;
241 char *zipfn; /* GRR: WINDLL: must nuke any malloc'd zipfn... */
243 FILE *zipfd; /* zipfile file descriptor */
245 int zipfd; /* zipfile file handle */
247 LONGINT ziplen;
248 LONGINT cur_zipfile_bufstart; /* extract_or_test, readbuf, ReadByte */
249 LONGINT extra_bytes; /* used in unzip.c, misc.c */
250 uch *extra_field; /* Unix, VMS, Mac, OS/2, Acorn, ... */
251 uch *hold;
253 local_file_hdr lrec; /* used in unzip.c, extract.c */
254 cdir_file_hdr crec; /* used in unzip.c, extract.c, misc.c */
255 ecdir_rec ecrec; /* used in unzip.c, extract.c */
256 struct stat statbuf; /* used by main, mapname, check_for_newer */
258 int mem_mode;
259 uch *outbufptr; /* extract.c static */
260 ulg outsize; /* extract.c static */
261 int reported_backslash; /* extract.c static */
262 int disk_full;
263 int newfile;
265 int didCRlast; /* fileio static */
266 ulg numlines; /* fileio static: number of lines printed */
267 int sol; /* fileio static: at start of line */
268 int no_ecrec; /* process static */
270 int symlnk;
273 int dne; /* true if stat() says file doesn't exist */
276 FILE *outfile;
277 uch *outbuf;
278 uch *realbuf;
281 uch *outbuf2; /* process_zipfiles() (never changes); */
284 uch *outptr;
285 ulg outcnt; /* number of chars stored in outbuf */
287 char filename[FILNAMSIZ]; /* also used by NT for temporary SFX path */
290 char *tempfn; /* temp file used; erase on close */
293 char *key; /* crypt static: decryption password or NULL */
294 int nopwd; /* crypt static */
296 ulg keys[3]; /* crypt static: keys defining pseudo-random sequence */
300 int echofd; /* ttyio static: file descriptor whose echo is off */
304 unsigned hufts; /* track memory usage */
307 int inflInit; /* inflate static: zlib inflate() initialized */
308 z_stream dstrm; /* inflate global: decompression stream */
310 struct huft *fixed_tl; /* inflate static */
311 struct huft *fixed_td; /* inflate static */
312 int fixed_bl, fixed_bd; /* inflate static */
314 struct huft *fixed_tl64; /* inflate static */
315 struct huft *fixed_td64; /* inflate static */
316 int fixed_bl64, fixed_bd64; /* inflate static */
317 struct huft *fixed_tl32; /* inflate static */
318 struct huft *fixed_td32; /* inflate static */
319 int fixed_bl32, fixed_bd32; /* inflate static */
320 ZCONST ush *cplens; /* inflate static */
321 ZCONST uch *cplext; /* inflate static */
322 ZCONST uch *cpdext; /* inflate static */
324 unsigned wp; /* inflate static: current position in slide */
325 ulg bb; /* inflate static: bit buffer */
326 unsigned bk; /* inflate static: bits in bit buffer */
331 char rgchBigBuffer[512];
332 char rgchSmallBuffer[96];
333 char rgchSmallBuffer2[160]; /* boosted to 160 for local3[] in unzip.c */
336 MsgFn *message;
337 InputFn *input;
338 PauseFn *mpause;
339 PasswdFn *decr_passwd;
363 } Uz_Globs; /* end of struct Globals */ argument