-/* This file was generated by cproto */
-#if STDC_HEADERS
+/* This file was generated by cproto. */
+#if PROTOTYPES /* defined in config.h */
#define P_(s) s
#else
#define P_(s) ()
/* append.c */
int encode_lzhuf P_((FILE *infp, FILE *outfp, long size, long *original_size_var, long *packed_size_var, char *name, char *hdr_method));
void start_indicator P_((char *name, long size, char *msg, long def_indicator_threshold));
+void put_indicator P_((long int count));
void finish_indicator2 P_((char *name, char *msg, int pcnt));
void finish_indicator P_((char *name, char *msg));
-/* crcio.c */
-void make_crctable P_((void));
-unsigned short calccrc P_((unsigned char *p, unsigned int n));
+/* bitio.c */
void fillbuf P_((int n));
unsigned short getbits P_((int n));
void putcode P_((int n, int x));
void putbits P_((int n, int x));
-int fread_crc P_((unsigned char *p, int n, FILE *fp));
-void fwrite_crc P_((unsigned char *p, int n, FILE *fp));
-void init_code_cache P_((void));
void init_getbits P_((void));
void init_putbits P_((void));
+/* crcio.c */
+void make_crctable P_((void));
+unsigned int calccrc P_((unsigned int crc, unsigned char *p, unsigned int n));
+int fread_crc P_((unsigned int *crcp, unsigned char *p, int n, FILE *fp));
+void fwrite_crc P_((unsigned int *crcp, unsigned char *p, int n, FILE *fp));
+void init_code_cache P_((void));
int fwrite_txt P_((unsigned char *p, int n, FILE *fp));
int fread_txt P_((unsigned char *p, int n, FILE *fp));
-unsigned short calc_header_crc P_((unsigned char *p, unsigned int n));
/* dhuf.c */
void start_c_dyn P_((void));
void decode_start_dyn P_((void));
int decode_lzhuf P_((FILE *infp, FILE *outfp, long original_size, long packed_size, char *name, int method));
/* header.c */
int calc_sum P_((register char *p, register int len));
-boolean get_header P_((FILE *fp, register LzHeader *hdr));
+void convert_filename P_((char *name, int len, int size, int from_code, int to_code, char *from_delim, char *to_delim, int case_to));
+boolean get_header P_((FILE *fp, LzHeader *hdr));
+int seek_lha_header P_((FILE *fp));
void init_header P_((char *name, struct stat *v_stat, LzHeader *hdr));
-void write_header P_((FILE *nafp, LzHeader *hdr));
+void write_header P_((FILE *fp, LzHeader *hdr));
char *sjis_to_utf8 P_((char *dst, const char *src, size_t dstsize));
char *utf8_to_sjis P_((char *dst, const char *src, size_t dstsize));
void euc2sjis P_((int *p1, int *p2));
void temporary_to_new_archive_file P_((long new_archive_size));
void cmd_add P_((void));
void cmd_delete P_((void));
-int strcmp_filename P_((char *str1, char *str2));
/* lharc.c */
-int main P_((int argc, char *argv[]));
void message P_((char *fmt, ...));
void warning P_((char *fmt, ...));
void error P_((char *fmt, ...));
void fatal_error P_((char *fmt, ...));
-char *xmalloc P_((int size));
-char *xrealloc P_((char *old, int size));
+void *xmalloc P_((size_t size));
+void *xrealloc P_((void *old, size_t size));
char *xstrdup P_((char *str));
void init_sp P_((struct string_pool *sp));
void add_sp P_((struct string_pool *sp, char *name, int len));
unsigned short decode_p_st0 P_((void));
/* slide.c */
int encode_alloc P_((int method));
-void encode P_((struct interfacing *interface));
-void decode P_((struct interfacing *interface));
+unsigned int encode P_((struct interfacing *interface));
+unsigned int decode P_((struct interfacing *interface));
/* util.c */
-long copyfile P_((FILE *f1, FILE *f2, long size, int crc_flg));
+long copyfile P_((FILE *f1, FILE *f2, long size, int text_flg, unsigned int *crcp));
int encode_stored_crc P_((FILE *ifp, FILE *ofp, long size, long *original_size_var, long *write_size_var));
-unsigned char *convdelim P_((unsigned char *path, int delim));
boolean archive_is_msdos_sfx1 P_((char *name));
-boolean skip_msdos_sfx1_code P_((FILE *fp));
int strucmp P_((register char *s, register char *t));
int xsnprintf P_((char *dest, size_t size, char *fmt, ...));
char *xstrchr P_((const char *s, int c));
/* lharc.c */
RETSIGTYPE interrupt(int signo);
/* util.c */
+#if !HAVE_MEMMOVE
+void *memmove P_((void *dst, const void *src, size_t cnt));
+#endif
#if !HAVE_STRDUP
char *strdup P_((char *buf));
#endif