home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sources / bugs / 223 < prev    next >
Encoding:
Text File  |  1992-08-22  |  24.7 KB  |  768 lines

  1. Newsgroups: comp.sources.bugs
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!gene.fwi.uva.nl!vdlinden
  3. From: vdlinden@fwi.uva.nl (Frank van der Linden)
  4. Subject: patches for unzip 5.0 zip 1.9
  5. Message-ID: <1992Aug23.131453.27823@fwi.uva.nl>
  6. Keywords: late minute fixes
  7. Sender: news@fwi.uva.nl
  8. Nntp-Posting-Host: gene.fwi.uva.nl
  9. Organization: FWI, University of Amsterdam
  10. Date: Sun, 23 Aug 1992 13:14:53 GMT
  11. Lines: 755
  12.  
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then unpack
  16. # it by saving it into a file and typing "sh file".  To overwrite existing
  17. # files, type "sh file -c".  You can also feed this as standard input via
  18. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  19. # will see the following message at the end:
  20. #        "End of shell archive."
  21. # Contents:  readme crypt.dif unzip.dif zip.dif
  22. # Wrapped by vdlinden@fwi.uva.nl on Sun Aug 23 15:11:51 1992
  23. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  24. if test -f 'readme' -a "${1}" != "-c" ; then 
  25.   echo shar: Will not clobber existing file \"'readme'\"
  26. else
  27. echo shar: Extracting \"'readme'\" \(702 characters\)
  28. sed "s/^X//" >'readme' <<'END_OF_FILE'
  29. X The deadline for zip/unzip beat me so here are a couple of patches for
  30. Xzip 1.9 and unzip 5.0. They are important for 386BSD and DOS, they don't matter
  31. Xthat much on other systems.
  32. X
  33. X Fixes for unzip 5.0:
  34. X1. Fix one or two compiler warnings
  35. X2. Add bcc_dos to the main makefile
  36. X3. Change zi_dos to zi_msc
  37. X4. Add zi_bcc
  38. X5. Add zi_djgcc
  39. X6. time calculations in 386BSD
  40. X
  41. X Fixes for zip 1.9:
  42. X1. Fix one or two compiler warnings (const stuff for djgcc)
  43. X2. Make things work under 386BSD when using -DCRYPT
  44. X3. Fix some dos makefiles (cc -o util_.obj  fileio.c among others)
  45. X
  46. X Small fix for crypt.c with 386BSD: getpid is already defined in <unistd.h>.
  47. X
  48. XOnno van der Linden               c/o   vdlinden@fwi.uva.nl
  49. END_OF_FILE
  50. if test 702 -ne `wc -c <'readme'`; then
  51.     echo shar: \"'readme'\" unpacked with wrong size!
  52. fi
  53. # end of 'readme'
  54. fi
  55. if test -f 'crypt.dif' -a "${1}" != "-c" ; then 
  56.   echo shar: Will not clobber existing file \"'crypt.dif'\"
  57. else
  58. echo shar: Extracting \"'crypt.dif'\" \(228 characters\)
  59. sed "s/^X//" >'crypt.dif' <<'END_OF_FILE'
  60. X*** crypt.c.old    Fri Aug 14 11:27:48 1992
  61. X--- crypt.c    Sat Aug 22 13:37:53 1992
  62. X***************
  63. X*** 22,26 ****
  64. X--- 22,28 ----
  65. X  #  include <process.h>
  66. X  #else
  67. X+ #ifndef __386BSD__
  68. X     int  getpid OF((void));
  69. X+ #endif
  70. X  #endif
  71. X  
  72. END_OF_FILE
  73. if test 228 -ne `wc -c <'crypt.dif'`; then
  74.     echo shar: \"'crypt.dif'\" unpacked with wrong size!
  75. fi
  76. # end of 'crypt.dif'
  77. fi
  78. if test -f 'unzip.dif' -a "${1}" != "-c" ; then 
  79.   echo shar: Will not clobber existing file \"'unzip.dif'\"
  80. else
  81. echo shar: Extracting \"'unzip.dif'\" \(8482 characters\)
  82. sed "s/^X//" >'unzip.dif' <<'END_OF_FILE'
  83. Xdiff -c2 unzip50o.old/file_io.c unzip50o.new/file_io.c
  84. X*** unzip50o.old/file_io.c    Wed Aug 19 14:17:34 1992
  85. X--- unzip50o.new/file_io.c    Sat Aug 22 14:02:52 1992
  86. X***************
  87. X*** 95,112 ****
  88. X  #      endif /* ?__386BSD__ */
  89. X  #    endif /* ?TERMIO */
  90. X!      int isatty OF((int));
  91. X!      char *ttyname OF((int));
  92. X! #    if (defined(PROTO) && !defined(__GNUC__) && !defined(_AIX))
  93. X!        int open (char *, int, ...);
  94. X! #    endif
  95. X!      int close OF((int));
  96. X!      int read OF((int, voidp *, int));
  97. X  #  endif /* ?(DOS_OS2 || VMS) */
  98. X  #endif /* CRYPT */
  99. X  
  100. X  
  101. X  
  102. X  
  103. X- 
  104. X  /******************************/
  105. X  /* Function open_input_file() */
  106. X--- 95,116 ----
  107. X  #      endif /* ?__386BSD__ */
  108. X  #    endif /* ?TERMIO */
  109. X! #    ifndef __386BSD__
  110. X!        int isatty OF((int));
  111. X!        char *ttyname OF((int));
  112. X! #      if (defined(PROTO) && !defined(__GNUC__) && !defined(_AIX))
  113. X!          int open (char *, int, ...);
  114. X! #      endif
  115. X!        int close OF((int));
  116. X!        int read OF((int, voidp *, int));
  117. X! #    endif /* !__386BSD__ */
  118. X  #  endif /* ?(DOS_OS2 || VMS) */
  119. X  #endif /* CRYPT */
  120. X  
  121. X+ #ifdef __386BSD__
  122. X+ #  include <utime.h>
  123. X+ #endif
  124. X  
  125. X  
  126. X  
  127. X  /******************************/
  128. X  /* Function open_input_file() */
  129. X***************
  130. X*** 817,820 ****
  131. X--- 821,825 ----
  132. X      long m_time;
  133. X      int yr, mo, dy, hh, mm, ss, leap, days=0;
  134. X+ #ifndef __386BSD__
  135. X      struct utimbuf {
  136. X          time_t actime;          /* new access time */
  137. X***************
  138. X*** 821,824 ****
  139. X--- 826,832 ----
  140. X          time_t modtime;         /* new modification time */
  141. X      } tp;
  142. X+ #else
  143. X+    struct utimbuf tp;
  144. X+ #endif
  145. X  #ifdef AMIGA
  146. X  #   define YRBASE  1978         /* in AmigaDos, counting begins 01-Jan-1978 */
  147. X***************
  148. X*** 912,916 ****
  149. X  
  150. X  #ifdef __386BSD__
  151. X!     m_time += localtime(&m_time)->tm_gmtoff;
  152. X  #else
  153. X      if (localtime(&m_time)->tm_isdst)
  154. X--- 920,929 ----
  155. X  
  156. X  #ifdef __386BSD__
  157. X! /* GMT offset is in seconds _EAST_ of GMT */
  158. X! /* timezone is in seconds _WEST_ of GMT */
  159. X! /* That's causing the mtime -= tm_gmtoff instead of mtime += timezone */
  160. X! /* Daylight savings time is already added to tm_gmtoff */
  161. X! /* So no check on tm_isdst */
  162. X!     m_time -= localtime(&m_time)->tm_gmtoff;
  163. X  #else
  164. X      if (localtime(&m_time)->tm_isdst)
  165. Xdiff -c2 unzip50o.old/makefile unzip50o.new/makefile
  166. X*** unzip50o.old/makefile    Thu Aug 20 11:09:22 1992
  167. X--- unzip50o.new/makefile    Sat Aug 22 14:20:26 1992
  168. X***************
  169. X*** 105,110 ****
  170. X  
  171. X  # list of supported systems/targets in this version
  172. X! SYSTEMS1 = 386i 3Bx 7300 amdahl apollo aviion bsd bull c120 c210 coherent
  173. X! SYSTEMS2 = convex cray cray_cc cray_v3 cyber_sgi dec dnix encore eta
  174. X  SYSTEMS3 = gcc gcc_dos generic generic2 gould hk68 hp indigo linux
  175. X  SYSTEMS4 = minix mips msc_dos next osf1 p_iris pyramid rs6000 rtaix
  176. X--- 105,110 ----
  177. X  
  178. X  # list of supported systems/targets in this version
  179. X! SYSTEMS1 = 386i 3Bx 7300 amdahl apollo aviion bcc_dos bsd bull c120 c210
  180. X! SYSTEMS2 = coherent convex cray cray_cc cray_v3 cyber_sgi dec dnix encore eta
  181. X  SYSTEMS3 = gcc gcc_dos generic generic2 gould hk68 hp indigo linux
  182. X  SYSTEMS4 = minix mips msc_dos next osf1 p_iris pyramid rs6000 rtaix
  183. X***************
  184. X*** 112,116 ****
  185. X  SYSTEMS6 = tahoe ultrix vax wombat xos
  186. X  
  187. X! SYS_UTIL1 = zi_dos zi_gcc zi_indigo zipinfo fu_gcc funzip
  188. X  # SYS_UTIL2 = ship ship_dos ship_sysv
  189. X  
  190. X--- 112,116 ----
  191. X  SYSTEMS6 = tahoe ultrix vax wombat xos
  192. X  
  193. X! SYS_UTIL1 = zi_msc zi_bcc zi_djgcc zi_gcc zi_indigo zipinfo fu_gcc funzip
  194. X  # SYS_UTIL2 = ship ship_dos ship_sysv
  195. X  
  196. X***************
  197. X*** 370,376 ****
  198. X      strip unzip
  199. X  
  200. X! # MS-DOS with D.J. Delorie's djgcc 1.06.  Note that go32 doesn't support
  201. X! # dos function 0x38 (yet); to fix, append to line 400 of exphdlr.c (go32)
  202. X! # the following:  "case 0x38:".
  203. X  #
  204. X  gcc_dos:    # may need to add -Uunix to CF
  205. X--- 370,375 ----
  206. X      strip unzip
  207. X  
  208. X! # MS-DOS with D.J. Delorie's djgcc 1.08.  Note that go32 doesn't support
  209. X! # dos function 0x38. So your dateformat with -v is the default.
  210. X  #
  211. X  gcc_dos:    # may need to add -Uunix to CF
  212. X***************
  213. X*** 418,421 ****
  214. X--- 417,431 ----
  215. X      echo $(OBJS2:.o=.obj)/noi/e/st:0x1000; >> rsp
  216. X  
  217. X+ # MSDOS: Borland C++ 3.0
  218. X+ #
  219. X+ bcc_dos:    bcc_rsp
  220. X+     $(MAKE) unzip.exe CF="-O2 $(LOC)" CC=bcc LD=bcc E=.exe O=.obj\
  221. X+      LOBJS="" LF="@bcc_rsp" LF2=""
  222. X+     del bcc_rsp
  223. X+ 
  224. X+ bcc_rsp:
  225. X+     echo $(OBJS1:.o=.obj) > bcc_rsp
  226. X+     echo $(OBJS2:.o=.obj) >> bcc_rsp
  227. X+ 
  228. X  # $(LOCAL_UNZIP):  math libraries and/or any other personal or debugging
  229. X  #                  definitions:  e.g., SET LOCAL_UNZIP=-FPi87 -DDEBUG_STRUC
  230. X***************
  231. X*** 521,529 ****
  232. X      $(MAKE) zipinfo CF="-cckr -O -DUNIX $(LOC)"
  233. X  
  234. X! zi_dos:            # MSC 6.0 + nmake, MS-DOS
  235. X      $(MAKE) zipinfo.exe CF="-Ox -nologo $(LOC) -G2" CC=cl\
  236. X       LD=link E=.exe O=.obj ZL="/noi /nol" ZL2=",zipinfo;"\
  237. X!      LN="copy" RM="DEL"
  238. X  
  239. X  
  240. X  ####################
  241. X--- 531,547 ----
  242. X      $(MAKE) zipinfo CF="-cckr -O -DUNIX $(LOC)"
  243. X  
  244. X! zi_msc:            # MSC 6.0 + nmake, MS-DOS
  245. X      $(MAKE) zipinfo.exe CF="-Ox -nologo $(LOC) -G2" CC=cl\
  246. X       LD=link E=.exe O=.obj ZL="/noi /nol" ZL2=",zipinfo;"\
  247. X!      LN="copy" RM="del"
  248. X  
  249. X+ zi_bcc:            # BCC 3.0
  250. X+     $(MAKE) zipinfo.exe CF="-O2 $(LOC)" CC=bcc LD=bcc E=.exe O=.obj\
  251. X+      ZL="" ZL2="" LN="copy" RM="del"
  252. X+ 
  253. X+ zi_djgcc:         # DJGCC 1.08
  254. X+     $(MAKE) zipinfo CF="-O2" CC=gcc LD=gcc ZL2="" LN="copy" RM="del"
  255. X+     aout2exe zipinfo
  256. X+     del zipinfo
  257. X  
  258. X  ####################
  259. Xdiff -c2 unzip50o.old/misc.c unzip50o.new/misc.c
  260. X*** unzip50o.old/misc.c    Wed Aug 19 14:17:36 1992
  261. X--- unzip50o.new/misc.c    Sat Aug 22 14:03:30 1992
  262. X***************
  263. X*** 355,359 ****
  264. X  
  265. X  #ifdef __386BSD__
  266. X!     m_time += localtime((time_t *) &m_time))->tm_gmtoff;
  267. X  #else
  268. X      if (localtime((time_t *)&m_time)->tm_isdst)
  269. X--- 355,360 ----
  270. X  
  271. X  #ifdef __386BSD__
  272. X! /* See comments in file_io.c */
  273. X!     m_time -= localtime((time_t *) &m_time)->tm_gmtoff;
  274. X  #else
  275. X      if (localtime((time_t *)&m_time)->tm_isdst)
  276. X***************
  277. X*** 502,512 ****
  278. X          }
  279. X  #else /* !OS2 */
  280. X! #if (defined(MSDOS) && !defined(MSWIN))
  281. X      unsigned short _CountryInfo[18];
  282. X- #ifdef __GO32__
  283. X-     unsigned short *CountryInfo = _CountryInfo;
  284. X- 
  285. X-     bdos(0x38, (unsigned)CountryInfo, 0);
  286. X- #else /* !__GO32__ */
  287. X      unsigned short far *CountryInfo = _CountryInfo;
  288. X      union REGS regs;
  289. X--- 503,508 ----
  290. X          }
  291. X  #else /* !OS2 */
  292. X! #if (defined(MSDOS) && !defined(MSWIN) && !defined(__GO32__))
  293. X      unsigned short _CountryInfo[18];
  294. X      unsigned short far *CountryInfo = _CountryInfo;
  295. X      union REGS regs;
  296. X***************
  297. X*** 517,521 ****
  298. X      sregs.ds  = FP_SEG(CountryInfo);
  299. X      int86x(0x21, ®s, ®s, &sregs);
  300. X- #endif /* ?__GO32__ */
  301. X  
  302. X      switch(CountryInfo[0]) {
  303. X--- 513,516 ----
  304. X***************
  305. X*** 527,531 ****
  306. X              return DF_YMD;
  307. X      }
  308. X! #endif /* MSDOS && !MSWIN */
  309. X  #endif /* ?OS2 */
  310. X  
  311. X--- 522,526 ----
  312. X              return DF_YMD;
  313. X      }
  314. X! #endif /* MSDOS && !MSWIN  && !__GO32__ */
  315. X  #endif /* ?OS2 */
  316. X  
  317. Xdiff -c2 unzip50o.old/unzip.h unzip50o.new/unzip.h
  318. X*** unzip50o.old/unzip.h    Thu Aug 13 10:55:00 1992
  319. X--- unzip50o.new/unzip.h    Sat Aug 22 13:04:58 1992
  320. X***************
  321. X*** 138,144 ****
  322. X  #    include <stdlib.h>    /* standard library prototypes, malloc(), etc. */
  323. X  #  else
  324. X! #    ifdef __EMX__
  325. X  #      include <stdlib.h>  /* emx IS gcc but has stdlib.h */
  326. X  #    endif
  327. X  #  endif
  328. X  #  include <string.h>      /* defines strcpy, strcmp, memcpy, etc. */
  329. X--- 138,147 ----
  330. X  #    include <stdlib.h>    /* standard library prototypes, malloc(), etc. */
  331. X  #  else
  332. X! #    if (defined(__EMX__) || defined(__386BSD__))
  333. X  #      include <stdlib.h>  /* emx IS gcc but has stdlib.h */
  334. X  #    endif
  335. X+ #  endif
  336. X+ #  ifdef __386BSD__
  337. X+ #    include <unistd.h>
  338. X  #  endif
  339. X  #  include <string.h>      /* defines strcpy, strcmp, memcpy, etc. */
  340. Xdiff -c2 unzip50o.old/zipinfo.c unzip50o.new/zipinfo.c
  341. X*** unzip50o.old/zipinfo.c    Thu Aug 20 11:24:22 1992
  342. X--- unzip50o.new/zipinfo.c    Sat Aug 22 12:12:20 1992
  343. X***************
  344. X*** 1273,1278 ****
  345. X  
  346. X      if (methnum == IMPLODED) {
  347. X!         impl[1] = (crec.general_purpose_bit_flag & 2)? '8' : '4';
  348. X!         impl[3] = (crec.general_purpose_bit_flag & 4)? '3' : '2';
  349. X      } else if (methnum == DEFLATED) {
  350. X          UWORD  dnum=(crec.general_purpose_bit_flag>>1) & 3;
  351. X--- 1273,1278 ----
  352. X  
  353. X      if (methnum == IMPLODED) {
  354. X!         impl[1] = (char) ((crec.general_purpose_bit_flag & 2)? '8' : '4');
  355. X!         impl[3] = (char) ((crec.general_purpose_bit_flag & 4)? '3' : '2');
  356. X      } else if (methnum == DEFLATED) {
  357. X          UWORD  dnum=(crec.general_purpose_bit_flag>>1) & 3;
  358. END_OF_FILE
  359. if test 8482 -ne `wc -c <'unzip.dif'`; then
  360.     echo shar: \"'unzip.dif'\" unpacked with wrong size!
  361. fi
  362. # end of 'unzip.dif'
  363. fi
  364. if test -f 'zip.dif' -a "${1}" != "-c" ; then 
  365.   echo shar: Will not clobber existing file \"'zip.dif'\"
  366. else
  367. echo shar: Extracting \"'zip.dif'\" \(12508 characters\)
  368. sed "s/^X//" >'zip.dif' <<'END_OF_FILE'
  369. Xdiff -c2 -r zip19d.old/fileio.c zip19d.new/fileio.c
  370. X*** zip19d.old/fileio.c    Tue Aug 18 12:34:34 1992
  371. X--- zip19d.new/fileio.c    Sat Aug 22 18:48:00 1992
  372. X***************
  373. X*** 138,155 ****
  374. X  #      define STTY(f,s) ioctl(f,TCSETAW,s)
  375. X  #    else /* !TERMIO */
  376. X! #      ifndef MINIX
  377. X  #        include <sys/ioctl.h>
  378. X! #      endif /* !MINIX */
  379. X  #      include <sgtty.h>
  380. X!        int gtty OF((int, struct sgttyb *));
  381. X!        int stty OF((int, struct sgttyb *));
  382. X! #      define GTTY gtty
  383. X! #      define STTY stty
  384. X  #    endif /* ?TERMIO */
  385. X!      int isatty OF((int));
  386. X!      char *ttyname OF((int));
  387. X!      int open OF((char *, int, ...));
  388. X!      int close OF((int));
  389. X!      int read OF((int, voidp *, int));
  390. X  #  endif /* ?MSVMS */
  391. X  #endif /* ?CRYPT */
  392. X--- 138,164 ----
  393. X  #      define STTY(f,s) ioctl(f,TCSETAW,s)
  394. X  #    else /* !TERMIO */
  395. X! #      if (!defined(MINIX) && !defined(__386BSD__))
  396. X  #        include <sys/ioctl.h>
  397. X! #      endif /* !MINIX && !__386BSD__ */
  398. X  #      include <sgtty.h>
  399. X! #      ifdef __386BSD__
  400. X! #        define GTTY(f, s) ioctl(f, TIOCGETP, (voidp *) s)
  401. X! #        define STTY(f, s) ioctl(f, TIOCSETP, (voidp *) s)
  402. X! #      else /* !__386BSD__ */
  403. X! #        define GTTY gtty
  404. X! #        define STTY stty
  405. X!          int gtty OF((int, struct sgttyb *));
  406. X!          int stty OF((int, struct sgttyb *));
  407. X! #      endif /* ?__386BSD__ */
  408. X  #    endif /* ?TERMIO */
  409. X! #    ifdef __386BSD__
  410. X! #      include <fcntl.h>
  411. X! #    else /* !__386BSD__ */
  412. X!        int isatty OF((int));
  413. X!        char *ttyname OF((int));
  414. X!        int open OF((char *, int, ...));
  415. X!        int close OF((int));
  416. X!        int read OF((int, voidp *, int));
  417. X! #    endif /* ?__386BSD */
  418. X  #  endif /* ?MSVMS */
  419. X  #endif /* ?CRYPT */
  420. X***************
  421. X*** 296,299 ****
  422. X--- 305,309 ----
  423. X  #endif /* !__TURBOC__ */
  424. X  #ifndef MSDOS
  425. X+ #ifndef __386BSD__
  426. X     int open OF((char *, int, ...));
  427. X     int close OF((int));
  428. X***************
  429. X*** 301,304 ****
  430. X--- 311,315 ----
  431. X       int rmdir OF((char *));
  432. X  #  endif /* !RMDIR */
  433. X+ #endif /* !__386BSD__ */
  434. X  #endif /* !MSDOS */
  435. X  
  436. X***************
  437. X*** 323,328 ****
  438. X  #  endif /* DIRENT */
  439. X     local char *readd(dstrm *);
  440. X!    local int fqcmp(voidp *, voidp *);
  441. X!    local int fqcmpz(voidp *, voidp *);
  442. X     local char *last(char *);
  443. X     local char *msname(char *);
  444. X--- 334,339 ----
  445. X  #  endif /* DIRENT */
  446. X     local char *readd(dstrm *);
  447. X!    local int fqcmp(const voidp *, const voidp *);
  448. X!    local int fqcmpz(const voidp *, const voidp *);
  449. X     local char *last(char *);
  450. X     local char *msname(char *);
  451. X***************
  452. X*** 804,808 ****
  453. X  
  454. X  local int fqcmp(a, b)
  455. X! voidp *a, *b;           /* pointers to pointers to found entries */
  456. X  /* Used by qsort() to compare entries in the found list by name. */
  457. X  {
  458. X--- 815,819 ----
  459. X  
  460. X  local int fqcmp(a, b)
  461. X! const voidp *a, *b;      /* pointers to pointers to found entries */
  462. X  /* Used by qsort() to compare entries in the found list by name. */
  463. X  {
  464. X***************
  465. X*** 813,817 ****
  466. X  
  467. X  local int fqcmpz(a, b)
  468. X! voidp *a, *b;           /* pointers to pointers to found entries */
  469. X  /* Used by qsort() to compare entries in the found list by zname. */
  470. X  {
  471. X--- 824,828 ----
  472. X  
  473. X  local int fqcmpz(a, b)
  474. X! const voidp *a, *b;      /* pointers to pointers to found entries */
  475. X  /* Used by qsort() to compare entries in the found list by zname. */
  476. X  {
  477. Xdiff -c2 -r zip19d.old/tailor.h zip19d.new/tailor.h
  478. X*** zip19d.old/tailor.h    Tue Aug 18 13:14:44 1992
  479. X--- zip19d.new/tailor.h    Sat Aug 22 17:48:50 1992
  480. X***************
  481. X*** 137,140 ****
  482. X--- 137,143 ----
  483. X  #  endif /* !M_XENIX */
  484. X  #  include <stdlib.h>
  485. X+ #  ifdef __386BSD__
  486. X+ #    include <unistd.h>
  487. X+ #  endif
  488. X     typedef size_t extent;
  489. X     typedef void voidp;
  490. Xdiff -c2 -r zip19d.old/trees.c zip19d.new/trees.c
  491. X*** zip19d.old/trees.c    Tue Aug 18 11:54:30 1992
  492. X--- zip19d.new/trees.c    Sat Aug 22 16:53:46 1992
  493. X***************
  494. X*** 57,61 ****
  495. X   *          Save the match info and tally the frequency counts.
  496. X   *
  497. X!  *      long flush_block (char *buf, ulg stored_len, int eof)
  498. X   *          Determine the best encoding for the current block: dynamic trees,
  499. X   *          static trees or store, and output the encoded block to the zip
  500. X--- 57,61 ----
  501. X   *          Save the match info and tally the frequency counts.
  502. X   *
  503. X!  *      long flush_block (char far *buf, ulg stored_len, int eof)
  504. X   *          Determine the best encoding for the current block: dynamic trees,
  505. X   *          static trees or store, and output the encoded block to the zip
  506. X***************
  507. X*** 861,865 ****
  508. X   */
  509. X  ulg flush_block(buf, stored_len, eof)
  510. X!     char *buf;        /* input block, or NULL if too old */
  511. X      ulg stored_len;   /* length of input block */
  512. X      int eof;          /* true if this is the last block for a file */
  513. X--- 861,865 ----
  514. X   */
  515. X  ulg flush_block(buf, stored_len, eof)
  516. X!     char far *buf;    /* input block, or NULL if too old */
  517. X      ulg stored_len;   /* length of input block */
  518. X      int eof;          /* true if this is the last block for a file */
  519. Xdiff -c2 -r zip19d.old/util.c zip19d.new/util.c
  520. X*** zip19d.old/util.c    Thu Aug 20 20:28:02 1992
  521. X--- zip19d.new/util.c    Sat Aug 22 18:04:34 1992
  522. X***************
  523. X*** 30,34 ****
  524. X--- 30,36 ----
  525. X  #ifdef PROTO
  526. X    local int recmatch(char *, char *);
  527. X+ #if (defined(MSDOS) && !defined(OS2) && !defined(__GO32__) && !defined(WIN32))
  528. X    local unsigned ident(unsigned chr);
  529. X+ #endif
  530. X  #endif /* PROTO */
  531. X  
  532. X***************
  533. X*** 187,191 ****
  534. X  voidp far **a;          /* table of pointers to values, sorted */
  535. X  extent n;               /* number of pointers in a[] */
  536. X! int (*cmp) OF((voidp *, voidp far *));  /* comparison function for search */
  537. X  /* Search for b in the pointer list a[0..n-1] using the compare function
  538. X     cmp(b, c) where c is an element of a[i] and cmp() returns negative if
  539. X--- 189,194 ----
  540. X  voidp far **a;          /* table of pointers to values, sorted */
  541. X  extent n;               /* number of pointers in a[] */
  542. X!                         /* comparison function for search */
  543. X! int (*cmp) OF((const voidp *, const voidp far *));
  544. X  /* Search for b in the pointer list a[0..n-1] using the compare function
  545. X     cmp(b, c) where c is an element of a[i] and cmp() returns negative if
  546. Xdiff -c2 -r zip19d.old/zip.h zip19d.new/zip.h
  547. X*** zip19d.old/zip.h    Tue Aug 18 11:54:32 1992
  548. X--- zip19d.new/zip.h    Sat Aug 22 18:05:08 1992
  549. X***************
  550. X*** 295,299 ****
  551. X  int      namecmp    OF((char *string1, char *string2));
  552. X  voidp far **search  OF((voidp *, voidp far **, extent,
  553. X!                        int (*)(voidp *, voidp far *)));
  554. X  ulg crc32 OF((ulg, int));
  555. X  ulg updcrc OF((char *, extent));
  556. X--- 295,299 ----
  557. X  int      namecmp    OF((char *string1, char *string2));
  558. X  voidp far **search  OF((voidp *, voidp far **, extent,
  559. X!                        int (*)(const voidp *, const voidp far *)));
  560. X  ulg crc32 OF((ulg, int));
  561. X  ulg updcrc OF((char *, extent));
  562. Xdiff -c2 -r zip19d.old/zipfile.c zip19d.new/zipfile.c
  563. X*** zip19d.old/zipfile.c    Tue Aug 18 11:54:32 1992
  564. X--- zip19d.new/zipfile.c    Sat Aug 22 17:09:42 1992
  565. X***************
  566. X*** 79,85 ****
  567. X  /* Local functions */
  568. X  #ifdef PROTO
  569. X!    local int zqcmp(voidp *, voidp *);
  570. X  #  ifndef UTIL
  571. X!      local int zbcmp(voidp *, voidp far *);
  572. X       local char *cutpath(char *);
  573. X  #  endif /* !UTIL */
  574. X--- 79,85 ----
  575. X  /* Local functions */
  576. X  #ifdef PROTO
  577. X!    local int zqcmp(const voidp *, const voidp *);
  578. X  #  ifndef UTIL
  579. X!      local int zbcmp(const voidp *, const voidp far *);
  580. X       local char *cutpath(char *);
  581. X  #  endif /* !UTIL */
  582. X***************
  583. X*** 88,92 ****
  584. X  
  585. X  local int zqcmp(a, b)
  586. X! voidp *a, *b;           /* pointers to pointers to zip entries */
  587. X  /* Used by qsort() to compare entries in the zfile list.  */
  588. X  {
  589. X--- 88,92 ----
  590. X  
  591. X  local int zqcmp(a, b)
  592. X! const voidp *a, *b;       /* pointers to pointers to zip entries */
  593. X  /* Used by qsort() to compare entries in the zfile list.  */
  594. X  {
  595. X***************
  596. X*** 99,104 ****
  597. X  
  598. X  local int zbcmp(n, z)
  599. X! voidp *n;               /* string to search for */
  600. X! voidp far *z;           /* pointer to a pointer to a zip entry */
  601. X  /* Used by search() to compare a target to an entry in the zfile list. */
  602. X  {
  603. X--- 99,104 ----
  604. X  
  605. X  local int zbcmp(n, z)
  606. X! const voidp *n;         /* string to search for */
  607. X! const voidp far *z;     /* pointer to a pointer to a zip entry */
  608. X  /* Used by search() to compare a target to an entry in the zfile list. */
  609. X  {
  610. Xdiff -c2 -r zip19d.old/zipsplit.c zip19d.new/zipsplit.c
  611. X*** zip19d.old/zipsplit.c    Thu Aug 20 05:06:36 1992
  612. X--- zip19d.new/zipsplit.c    Sat Aug 22 17:19:08 1992
  613. X***************
  614. X*** 34,38 ****
  615. X     local void help(void);
  616. X     local extent simple(ulg *, extent, ulg, ulg);
  617. X!    local int descmp(voidp *, voidp *);
  618. X     local extent greedy(ulg *, extent, ulg, ulg);
  619. X     void main(int, char **);
  620. X--- 34,38 ----
  621. X     local void help(void);
  622. X     local extent simple(ulg *, extent, ulg, ulg);
  623. X!    local int descmp(const voidp *, const voidp *);
  624. X     local extent greedy(ulg *, extent, ulg, ulg);
  625. X     void main(int, char **);
  626. X***************
  627. X*** 172,176 ****
  628. X  
  629. X  local int descmp(a, b)
  630. X! voidp *a, *b;           /* pointers to pointers to ulg's to compare */
  631. X  /* Used by qsort() in greedy() to do a descending sort. */
  632. X  {
  633. X--- 172,176 ----
  634. X  
  635. X  local int descmp(a, b)
  636. X! const voidp *a, *b;     /* pointers to pointers to ulg's to compare */
  637. X  /* Used by qsort() in greedy() to do a descending sort. */
  638. X  {
  639. Xdiff -c2 -r zip19d.old/zipup.c zip19d.new/zipup.c
  640. X*** zip19d.old/zipup.c    Tue Aug 18 11:54:32 1992
  641. X--- zip19d.new/zipup.c    Sat Aug 22 18:51:42 1992
  642. X***************
  643. X*** 44,51 ****
  644. X  #    define fhow (O_RDONLY|O_BINARY)
  645. X  #  else /* !MSDOS */
  646. X!      int open OF((char *, int));
  647. X!      int read OF((int, char *, int));
  648. X!      int close OF((int));
  649. X!      int lseek OF((int, long, int));
  650. X  #    define fhow 0
  651. X  #  endif /* ?MSDOS */
  652. X--- 44,55 ----
  653. X  #    define fhow (O_RDONLY|O_BINARY)
  654. X  #  else /* !MSDOS */
  655. X! #    ifdef __386BSD__
  656. X! #      include <fcntl.h>
  657. X! #    else
  658. X!        int open OF((char *, int));
  659. X!        int read OF((int, char *, int));
  660. X!        int close OF((int));
  661. X!        int lseek OF((int, long, int));
  662. X! #    endif /* ?__386BSD__ */
  663. X  #    define fhow 0
  664. X  #  endif /* ?MSDOS */
  665. Xdiff -c2 -r zip19d.old/msdos/makefile.bor zip19d.new/msdos/makefile.bor
  666. X*** zip19d.old/msdos/makefile.bor    Thu Aug 20 04:19:56 1992
  667. X--- zip19d.new/msdos/makefile.bor    Sat Aug 22 16:17:18 1992
  668. X***************
  669. X*** 107,111 ****
  670. X  
  671. X  util_.obj:    util.c zip.h ziperr.h tailor.h
  672. X!     $(CC) -c $(UTILFLAGS)$* fileio.c
  673. X  
  674. X  crypt_.obj:    crypt.c zip.h ziperr.h tailor.h
  675. X--- 107,111 ----
  676. X  
  677. X  util_.obj:    util.c zip.h ziperr.h tailor.h
  678. X!     $(CC) -c $(UTILFLAGS)$* util.c
  679. X  
  680. X  crypt_.obj:    crypt.c zip.h ziperr.h tailor.h
  681. Xdiff -c2 -r zip19d.old/msdos/makefile.gcc zip19d.new/msdos/makefile.gcc
  682. X*** zip19d.old/msdos/makefile.gcc    Thu Aug 20 04:18:24 1992
  683. X--- zip19d.new/msdos/makefile.gcc    Sat Aug 22 20:14:16 1992
  684. X***************
  685. X*** 1,4 ****
  686. X  # Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
  687. X! # djgcc 1.06
  688. X  
  689. X  CRYPTO=
  690. X--- 1,4 ----
  691. X  # Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
  692. X! # djgcc 1.08
  693. X  
  694. X  CRYPTO=
  695. X***************
  696. X*** 8,16 ****
  697. X  #  *** For encryption version, remove the # at the front of next 3 lines ***
  698. X  #CRYPTO=crypt.o
  699. X! #CLOAK=zipcloak.exe
  700. X  #CRFLAG=-DCRYPT
  701. X  
  702. X  # ------------- djgcc -------------
  703. X! CFLAGS=-Wall -O2 -DNO_ASM $(CRFLAG)
  704. X  UTILFLAGS=-DUTIL $(CFLAGS) -o
  705. X  CC=gcc
  706. X--- 8,16 ----
  707. X  #  *** For encryption version, remove the # at the front of next 3 lines ***
  708. X  #CRYPTO=crypt.o
  709. X! #CLOAK=zipcloak
  710. X  #CRFLAG=-DCRYPT
  711. X  
  712. X  # ------------- djgcc -------------
  713. X! CFLAGS=-Wall -O2 $(CRFLAG)
  714. X  UTILFLAGS=-DUTIL $(CFLAGS) -o
  715. X  CC=gcc
  716. X***************
  717. X*** 20,24 ****
  718. X  # variables
  719. X  OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o $(CRYPTO)
  720. X! 
  721. X  OBJU = zipfile_.o zipup_.o fileio_.o util_.o globals.o
  722. X  OBJN = zipnote.o  $(OBJU)
  723. X--- 20,24 ----
  724. X  # variables
  725. X  OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o $(CRYPTO)
  726. X! OBJI = deflate.o trees.o bits.o match.o
  727. X  OBJU = zipfile_.o zipup_.o fileio_.o util_.o globals.o
  728. X  OBJN = zipnote.o  $(OBJU)
  729. X***************
  730. X*** 64,68 ****
  731. X  
  732. X  util_.o:    util.c zip.h ziperr.h tailor.h
  733. X!     $(CC) -c $(UTILFLAGS) $@ fileio.c
  734. X  
  735. X  crypt_.o:     crypt.c zip.h
  736. X--- 64,68 ----
  737. X  
  738. X  util_.o:    util.c zip.h ziperr.h tailor.h
  739. X!     $(CC) -c $(UTILFLAGS) $@ util.c
  740. X  
  741. X  crypt_.o:     crypt.c zip.h
  742. X***************
  743. X*** 85,89 ****
  744. X  
  745. X  zipsplit: $(OBJS)
  746. X!     $(LD) $(LDFAGS) $(OBJS) -o $@
  747. X      aout2exe $@
  748. X      del $@
  749. X--- 85,89 ----
  750. X  
  751. X  zipsplit: $(OBJS)
  752. X!     $(LD) $(LDFLAGS) $(OBJS) -o $@
  753. X      aout2exe $@
  754. X      del $@
  755. END_OF_FILE
  756. if test 12508 -ne `wc -c <'zip.dif'`; then
  757.     echo shar: \"'zip.dif'\" unpacked with wrong size!
  758. fi
  759. # end of 'zip.dif'
  760. fi
  761. echo shar: End of shell archive.
  762. exit 0
  763. -- 
  764.   Frank van der Linden.                        Internet : vdlinden@fwi.uva.nl
  765. * WARNING ---- The author of this message has once seen some AT&T Unix source *
  766. * code, so now this message is probably copyrighted by them! You have been    *
  767. * reading this entirely at your own risk..                                    *
  768.