]>
git.saurik.com Git - wxWidgets.git/blob - utils/Install/sfxace/globals.c
1 /* ------------------------------------------------------------------------ */
3 /* Global variable declarations */
5 /* ------------------------------------------------------------------------ */
9 #if defined(__CYGWIN__)
10 #include <Windows32/Base.h>
18 const char *acesign
= "**ACE**";
20 //-------- Version string for program
21 const char *version
="UNACE v1.1 public version\n";
24 //-------- Version string for VERSION program
25 static char *_version
="$VER: Unace Amiga 1.1 "__AMIGADATE__
"\n\n";
28 //-------- header buffer and pointers
31 tmhead
*t_mhead
= (tmhead
*) & head
;
32 tfhead
*t_fhead
= (tfhead
*) & head
;
40 //-------- decompressor variables
49 USHORT dcpr_code_mn
[1 << maxwd_mn
],
50 dcpr_code_lg
[1 << maxwd_lg
];
51 UCHAR dcpr_wd_mn
[maxcode
+ 2],
52 dcpr_wd_lg
[maxcode
+ 2],
59 dcpr_olddist
[4]={0,0,0,0},
65 USHORT sort_org
[maxcode
+ 2];
66 UCHAR sort_freq
[(maxcode
+ 2) * 2];
68 //-------- file handling
72 #if !defined(__EMX__) && !defined(__OS2__)
78 //-------- structures for archive handling
89 void resetglobals(void)
91 t_mhead
= (tmhead
*) & head
;
92 t_fhead
= (tfhead
*) & head
;
108 memset(&dcpr_code_mn
, 0, sizeof(dcpr_code_mn
));
109 memset(&dcpr_code_lg
, 0, sizeof(dcpr_code_lg
));
110 memset(&dcpr_wd_mn
, 0, sizeof(dcpr_wd_mn
));
111 memset(&dcpr_wd_lg
, 0, sizeof(dcpr_wd_lg
));
112 memset(&wd_svwd
, 0, sizeof(wd_svwd
));
119 memset(&dcpr_olddist
, 0, sizeof(dcpr_olddist
));
124 memset(&sort_org
, 0, sizeof(sort_org
));
125 memset(&sort_freq
, 0, sizeof(sort_freq
));