OSDN Git Service

added add.c extract.c list.c
[lha/olha.git] / prototypes.h
1 /* This file was generated by cproto. */
2 #if PROTOTYPES /* defined in config.h */
3 #define P_(s) s
4 #else
5 #define P_(s) ()
6 #endif
7
8 /* ar.c */
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));
15 /* io.c */
16 void error P_((char *fmt, ...));
17 void message P_((char *fmt, ...));
18 void warn P_((char *fmt, ...));
19 void make_crctable P_((void));
20 void fillbuf P_((int n));
21 uint getbits P_((int n));
22 void putbits P_((int n, uint x));
23 int fread_crc P_((void *p, int n, FILE *f));
24 void fwrite_crc P_((void *p, int n, FILE *f));
25 void init_getbits P_((void));
26 void init_putbits P_((void));
27 /* encode.c */
28 void encode P_((void));
29 /* decode.c */
30 void decode_start P_((void));
31 void decode P_((uint count, char *buf));
32 /* maketree.c */
33 int make_tree P_((int nparm, ushort freqparm[], uchar lenparm[], ushort codeparm[]));
34 /* maketbl.c */
35 void make_table P_((int nchar, uchar bitlen[], int tablebits, ushort table[]));
36 /* huf.c */
37 void output P_((uint c, uint p));
38 void huf_encode_start P_((struct lha_method *m));
39 void huf_encode_end P_((void));
40 uint decode_c P_((void));
41 uint decode_p P_((void));
42 void huf_decode_start P_((struct lha_method *m));
43 /* strlib.c */
44 int string_equal P_((char *str1, char *str2));
45 int string_copy P_((char *dst, char *src, int dstsz));
46 char *string_pcopy P_((char *dst, char *src, int dstsz));
47 int string_cat P_((char *dst, int dstsz, ...));
48 char *string_tail P_((char *str));
49 int chomp P_((char *s));
50 char *skip_space P_((char *s));
51 char *skip_to_space P_((char *s));
52 char *next_field P_((char *s));
53 char *strip_space P_((char *s));
54 /* pathlib.c */
55 int path_addsep P_((char *path, size_t size));
56 char *xbasename P_((char *path));
57 int makepath P_((char *dest, int dest_size, char *dir, char *file, char *ext));
58 /* filelib.c */
59 int file_exists P_((char *file));
60 int file_mtime P_((char *file, time_t *t));
61 int copy_stream P_((FILE *rfp, FILE *wfp));
62 int move_file_to_stream P_((char *file, FILE *wfp));
63 int xrename P_((char *from, char *to));
64 /* header.c */
65 int read_header P_((FILE *fp, struct lzh_header *h));
66 void write_header P_((FILE *fp, struct lzh_header *h));
67 /* add.c */
68 int add_dir P_((int replace_flag, struct lzh_header *h));
69 int add P_((int replace_flag, char *filename, int namelen));
70 /* extract.c */
71 void extract P_((int to_file, struct lzh_header *h));
72 /* list.c */
73 void list_start P_((void));
74 void list P_((struct lzh_header *h));