OSDN Git Service

de8b8231b1395906f039d14abfdaaf6091171018
[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 void put_string P_((char *buf, int *n, size_t size, char *p));
11 void get_string P_((char *buf, int *i, size_t size, char *p));
12 time_t ftime_to_time_t P_((uint32_t ftime));
13 uint32_t time_t_to_ftime P_((time_t t));
14 void write_header_lv0 P_((FILE *fp, struct lzh_header *h));
15 void write_header_lv1 P_((FILE *fp, struct lzh_header *h));
16 void write_header_lv2 P_((FILE *fp, struct lzh_header *h));
17 void write_header P_((FILE *fp, struct lzh_header *h));
18 int get_line P_((char *s, int n));
19 void parse_args P_((int argc, char **argv));
20 FILE *open_tempfile P_((void));
21 /* io.c */
22 void error P_((char *fmt, ...));
23 void message P_((char *fmt, ...));
24 void warn P_((char *fmt, ...));
25 void make_crctable P_((void));
26 void fillbuf P_((int n));
27 uint getbits P_((int n));
28 void putbits P_((int n, uint x));
29 int fread_crc P_((void *p, int n, FILE *f));
30 void fwrite_crc P_((void *p, int n, FILE *f));
31 void init_getbits P_((void));
32 void init_putbits P_((void));
33 /* encode.c */
34 void encode P_((void));
35 /* decode.c */
36 void decode_start P_((void));
37 void decode P_((uint count, char *buf));
38 /* maketree.c */
39 int make_tree P_((int nparm, ushort freqparm[], uchar lenparm[], ushort codeparm[]));
40 /* maketbl.c */
41 void make_table P_((int nchar, uchar bitlen[], int tablebits, ushort table[]));
42 /* huf.c */
43 void output P_((uint c, uint p));
44 void huf_encode_start P_((struct lha_method *m));
45 void huf_encode_end P_((void));
46 uint decode_c P_((void));
47 uint decode_p P_((void));
48 void huf_decode_start P_((struct lha_method *m));
49 /* strlib.c */
50 int string_equal P_((char *str1, char *str2));
51 int string_copy P_((char *dst, char *src, int dstsz));
52 char *string_pcopy P_((char *dst, char *src, int dstsz));
53 int string_cat P_((char *dst, int dstsz, ...));
54 char *string_tail P_((char *str));
55 int chomp P_((char *s));
56 char *skip_space P_((char *s));
57 char *skip_to_space P_((char *s));
58 char *next_field P_((char *s));
59 char *strip_space P_((char *s));
60 /* pathlib.c */
61 int path_addsep P_((char *path, size_t size));
62 char *xbasename P_((char *path));
63 int makepath P_((char *dest, int dest_size, char *dir, char *file, char *ext));
64 /* filelib.c */
65 int file_exists P_((char *file));
66 int file_mtime P_((char *file, time_t *t));
67 int copy_stream P_((FILE *rfp, FILE *wfp));
68 int move_file_to_stream P_((char *file, FILE *wfp));
69 int xrename P_((char *from, char *to));