OSDN Git Service

added test script with Python
[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 int init_opts P_((void));
11 int get_byte P_((char *buf));
12 uint16_t get_word P_((char *buf));
13 uint32_t get_dword P_((char *buf));
14 void get_char P_((char *buf, char *p, size_t size));
15 void put_byte P_((char *buf, int c));
16 void put_word P_((char *buf, uint16_t c));
17 void put_dword P_((char *buf, uint32_t c));
18 void put_char P_((char *buf, char *p, size_t size));
19 void write_header_lv0 P_((FILE *fp, struct lzh_header *h));
20 void write_header_lv1 P_((FILE *fp, struct lzh_header *h));
21 void write_header_lv2 P_((FILE *fp, struct lzh_header *h));
22 void write_header P_((FILE *fp, struct lzh_header *h));
23 int get_line P_((char *s, int n));
24 int parse_args P_((int argc, char **argv));
25 FILE *open_tempfile P_((void));
26 /* io.c */
27 void error P_((char *fmt, ...));
28 void make_crctable P_((void));
29 void fillbuf P_((int n));
30 uint getbits P_((int n));
31 void putbits P_((int n, uint x));
32 int fread_crc P_((uchar *p, int n, FILE *f));
33 void fwrite_crc P_((uchar *p, int n, FILE *f));
34 void init_getbits P_((void));
35 void init_putbits P_((void));
36 /* encode.c */
37 void encode P_((void));
38 /* decode.c */
39 void decode_start P_((void));
40 void decode P_((uint count, uchar buffer[]));
41 /* maketree.c */
42 int make_tree P_((int nparm, ushort freqparm[], uchar lenparm[], ushort codeparm[]));
43 /* maketbl.c */
44 void make_table P_((int nchar, uchar bitlen[], int tablebits, ushort table[]));
45 /* huf.c */
46 void output P_((uint c, uint p));
47 void huf_encode_start P_((struct lha_method *m));
48 void huf_encode_end P_((void));
49 uint decode_c P_((void));
50 uint decode_p P_((void));
51 void huf_decode_start P_((struct lha_method *m));
52 /* strlib.c */
53 int string_equal P_((char *str1, char *str2));
54 int string_copy P_((char *dst, char *src, int dstsz));
55 char *string_pcopy P_((char *dst, char *src, int dstsz));
56 int string_cat P_((char *dst, int dstsz, ...));
57 char *string_tail P_((char *str));
58 int chomp P_((char *s));
59 char *skip_space P_((char *s));
60 char *skip_to_space P_((char *s));
61 char *next_field P_((char *s));
62 char *strip_space P_((char *s));
63 /* pathlib.c */
64 int path_addsep P_((char *path, size_t size));
65 int makepath P_((char *dest, int dest_size, char *dir, char *file, char *ext));