|
|
/* uchar should be 8 bits or more */ | /* uchar should be 8 bits or more */ |
/* typedef unsigned char uchar; -- already in zoo.h */ | /* typedef unsigned char uchar; -- already in zoo.h */ |
| |
typedef unsigned int uint; /* 16 bits or more */ |
typedef unsigned int my_uint; /* 16 bits or more */ |
#if !defined(__386BSD__) || !defined(_TYPES_H_) |
typedef unsigned short my_ushort; /* 16 bits or more */ |
typedef unsigned short ushort; /* 16 bits or more */ |
typedef unsigned long my_ulong; /* 32 bits or more */ |
#endif |
|
typedef unsigned long ulong; /* 32 bits or more */ |
|
| |
/* T_UINT16 must be #defined in options.h to be | /* T_UINT16 must be #defined in options.h to be |
a 16-bit unsigned integer type */ | a 16-bit unsigned integer type */ |
|
|
/* ar.c */ | /* ar.c */ |
| |
extern int unpackable; | extern int unpackable; |
extern ulong origsize, compsize; |
extern my_ulong origsize, compsize; |
| |
/* all the prototypes follow here for all files */ | /* all the prototypes follow here for all files */ |
| |
|
|
| |
/* DECODE.C */ | /* DECODE.C */ |
void decode_start PARMS((void )); | void decode_start PARMS((void )); |
int decode PARMS((uint count , uchar *buffer)); |
int decode PARMS((uint count , uchar buffer [])); |
| |
/* ENCODE.C */ | /* ENCODE.C */ |
void encode PARMS((FILE *, FILE *)); | void encode PARMS((FILE *, FILE *)); |
|
|
void output PARMS((uint c , uint p )); | void output PARMS((uint c , uint p )); |
void huf_encode_start PARMS((void )); | void huf_encode_start PARMS((void )); |
void huf_encode_end PARMS((void )); | void huf_encode_end PARMS((void )); |
uint decode_c PARMS((void )); |
my_uint decode_c PARMS((void )); |
uint decode_p PARMS((void )); |
my_uint decode_p PARMS((void )); |
void huf_decode_start PARMS((void )); | void huf_decode_start PARMS((void )); |
| |
/* IO.C */ | /* IO.C */ |
void make_crctable PARMS((void )); | void make_crctable PARMS((void )); |
void fillbuf PARMS((int n )); | void fillbuf PARMS((int n )); |
uint getbits PARMS((int n )); |
my_uint getbits PARMS((int n )); |
void putbits PARMS((int n , uint x )); | void putbits PARMS((int n , uint x )); |
int fread_crc PARMS((uchar *p , int n , FILE *f )); | int fread_crc PARMS((uchar *p , int n , FILE *f )); |
void fwrite_crc PARMS((uchar *p , int n , FILE *f )); | void fwrite_crc PARMS((uchar *p , int n , FILE *f )); |