home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / ZOO21E.EXE / PATCHES.OS2 < prev    next >
Text File  |  1991-07-14  |  9KB  |  268 lines

  1. Only in new: patches.os2
  2. Only in new: makefile.os2
  3. Only in new: zoo.cs
  4. Only in new: zoo.def
  5. Only in new: fiz.cs
  6. Only in new: fiz.def
  7. Only in new: addbfmsc.c
  8. Only in new: msc.c
  9. Only in new: os2.c
  10. diff -cbBw orig/crcdefs.c new/crcdefs.c
  11. *** orig/crcdefs.c    Thu Jul 11 12:03:46 1991
  12. --- new/crcdefs.c    Sun Jul 14 19:47:44 1991
  13. ***************
  14. *** 11,17 ****
  15.                                     -- Rahul Dhesi 1987/08/27
  16.   */
  17.   
  18. ! unsigned int crccode;
  19.   unsigned int crctab[] = {
  20.      0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241,
  21.       0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440,
  22. --- 11,17 ----
  23.                                     -- Rahul Dhesi 1987/08/27
  24.   */
  25.   
  26. ! unsigned int crccode = 0;
  27.   unsigned int crctab[] = {
  28.      0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241,
  29.       0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440,
  30. diff -cbBw orig/fiz.c new/fiz.c
  31. *** orig/fiz.c    Thu Jul 11 12:06:30 1991
  32. --- new/fiz.c    Sun Jul 14 21:42:50 1991
  33. ***************
  34. *** 33,40 ****
  35.      int state;              /* to keep track of how much of tag seen */
  36.      int inch;               /* char just read from archive */
  37.   
  38. !    static char usage1[] = "Fiz 2.0 (1987/02/01) public domain Zoo archive repair utility by Rahul Dhesi\n";
  39. !    static char usage2[] = "Usage:  fiz archive[.zoo]  (\"fiz -h\" for help)\n";
  40.   
  41.   #ifdef SETBUF
  42.   /* set stdout to unbuffered */
  43. --- 33,40 ----
  44.      int state;              /* to keep track of how much of tag seen */
  45.      int inch;               /* char just read from archive */
  46.   
  47. !    static char usage1[] = "\nFiz 2.0 (1987/02/01) public domain Zoo archive repair utility by Rahul Dhesi\n";
  48. !    static char usage2[] = "\nUsage:  fiz archive[.zoo]  (\"fiz -h\" for help)\n";
  49.   
  50.   #ifdef SETBUF
  51.   /* set stdout to unbuffered */
  52. ***************
  53. *** 161,167 ****
  54.   To remove printf:
  55.   :s/^printf("\(.*\)\\n");/\1/
  56.   */
  57. ! printf("Fiz is used to help you recover data from a damaged archive.  Fiz searches\n");
  58.   printf("the specified archive for directory entries and stored files, and prints the\n");
  59.   printf("position of each one found.  Each directory entry contains a number that\n");
  60.   printf("represents the location in the archive where the file is stored;  fiz also\n");
  61. --- 161,167 ----
  62.   To remove printf:
  63.   :s/^printf("\(.*\)\\n");/\1/
  64.   */
  65. ! printf("\nFiz is used to help you recover data from a damaged archive.  Fiz searches\n");
  66.   printf("the specified archive for directory entries and stored files, and prints the\n");
  67.   printf("position of each one found.  Each directory entry contains a number that\n");
  68.   printf("represents the location in the archive where the file is stored;  fiz also\n");
  69. diff -cbBw orig/lzd.c new/lzd.c
  70. *** orig/lzd.c    Thu Jul 11 12:04:04 1991
  71. --- new/lzd.c    Sun Jul 14 20:38:40 1991
  72. ***************
  73. *** 66,74 ****
  74.   /* wr_dchar() is a macro for speed */
  75.   #define wr_dchar(c) {                             \
  76.                              if (outbufp<outbuflim) \
  77. !                               *outbufp++=(c);     \
  78.                              else                   \
  79. !                               xwr_dchar(c);       \
  80.                       }
  81.   
  82.   extern char *out_buf_adr;        /* output buffer */
  83. --- 66,74 ----
  84.   /* wr_dchar() is a macro for speed */
  85.   #define wr_dchar(c) {                             \
  86.                              if (outbufp<outbuflim) \
  87. !                               *outbufp++=(char)(c);     \
  88.                              else                   \
  89. !                               xwr_dchar((char)c);       \
  90.                       }
  91.   
  92.   extern char *out_buf_adr;        /* output buffer */
  93. diff -cbBw orig/machine.c new/machine.c
  94. *** orig/machine.c    Thu Jul 11 12:04:06 1991
  95. --- new/machine.c    Sun Jul 14 18:32:22 1991
  96. ***************
  97. *** 69,75 ****
  98.   #endif
  99.   
  100.   #ifdef MSC
  101. ! #include "ERROR -- NOT SUPPORTED"
  102.   #endif
  103.   
  104.   #ifdef TURBOC
  105. --- 69,75 ----
  106.   #endif
  107.   
  108.   #ifdef MSC
  109. ! #include "msc.c"
  110.   #endif
  111.   
  112.   #ifdef TURBOC
  113. diff -cbBw orig/nextfile.c new/nextfile.c
  114. *** orig/nextfile.c    Thu Jul 11 12:04:18 1991
  115. --- new/nextfile.c    Sun Jul 14 18:49:58 1991
  116. ***************
  117. *** 54,59 ****
  118. --- 54,61 ----
  119.   #else
  120.   /* if not PORTABLE  then */
  121.   
  122. + #ifndef OS2 /* the OS/2 version sits in os2.c to cleanly separate all
  123. +                OS-dependent code in one module */
  124.   #include <dir.h>
  125.   #include <dos.h>
  126.   #include "assert.h"     /* macro definition:  assert() macro            */
  127. ***************
  128. *** 203,205 ****
  129. --- 205,208 ----
  130.      new_path[start_pos+13] = '\0';
  131.   }
  132.   #endif /* PORTABLE */
  133. + #endif /* OS2 */
  134. diff -cbBw orig/options.h new/options.h
  135. *** orig/options.h    Thu Jul 11 12:04:22 1991
  136. --- new/options.h    Sun Jul 14 20:33:00 1991
  137. ***************
  138. *** 234,239 ****
  139. --- 234,289 ----
  140.   #endif
  141.   
  142.   /***********************************************************************/
  143. + /* Microsoft C 6.00 for MS-DOS and OS/2                                */
  144. + /***********************************************************************/
  145. + #ifdef MSC
  146. + #undef PORTABLE
  147. + #define FILTER
  148. + #define NEEDCTYP
  149. + #define MEMSET
  150. + #define ANSI_HDRS
  151. + #define USE_ASCII
  152. + #define SPECINIT
  153. + #define SPECEXIT
  154. + #define PURIFY
  155. + #define DISK_CH ':'
  156. + #define IGNORECASE
  157. + #define WILDCARD "*.*"
  158. + #ifndef OS2
  159. + #define FOLD
  160. + #endif
  161. + #define FORCESLASH
  162. + #define FNLIMIT 256
  163. + #define CUR_DIR "."
  164. + #define PATH_SEP ":/\\"
  165. + #define EXT_SEP  ":/\\."
  166. + #define SETMODE
  167. + #define MODE_BIN(f)      setmode(fileno(f), 0x8000)
  168. + #define MODE_TEXT(f)     setmode(fileno(f), 0x4000)
  169. + #define NEED_STDIO
  170. + #define ANSI_PROTO
  171. + #define VOIDPTR        void *
  172. + #define REN_STDC
  173. + #define STDARG
  174. + #define T_UINT16        unsigned short        /* must be 16 bit unsigned */
  175. + /* #define UNBUF_IO */
  176. + /* #define UNBUF_LIMIT    512 */
  177. + #define  T_SIGNAL void
  178. + #define DIRECT_CONVERT
  179. + #define STDARG
  180. + #define CHECK_BREAK
  181. + #define check_break kbhit
  182. + #define HAVE_ISATTY
  183. + #ifdef  PORTABLE        /* for testing only */
  184. + # define SPECNEXT
  185. + # define NIXTIME
  186. + # undef  WILDCARD
  187. + #endif
  188. + #define FPUTCHAR
  189. + #endif /* MSC */
  190. + /***********************************************************************/
  191.   /* GENERIC **IX SYSTEM -- GOOD STARTING POINT FOR YOURS                */
  192.   /***********************************************************************/
  193.   
  194. diff -cbBw orig/zoo.c new/zoo.c
  195. *** orig/zoo.c    Thu Jul 11 12:04:44 1991
  196. --- new/zoo.c    Sun Jul 14 19:48:46 1991
  197. ***************
  198. *** 34,41 ****
  199.   
  200.   int instr PARMS ((char *, char *));
  201.   
  202. ! char *out_buf_adr;      /* points to memory allocated for output buffer(s) */
  203. ! char *in_buf_adr;       /* points to memory allocated for input buffer */
  204.   
  205.   /* static declarations */
  206.   int quiet = 0;             /* whether to be quiet */
  207. --- 34,41 ----
  208.   
  209.   int instr PARMS ((char *, char *));
  210.   
  211. ! char *out_buf_adr = NULL;      /* points to memory allocated for output buffer(s) */
  212. ! char *in_buf_adr = NULL;       /* points to memory allocated for input buffer */
  213.   
  214.   /* static declarations */
  215.   int quiet = 0;             /* whether to be quiet */
  216. ***************
  217. *** 56,62 ****
  218.   #ifdef OOZ
  219.   #else
  220.   /* else not OOZ */
  221. !       static char usage[] = "Usage: zoo {acDeglLPTuUvx}[aAcCdEfInmMNoOpPqu1:/.@n] archive file\n(\"zoo h\" for help, \"zoo H\" for extended help)\n";
  222.         static char nov_usage[] =
  223.             "\nNovice usage:  zoo -cmd archive[.zoo] file...  where -cmd is one of these:\n";
  224.         char *option;
  225. --- 56,62 ----
  226.   #ifdef OOZ
  227.   #else
  228.   /* else not OOZ */
  229. !       static char usage[] = "\nUsage: zoo {acDeglLPTuUvx}[aAcCdEfInmMNoOpPqu1:/.@n] archive file\n(\"zoo h\" for help, \"zoo H\" for extended help)\n";
  230.         static char nov_usage[] =
  231.             "\nNovice usage:  zoo -cmd archive[.zoo] file...  where -cmd is one of these:\n";
  232.         char *option;
  233. ***************
  234. *** 276,282 ****
  235.   
  236.   /* usage list including Novice commands */
  237.   show_usage:
  238. !    fprintf (stderr, "%s\n\n%s%s%s", version, usage, nov_usage, nov_cmds);
  239.       zooexit (1);
  240.   
  241.   /* brief usage list */
  242. --- 276,284 ----
  243.   
  244.   /* usage list including Novice commands */
  245.   show_usage:
  246. !    printf ("\nZoo archiver, %s\n", version);
  247. !    printf ("(C) Copyright 1988 Rahul Dhesi -- Noncommercial use permitted\n");
  248. !    printf ("%s%s%s", usage, nov_usage, nov_cmds);
  249.       zooexit (1);
  250.   
  251.   /* brief usage list */
  252. diff -cbBw orig/zoofilt.c new/zoofilt.c
  253. *** orig/zoofilt.c    Thu Jul 11 12:04:56 1991
  254. --- new/zoofilt.c    Sun Jul 14 20:46:40 1991
  255. ***************
  256. *** 54,59 ****
  257. --- 54,61 ----
  258.                   }
  259.       }
  260.   
  261. +         MODE_BIN(stdin);
  262. +         MODE_BIN(stdout);
  263.       crccode = 0;    /* needed whether compressing or uncompressing */
  264.   
  265.       switch (choice) {
  266.