1 /* This file was generated by cproto. */
2 #if PROTOTYPES /* defined in config.h */
9 struct lha_method *which_method P_((char *id));
10 uint ratio P_((ulong a, ulong b));
11 void skip P_((FILE *fp, struct lzh_header *h));
12 int get_line P_((char *s, int n));
13 void parse_args P_((int argc, char **argv));
14 FILE *open_tempfile P_((void));
16 void make_crctable P_((void));
17 void fillbuf P_((int n));
18 uint getbits P_((int n));
19 void putbits P_((int n, uint x));
20 int fread_crc P_((void *p, int n, FILE *f));
21 void fwrite_crc P_((void *p, int n, FILE *f));
22 void init_getbits P_((void));
23 void init_putbits P_((void));
25 void encode P_((void));
27 void decode_start P_((void));
28 void decode P_((uint count, char *buf));
30 int make_tree P_((int nparm, ushort freqparm[], uchar lenparm[], ushort codeparm[]));
32 void make_table P_((int nchar, uchar bitlen[], int tablebits, ushort table[]));
34 void output P_((uint c, uint p));
35 void huf_encode_start P_((struct lha_method *m));
36 void huf_encode_end P_((void));
37 uint decode_c P_((void));
38 uint decode_p P_((void));
39 void huf_decode_start P_((struct lha_method *m));
41 int string_equal P_((char *str1, char *str2));
42 int string_copy P_((char *dst, char *src, int dstsz));
43 char *string_pcopy P_((char *dst, char *src, int dstsz));
44 int string_cat P_((char *dst, int dstsz, ...));
45 char *string_tail P_((char *str));
46 int chomp P_((char *s));
47 char *skip_space P_((char *s));
48 char *skip_to_space P_((char *s));
49 char *next_field P_((char *s));
50 char *strip_space P_((char *s));
52 int path_addsep P_((char *path, size_t size));
53 char *xbasename P_((char *path));
54 int makepath P_((char *dest, int dest_size, char *dir, char *file, char *ext));
56 int file_exists P_((char *file));
57 int file_mtime P_((char *file, time_t *t));
58 int copy_stream P_((FILE *rfp, FILE *wfp));
59 int move_file_to_stream P_((char *file, FILE *wfp));
60 int xrename P_((char *from, char *to));
62 int read_header P_((FILE *fp, struct lzh_header *h));
63 void write_header P_((FILE *fp, struct lzh_header *h));
65 int add_dir P_((int replace_flag, struct lzh_header *h));
66 int add P_((int replace_flag, char *filename, int namelen));
68 void extract P_((int to_file, struct lzh_header *h));
70 void list_start P_((void));
71 void list P_((struct lzh_header *h));
73 void error P_((char *fmt, ...));
74 void message P_((char *fmt, ...));
75 void warn P_((char *fmt, ...));