]> git.saurik.com Git - wxWidgets.git/blob - utils/Install/incace/unace.h
Added ProcessIdle virtual function
[wxWidgets.git] / utils / Install / incace / unace.h
1 #ifndef __unace_h
2 #define __unace_h
3
4
5 #include "declare.h"
6
7
8 //--------- functions
9
10 INT read_adds_blk(CHAR * buffer, INT len);
11
12
13 //--------- buffers: increase sizes when possible to speed up the program
14
15 #define size_rdb 1024
16 #define size_wrb 2048
17 #define size_buf 1024
18
19 #define size_headrdb (sizeof(head)-20) // (some bytes less esp. for Amiga)
20
21
22 //--------- (de-)compressor constants
23
24 #define maxdic 22
25 #define maxwd_mn 11
26 #define maxwd_lg 11
27 #define maxwd_svwd 7
28 #define maxlength 259
29 #define maxdis2 255
30 #define maxdis3 8191
31 #define maxcode (255+4+maxdic)
32 #define svwd_cnt 15
33 #define max_cd_mn (256+4+(maxdic+1)-1)
34 #define max_cd_lg (256-1)
35
36 //--------- flags
37
38 #define ERR_MEM 1
39 #define ERR_FILES 2
40 #define ERR_FOUND 3
41 #define ERR_FULL 4
42 #define ERR_OPEN 5
43 #define ERR_READ 6
44 #define ERR_WRITE 7
45 #define ERR_CLINE 8
46 #define ERR_CRC 9
47 #define ERR_OTHER 10
48 #define ERR_USER 255
49
50 //--------- system things
51
52 #define flush fflush(stdout);
53
54 #define in(v1,v2,v3) ((((long)v1)>=(v2)) && (((long)v1)<=(v3)))
55
56 #define delay_len 500
57
58 //-------- file creation
59
60 #define fileexists(name) (!access(name, 0))
61
62
63 //-------- eof
64
65 #endif /* __unace_h */
66