… | |
… | |
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 2001/06/11 20:42:37 root Exp $ |
25 | * $Id: uuint.h,v 1.2.2.2 2002/03/31 19:52:07 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 |
27 | |
35 | |
28 | /* |
36 | /* |
29 | * Busy Polls will be made after processing ... lines |
37 | * Busy Polls will be made after processing ... lines |
30 | */ |
38 | */ |
31 | |
39 | |
… | |
… | |
252 | |
260 | |
253 | #ifdef __cplusplus |
261 | #ifdef __cplusplus |
254 | extern "C" { |
262 | extern "C" { |
255 | #endif |
263 | #endif |
256 | |
264 | |
257 | extern void (*uu_MsgCallback) (void *, char *, int); |
265 | extern void (*uu_MsgCallback) _ANSI_ARGS_((void *, char *, int)); |
258 | extern int (*uu_BusyCallback) (void *, uuprogress *); |
266 | extern int (*uu_BusyCallback) _ANSI_ARGS_((void *, uuprogress *)); |
259 | extern int (*uu_FileCallback) (void *, char *, char *, int); |
267 | extern int (*uu_FileCallback) _ANSI_ARGS_((void *, char *, char *, int)); |
260 | extern char * (*uu_FNameFilter) (void *, char *); |
268 | extern char * (*uu_FNameFilter) _ANSI_ARGS_((void *, char *)); |
261 | |
269 | |
262 | /* |
270 | /* |
263 | * Functions from uulib.c that aren't defined in <uudeview.h> |
271 | * Functions from uulib.c that aren't defined in <uudeview.h> |
264 | * Be careful about the definition with variable arguments. |
272 | * Be careful about the definition with variable arguments. |
265 | */ |
273 | */ |
266 | |
274 | |
267 | #if defined(STDC_HEADERS) || defined(HAVE_STDARG_H) |
275 | #if defined(STDC_HEADERS) || defined(HAVE_STDARG_H) |
268 | int UUMessage (char *, int, int, char *, ...); |
276 | int UUMessage _ANSI_ARGS_((char *, int, |
|
|
277 | int, char *, ...)); |
269 | #else |
278 | #else |
270 | int UUMessage (); |
279 | int UUMessage (); |
271 | #endif |
280 | #endif |
272 | int UUBusyPoll (void); |
281 | int UUBusyPoll _ANSI_ARGS_((void)); |
273 | |
282 | |
274 | /* |
283 | /* |
275 | * Functions from uucheck.c |
284 | * Functions from uucheck.c |
276 | */ |
285 | */ |
277 | |
286 | |
278 | uufile * UUPreProcessPart (fileread *, int *); |
287 | uufile * UUPreProcessPart _ANSI_ARGS_((fileread *, int *)); |
279 | int UUInsertPartToList (uufile *); |
288 | int UUInsertPartToList _ANSI_ARGS_((uufile *)); |
280 | uulist * UUCheckGlobalList (void); |
289 | uulist * UUCheckGlobalList _ANSI_ARGS_((void)); |
281 | |
290 | |
282 | /* |
291 | /* |
283 | * Functions from uuutil.c |
292 | * Functions from uuutil.c |
284 | */ |
293 | */ |
285 | |
294 | |
286 | void UUkillfread (fileread *); |
295 | void UUkillfread _ANSI_ARGS_((fileread *)); |
287 | void UUkillfile (uufile *); |
296 | void UUkillfile _ANSI_ARGS_((uufile *)); |
288 | void UUkilllist (uulist *); |
297 | void UUkilllist _ANSI_ARGS_((uulist *)); |
289 | void UUkillheaders (headers *); |
298 | void UUkillheaders _ANSI_ARGS_((headers *)); |
290 | |
299 | |
291 | fileread * ScanPart (FILE *, char *, int *); |
300 | fileread * ScanPart _ANSI_ARGS_((FILE *, char *, int *)); |
292 | |
301 | |
293 | int UUbhdecomp (char *, char *, |
302 | int UUbhdecomp _ANSI_ARGS_((char *, char *, |
294 | char *, int *, |
303 | char *, int *, |
295 | size_t, size_t, |
304 | size_t, size_t, |
296 | size_t *); |
305 | size_t *)); |
297 | size_t UUbhwrite (char *, size_t, size_t, FILE *); |
306 | size_t UUbhwrite _ANSI_ARGS_((char *, size_t, size_t, |
|
|
307 | FILE *)); |
298 | |
308 | |
299 | /* |
309 | /* |
300 | * Functions from uunconc.c |
310 | * Functions from uunconc.c |
301 | */ |
311 | */ |
302 | |
312 | |
303 | int UURepairData (FILE *, char *, int, int *); |
313 | int UURepairData _ANSI_ARGS_((FILE *, char *, |
|
|
314 | int, int *)); |
304 | |
315 | |
305 | void UUInitConc (void); |
316 | void UUInitConc _ANSI_ARGS_((void)); |
306 | int UUValidData (char *, int, int *); |
317 | int UUValidData _ANSI_ARGS_((char *, int, int *)); |
307 | size_t UUDecodeLine (char *, char *, int); |
318 | size_t UUDecodeLine _ANSI_ARGS_((char *, char *, int)); |
308 | int UUDecodePart (FILE *, FILE *, int *, long, int, int, char *); |
319 | int UUDecodePart _ANSI_ARGS_((FILE *, FILE *, int *, |
|
|
320 | long, int, int, char *)); |
309 | int UUDecode (uulist *); |
321 | int UUDecode _ANSI_ARGS_((uulist *)); |
310 | |
322 | |
311 | /* |
323 | /* |
312 | * Message retrieval from uustring.c |
324 | * Message retrieval from uustring.c |
313 | */ |
325 | */ |
314 | |
326 | |
315 | char * uustring (int); |
327 | char * uustring _ANSI_ARGS_((int)); |
316 | |
328 | |
317 | /* |
329 | /* |
318 | * From uuscan.c |
330 | * From uuscan.c |
319 | */ |
331 | */ |
320 | |
332 | |
321 | int UUScanHeader (FILE *, headers *); |
333 | int UUScanHeader _ANSI_ARGS_((FILE *, headers *)); |
322 | |
334 | |
323 | #ifdef __cplusplus |
335 | #ifdef __cplusplus |
324 | } |
336 | } |
325 | #endif |
337 | #endif |
326 | #endif |
338 | #endif |