… | |
… | |
20 | /* |
20 | /* |
21 | * This file describes the internal structures, variables and definitions |
21 | * This file describes the internal structures, variables and definitions |
22 | * of UUDeview. It should not be included from other packages. Subject to |
22 | * of UUDeview. It should not be included from other packages. Subject to |
23 | * change without notice. Do not depend on anything here. |
23 | * change without notice. Do not depend on anything here. |
24 | * |
24 | * |
25 | * $Id: uuint.h,v 1.2.2.3 2002/10/13 13:03:08 root Exp $ |
25 | * $Id: uuint.h,v 1.6 2003/11/06 13:33:41 root Exp $ |
26 | */ |
26 | */ |
27 | |
|
|
28 | #ifndef _ANSI_ARGS_ |
|
|
29 | #ifdef PROTOTYPES |
|
|
30 | #define _ANSI_ARGS_(c) c |
|
|
31 | #else |
|
|
32 | #define _ANSI_ARGS_(c) () |
|
|
33 | #endif |
|
|
34 | #endif |
|
|
35 | |
27 | |
36 | /* |
28 | /* |
37 | * Busy Polls will be made after processing ... lines |
29 | * Busy Polls will be made after processing ... lines |
38 | */ |
30 | */ |
39 | |
31 | |
… | |
… | |
183 | |
175 | |
184 | extern void *uu_MsgCBArg; |
176 | extern void *uu_MsgCBArg; |
185 | extern void *uu_BusyCBArg; |
177 | extern void *uu_BusyCBArg; |
186 | extern void *uu_FileCBArg; |
178 | extern void *uu_FileCBArg; |
187 | extern void *uu_FFCBArg; |
179 | extern void *uu_FFCBArg; |
|
|
180 | extern void *uu_FNCBArg; |
188 | |
181 | |
189 | /* |
182 | /* |
190 | * variables |
183 | * variables |
191 | */ |
184 | */ |
192 | |
185 | |
… | |
… | |
204 | extern int uu_usepreamble; |
197 | extern int uu_usepreamble; |
205 | extern int uu_handletext; |
198 | extern int uu_handletext; |
206 | extern int uu_tinyb64; |
199 | extern int uu_tinyb64; |
207 | extern int uu_remove_input; |
200 | extern int uu_remove_input; |
208 | extern int uu_more_mime; |
201 | extern int uu_more_mime; |
|
|
202 | extern int uu_dotdot; |
209 | |
203 | |
210 | extern char *uusavepath; |
204 | extern char *uusavepath; |
211 | extern char *uuencodeext; |
205 | extern char *uuencodeext; |
212 | |
206 | |
213 | /* |
207 | /* |
… | |
… | |
247 | |
241 | |
248 | extern char *uugen_fnbuffer, *uugen_inbuffer; |
242 | extern char *uugen_fnbuffer, *uugen_inbuffer; |
249 | extern char *uucheck_lastname, *uucheck_tempname; |
243 | extern char *uucheck_lastname, *uucheck_tempname; |
250 | extern char *uuestr_itemp, *uuestr_otemp; |
244 | extern char *uuestr_itemp, *uuestr_otemp; |
251 | extern char *uulib_msgstring, *uuncdl_fulline; |
245 | extern char *uulib_msgstring, *uuncdl_fulline; |
252 | extern char *uuncdp_oline, *uuscan_shlline; |
246 | extern char *uuncdp_oline, *uuscan_shlline, *uuscan_shlline2; |
253 | extern char *uuscan_pvvalue, *uuscan_phtext; |
247 | extern char *uuscan_pvvalue, *uuscan_phtext; |
254 | extern char *uuscan_sdline, *uuscan_sdbhds1; |
248 | extern char *uuscan_sdline, *uuscan_sdbhds1; |
255 | extern char *uuscan_sdbhds2, *uuscan_spline; |
249 | extern char *uuscan_sdbhds2, *uuscan_spline; |
256 | extern char *uuutil_bhwtmp; |
250 | extern char *uuutil_bhwtmp; |
257 | extern char *uunconc_UUxlat, *uunconc_UUxlen; |
251 | extern char *uunconc_UUxlat, *uunconc_UUxlen; |
… | |
… | |
260 | |
254 | |
261 | #ifdef __cplusplus |
255 | #ifdef __cplusplus |
262 | extern "C" { |
256 | extern "C" { |
263 | #endif |
257 | #endif |
264 | |
258 | |
265 | extern void (*uu_MsgCallback) _ANSI_ARGS_((void *, char *, int)); |
259 | extern void (*uu_MsgCallback) (void *, char *, int); |
266 | extern int (*uu_BusyCallback) _ANSI_ARGS_((void *, uuprogress *)); |
260 | extern int (*uu_BusyCallback) (void *, uuprogress *); |
267 | extern int (*uu_FileCallback) _ANSI_ARGS_((void *, char *, char *, int)); |
261 | extern int (*uu_FileCallback) (void *, char *, char *, int); |
268 | extern char * (*uu_FNameFilter) _ANSI_ARGS_((void *, char *)); |
262 | extern char * (*uu_FNameFilter) (void *, char *); |
|
|
263 | extern char * (*uu_FileNameCallback)(void *, char *, char *); |
269 | |
264 | |
270 | /* |
265 | /* |
271 | * Functions from uulib.c that aren't defined in <uudeview.h> |
266 | * Functions from uulib.c that aren't defined in <uudeview.h> |
272 | * Be careful about the definition with variable arguments. |
267 | * Be careful about the definition with variable arguments. |
273 | */ |
268 | */ |
274 | |
269 | |
275 | #if defined(STDC_HEADERS) || defined(HAVE_STDARG_H) |
270 | #if defined(STDC_HEADERS) || defined(HAVE_STDARG_H) |
276 | int UUMessage _ANSI_ARGS_((char *, int, |
271 | int UUMessage (char *, int, int, char *, ...); |
277 | int, char *, ...)); |
|
|
278 | #else |
272 | #else |
279 | int UUMessage (); |
273 | int UUMessage (); |
280 | #endif |
274 | #endif |
281 | int UUBusyPoll _ANSI_ARGS_((void)); |
275 | int UUBusyPoll (void); |
282 | |
276 | |
283 | /* |
277 | /* |
284 | * Functions from uucheck.c |
278 | * Functions from uucheck.c |
285 | */ |
279 | */ |
286 | |
280 | |
287 | uufile * UUPreProcessPart _ANSI_ARGS_((fileread *, int *)); |
281 | uufile * UUPreProcessPart (fileread *, int *); |
288 | int UUInsertPartToList _ANSI_ARGS_((uufile *)); |
282 | int UUInsertPartToList (uufile *); |
289 | uulist * UUCheckGlobalList _ANSI_ARGS_((void)); |
283 | uulist * UUCheckGlobalList (void); |
290 | |
284 | |
291 | /* |
285 | /* |
292 | * Functions from uuutil.c |
286 | * Functions from uuutil.c |
293 | */ |
287 | */ |
294 | |
288 | |
295 | void UUkillfread _ANSI_ARGS_((fileread *)); |
289 | void UUkillfread (fileread *); |
296 | void UUkillfile _ANSI_ARGS_((uufile *)); |
290 | void UUkillfile (uufile *); |
297 | void UUkilllist _ANSI_ARGS_((uulist *)); |
291 | void UUkilllist (uulist *); |
298 | void UUkillheaders _ANSI_ARGS_((headers *)); |
292 | void UUkillheaders (headers *); |
299 | |
293 | |
300 | fileread * ScanPart _ANSI_ARGS_((FILE *, char *, int *)); |
294 | fileread * ScanPart (FILE *, char *, int *); |
301 | |
295 | |
302 | int UUbhdecomp _ANSI_ARGS_((char *, char *, |
296 | int UUbhdecomp (char *, char *, |
303 | char *, int *, |
297 | char *, int *, |
304 | size_t, size_t, |
298 | size_t, size_t, |
305 | size_t *)); |
299 | size_t *); |
306 | size_t UUbhwrite _ANSI_ARGS_((char *, size_t, size_t, |
300 | size_t UUbhwrite (char *, size_t, size_t, FILE *); |
307 | FILE *)); |
|
|
308 | |
301 | |
309 | /* |
302 | /* |
310 | * Functions from uunconc.c |
303 | * Functions from uunconc.c |
311 | */ |
304 | */ |
312 | |
305 | |
313 | int UURepairData _ANSI_ARGS_((FILE *, char *, |
306 | int UURepairData (FILE *, char *, int, int *); |
314 | int, int *)); |
|
|
315 | |
307 | |
316 | void UUInitConc _ANSI_ARGS_((void)); |
308 | void UUInitConc _ANSI_ARGS_((void)); |
317 | int UUValidData _ANSI_ARGS_((char *, int, int *)); |
309 | int UUValidData _ANSI_ARGS_((char *, int, int *)); |
318 | size_t UUDecodeLine _ANSI_ARGS_((char *, char *, int)); |
310 | size_t UUDecodeLine _ANSI_ARGS_((char *, char *, int)); |
|
|
311 | int UUDecodeField _ANSI_ARGS_((char *, char *, int)); |
319 | int UUDecodePart _ANSI_ARGS_((FILE *, FILE *, int *, |
312 | int UUDecodePart _ANSI_ARGS_((FILE *, FILE *, int *, |
320 | long, int, int, char *)); |
313 | long, int, int, char *)); |
321 | int UUDecode _ANSI_ARGS_((uulist *)); |
314 | int UUDecode _ANSI_ARGS_((uulist *)); |
322 | |
315 | |
323 | /* |
316 | /* |
324 | * Message retrieval from uustring.c |
317 | * Message retrieval from uustring.c |
325 | */ |
318 | */ |
326 | |
319 | |
327 | char * uustring _ANSI_ARGS_((int)); |
320 | char * uustring (int); |
328 | |
321 | |
329 | /* |
322 | /* |
330 | * From uuscan.c |
323 | * From uuscan.c |
331 | */ |
324 | */ |
332 | |
325 | |
333 | int UUScanHeader _ANSI_ARGS_((FILE *, headers *)); |
326 | int UUScanHeader (FILE *, headers *); |
334 | |
327 | |
335 | #ifdef __cplusplus |
328 | #ifdef __cplusplus |
336 | } |
329 | } |
337 | #endif |
330 | #endif |
338 | #endif |
331 | #endif |