]>
git.saurik.com Git - wxWidgets.git/blob - utils/Install/incace/acestruc.h
8 #define bytes_before_acesign 7
18 typedef struct tacehead
29 typedef struct tacemhead
36 UCHAR ACESIGN
[acesign_len
];
56 typedef struct tacefhead
71 UCHAR FNAME
[PATH_MAX
];
77 #define mhead (*t_mhead)
78 #define fhead (*t_fhead)
79 #define rhead (*t_rhead)
80 #define tmpmhead (*t_tmpmhead)
81 #define tmpfhead (*t_tmpfhead)
82 #define tmprhead (*t_tmprhead)
84 #define mhead_size h_mhead_size(mhead)
85 #define fhead_size h_fhead_size(fhead)
86 #define rhead_size ((INT)&rhead.REC_CRC-(INT)&head.HEAD_TYPE+sizeof(rhead.REC_CRC))
88 #define h_mhead_size(phead) ((INT)mhead.AV-(INT)&head.HEAD_TYPE+ \
90 ((phead).HEAD_FLAGS&ACE_COMM? \
91 sizeof((phead).COMM_SIZE)+H_MCOMM_SIZE(phead):0))
94 #define h_fhead_size(phead) ((INT)fhead.FNAME-(INT)&head.HEAD_TYPE+ \
96 ((phead).HEAD_FLAGS&ACE_COMM? \
97 sizeof((phead).COMM_SIZE)+H_FCOMM_SIZE(phead):0))
100 //main-comment-definitions
101 #define H_MCOMM_SIZE(head) (BUF2WORD((UCHAR*)&(head).AV+(head).AV_SIZE))
102 #define MCOMM_SIZE H_MCOMM_SIZE(mhead)
103 #define H_MCOMM(head) ((UCHAR*)&(head).AV+(head).AV_SIZE+sizeof((head).COMM_SIZE))
104 #define MCOMM H_MCOMM(mhead)
107 //file-comment-definitions
108 #define H_FCOMM_SIZE(head) (BUF2WORD((UCHAR*)&(head).FNAME+(head).FNAME_SIZE))
109 #define FCOMM_SIZE H_FCOMM_SIZE(fhead)
110 #define H_FCOMM(head) ((UCHAR*)&(head).FNAME+(head).FNAME_SIZE+sizeof((head).COMM_SIZE))
111 #define FCOMM H_FCOMM(fhead)
114 #define calc_head_crc getcrc16(CRC_MASK, (CHAR*)&head.HEAD_TYPE, head.HEAD_SIZE)
115 #define GET_ADDSIZE ((head.HEAD_FLAGS & ACE_ADDSIZE) ? head.ADDSIZE : 0)
117 //archive-header-flags
118 #define ACE_LIM256 1024
119 #define ACE_MULT_VOL 2048
121 #define ACE_RECOV 8192
122 #define ACE_LOCK 16384
123 #define ACE_SOLID 32768
126 #define ACE_ADDSIZE 1
127 #define ACE_PASSW 16384
128 #define ACE_SP_BEF 4096
129 #define ACE_SP_AFTER 8192
137 //known compression types
141 //structure for archive handling
151 #endif /* __acestruc_h */