OSDN Git Service

Remove unnecessary comments
[lha/lha.git] / src / lha.h
index 1baf905..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
@@ -243,8 +251,8 @@ typedef struct LzHeader {
     size_t          header_size;
     int             size_field_length;
     char            method[METHOD_TYPE_STORAGE];
-    size_t          packed_size;
-    size_t          original_size;
+    off_t           packed_size;
+    off_t           original_size;
     unsigned char   attribute;
     unsigned char   header_level;
     char            name[FILENAME_LENGTH];
@@ -267,9 +275,9 @@ typedef struct LzHeader {
 struct interfacing {
     FILE            *infile;
     FILE            *outfile;
-    size_t          original;
-    size_t          packed;
-    size_t          read_size;
+    off_t           original;
+    off_t           packed;
+    off_t           read_size;
     int             dicbit;
     int             method;
 };
@@ -290,6 +298,7 @@ EXTERN boolean  text_mode;
 EXTERN boolean  verbose;
 EXTERN boolean  noexec;     /* debugging option */
 EXTERN boolean  force;
+EXTERN boolean  timestamp_archive;
 EXTERN boolean  delete_after_append;
 EXTERN int      compress_method;
 EXTERN int      header_level;
@@ -321,7 +330,14 @@ EXTERN boolean  verify_mode;
 EXTERN int      quiet_mode;
 
 EXTERN boolean backup_old_archive;
-EXTERN boolean  extract_broken_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                                                        */
@@ -339,16 +355,17 @@ EXTERN char     *reading_filename, *writing_filename;
 EXTERN int      archive_file_mode;
 EXTERN int      archive_file_gid;
 
-EXTERN int      noconvertcase; /* 2000.10.6 */
+EXTERN int      convertcase;    /* 2000.10.6 */
 
 /* slide.c */
 EXTERN int      unpackable;
-EXTERN size_t origsize, compsize;
+EXTERN off_t origsize, compsize;
 EXTERN unsigned short dicbit;
 EXTERN unsigned short maxmatch;
-EXTERN size_t 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 */