# define FNM_PERIOD 4
#endif
+#if HAVE_LIBAPPLEFILE
+#include <applefile.h>
+#endif
+
+#ifdef __DJGPP__
+#include <io.h>
+#endif /* __DJGPP__ */
+
#ifndef SEEK_SET
#define SEEK_SET 0
#define SEEK_CUR 1
#endif /* HAVE_LIMITS_H */
+#if !HAVE_FSEEKO
+# define fseeko fseek
+#endif
+#if !HAVE_FTELLO
+# define ftello ftell
+#endif
+
#include "lha_macro.h"
+#define exit(n) lha_exit(n)
+
struct encode_option {
#if defined(__STDC__) || defined(AIX)
void (*output) ();
size_t header_size;
int size_field_length;
char method[METHOD_TYPE_STORAGE];
- long packed_size;
- long original_size;
+ off_t packed_size;
+ off_t original_size;
unsigned char attribute;
unsigned char header_level;
char name[FILENAME_LENGTH];
struct interfacing {
FILE *infile;
FILE *outfile;
- unsigned long original;
- unsigned long packed;
+ off_t original;
+ off_t packed;
+ off_t read_size;
int dicbit;
int method;
};
EXTERN boolean verbose;
EXTERN boolean noexec; /* debugging option */
EXTERN boolean force;
-EXTERN boolean prof;
+EXTERN boolean timestamp_archive;
EXTERN boolean delete_after_append;
EXTERN int compress_method;
EXTERN int header_level;
EXTERN int quiet_mode;
EXTERN boolean backup_old_archive;
+EXTERN boolean extract_broken_archive;
+EXTERN boolean decode_macbinary_contents;
+
+/* for debugging */
+EXTERN boolean sort_contents;
+EXTERN boolean recursive_archiving;
+EXTERN boolean dump_lzss;
+
+
/* ------------------------------------------------------------------------ */
/* Globale Variable */
/* ------------------------------------------------------------------------ */
EXTERN int archive_file_mode;
EXTERN int archive_file_gid;
-EXTERN struct interfacing interface;
-
-EXTERN int noconvertcase; /* 2000.10.6 */
+EXTERN int convertcase; /* 2000.10.6 */
/* slide.c */
EXTERN int unpackable;
-EXTERN unsigned long origsize, compsize;
+EXTERN off_t origsize, compsize;
EXTERN unsigned short dicbit;
EXTERN unsigned short maxmatch;
-EXTERN unsigned long decode_count;
+EXTERN off_t decode_count;
EXTERN unsigned long loc; /* short -> long .. Changed N.Watazaki */
-EXTERN unsigned char *text;
+EXTERN unsigned char *text; /* encoding buffer */
+EXTERN unsigned char *dtext; /* decoding buffer */
/* huf.c */
#ifndef LHA_MAIN_SRC /* t.okamoto 96/2/20 */
EXTERN unsigned short p_freq[], pt_table[], pt_code[], t_freq[];
#endif
-/* append.c */
-#ifdef NEED_INCREMENTAL_INDICATOR
-EXTERN long indicator_count;
-EXTERN long indicator_threshold;
-#endif
-
/* bitio.c */
EXTERN FILE *infile, *outfile;
EXTERN unsigned short bitbuf;