OSDN Git Service

Remove unnecessary comments
[lha/lha.git] / src / lha.h
index 569deb6..2aaeb74 100644 (file)
--- a/src/lha.h
+++ b/src/lha.h
@@ -150,6 +150,14 @@ int fnmatch(const char *pattern, const char *string, int flags);
 # 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
@@ -194,8 +202,17 @@ int fnmatch(const char *pattern, const char *string, int flags);
 
 #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) ();
@@ -234,8 +251,8 @@ typedef struct LzHeader {
     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];
@@ -258,8 +275,9 @@ typedef struct LzHeader {
 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;
 };
@@ -280,7 +298,7 @@ EXTERN boolean  text_mode;
 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;
@@ -312,6 +330,15 @@ EXTERN boolean  verify_mode;
 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                                                        */
 /* ------------------------------------------------------------------------ */
@@ -328,18 +355,17 @@ EXTERN char     *reading_filename, *writing_filename;
 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 */
@@ -349,12 +375,6 @@ EXTERN unsigned short c_freq[], c_table[], c_code[];
 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;