rsync-2.5.0.patch-zlib 54 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277
  1. diff -ru2 ../zlib-1.1.2/ChangeLog ./ChangeLog
  2. --- ../zlib-1.1.2/ChangeLog Thu Mar 19 02:56:03 1998
  3. +++ ./zlib/ChangeLog Thu Jul 9 09:04:19 1998
  4. @@ -2,4 +2,52 @@
  5. ChangeLog file for zlib
  6. +Changes in 1.1.3 (9 July 1998)
  7. +- fix "an inflate input buffer bug that shows up on rare but persistent
  8. + occasions" (Mark)
  9. +- fix gzread and gztell for concatenated .gz files (Didier Le Botlan)
  10. +- fix gzseek(..., SEEK_SET) in write mode
  11. +- fix crc check after a gzeek (Frank Faubert)
  12. +- fix miniunzip when the last entry in a zip file is itself a zip file
  13. + (J Lillge)
  14. +- add contrib/asm586 and contrib/asm686 (Brian Raiter)
  15. + See http://www.muppetlabs.com/~breadbox/software/assembly.html
  16. +- add support for Delphi 3 in contrib/delphi (Bob Dellaca)
  17. +- add support for C++Builder 3 and Delphi 3 in contrib/delphi2 (Davide Moretti)
  18. +- do not exit prematurely in untgz if 0 at start of block (Magnus Holmgren)
  19. +- use macro EXTERN instead of extern to support DLL for BeOS (Sander Stoks)
  20. +- added a FAQ file
  21. +
  22. +- Support gzdopen on Mac with Metrowerks (Jason Linhart)
  23. +- Do not redefine Byte on Mac (Brad Pettit & Jason Linhart)
  24. +- define SEEK_END too if SEEK_SET is not defined (Albert Chin-A-Young)
  25. +- avoid some warnings with Borland C (Tom Tanner)
  26. +- fix a problem in contrib/minizip/zip.c for 16-bit MSDOS (Gilles Vollant)
  27. +- emulate utime() for WIN32 in contrib/untgz (Gilles Vollant)
  28. +- allow several arguments to configure (Tim Mooney, Frodo Looijaard)
  29. +- use libdir and includedir in Makefile.in (Tim Mooney)
  30. +- support shared libraries on OSF1 V4 (Tim Mooney)
  31. +- remove so_locations in "make clean" (Tim Mooney)
  32. +- fix maketree.c compilation error (Glenn, Mark)
  33. +- Python interface to zlib now in Python 1.5 (Jeremy Hylton)
  34. +- new Makefile.riscos (Rich Walker)
  35. +- initialize static descriptors in trees.c for embedded targets (Nick Smith)
  36. +- use "foo-gz" in example.c for RISCOS and VMS (Nick Smith)
  37. +- add the OS/2 files in Makefile.in too (Andrew Zabolotny)
  38. +- fix fdopen and halloc macros for Microsoft C 6.0 (Tom Lane)
  39. +- fix maketree.c to allow clean compilation of inffixed.h (Mark)
  40. +- fix parameter check in deflateCopy (Gunther Nikl)
  41. +- cleanup trees.c, use compressed_len only in debug mode (Christian Spieler)
  42. +- Many portability patches by Christian Spieler:
  43. + . zutil.c, zutil.h: added "const" for zmem*
  44. + . Make_vms.com: fixed some typos
  45. + . Make_vms.com: msdos/Makefile.*: removed zutil.h from some dependency lists
  46. + . msdos/Makefile.msc: remove "default rtl link library" info from obj files
  47. + . msdos/Makefile.*: use model-dependent name for the built zlib library
  48. + . msdos/Makefile.emx, nt/Makefile.emx, nt/Makefile.gcc:
  49. + new makefiles, for emx (DOS/OS2), emx&rsxnt and mingw32 (Windows 9x / NT)
  50. +- use define instead of typedef for Bytef also for MSC small/medium (Tom Lane)
  51. +- replace __far with _far for better portability (Christian Spieler, Tom Lane)
  52. +- fix test for errno.h in configure (Tim Newsham)
  53. +
  54. Changes in 1.1.2 (19 March 98)
  55. - added contrib/minzip, mini zip and unzip based on zlib (Gilles Vollant)
  56. diff -ru2 ../zlib-1.1.2/Makefile ./Makefile
  57. --- ../zlib-1.1.2/Makefile Thu Mar 19 06:55:01 1998
  58. +++ ./zlib/Makefile Thu Jul 9 09:07:18 1998
  59. @@ -23,6 +23,7 @@
  60. LDFLAGS=-L. -lz
  61. LDSHARED=$(CC)
  62. +CPP=$(CC) -E
  63. -VER=1.1.2
  64. +VER=1.1.3
  65. LIBS=libz.a
  66. SHAREDLIB=libz.so
  67. @@ -35,19 +36,25 @@
  68. prefix = /usr/local
  69. exec_prefix = ${prefix}
  70. +libdir = ${exec_prefix}/lib
  71. +includedir = ${prefix}/include
  72. OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  73. zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
  74. +OBJA =
  75. +# to use the asm code: make OBJA=match.o
  76. +
  77. TEST_OBJS = example.o minigzip.o
  78. -DISTFILES = README INDEX ChangeLog configure Make*[a-z0-9] *.[ch] descrip.mms \
  79. +DISTFILES = README FAQ INDEX ChangeLog configure Make*[a-z0-9] *.[ch] *.mms \
  80. algorithm.txt zlib.3 msdos/Make*[a-z0-9] msdos/zlib.def msdos/zlib.rc \
  81. - nt/Makefile.nt nt/zlib.dnt amiga/Make*.??? contrib/README.contrib \
  82. - contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \
  83. - contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/iostream/*.cpp \
  84. + nt/Make*[a-z0-9] nt/zlib.dnt amiga/Make*.??? os2/M*.os2 os2/zlib.def \
  85. + contrib/RE*.contrib contrib/*.txt contrib/asm386/*.asm contrib/asm386/*.c \
  86. + contrib/asm386/*.bat contrib/asm386/zlibvc.d?? contrib/asm[56]86/*.?86 \
  87. + contrib/asm[56]86/*.S contrib/iostream/*.cpp \
  88. contrib/iostream/*.h contrib/iostream2/*.h contrib/iostream2/*.cpp \
  89. contrib/untgz/Makefile contrib/untgz/*.c contrib/untgz/*.w32 \
  90. - contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]??
  91. -
  92. + contrib/minizip/[CM]*[pe] contrib/minizip/*.[ch] contrib/minizip/*.[td]?? \
  93. + contrib/delphi*/*.???
  94. all: example minigzip
  95. @@ -63,8 +70,14 @@
  96. fi
  97. -libz.a: $(OBJS)
  98. - $(AR) $@ $(OBJS)
  99. +libz.a: $(OBJS) $(OBJA)
  100. + $(AR) $@ $(OBJS) $(OBJA)
  101. -@ ($(RANLIB) $@ || true) >/dev/null 2>&1
  102. +match.o: match.S
  103. + $(CPP) match.S > _match.s
  104. + $(CC) -c _match.s
  105. + mv _match.o match.o
  106. + rm -f _match.s
  107. +
  108. $(SHAREDLIB).$(VER): $(OBJS)
  109. $(LDSHARED) -o $@ $(OBJS)
  110. @@ -80,12 +93,12 @@
  111. install: $(LIBS)
  112. - -@if [ ! -d $(prefix)/include ]; then mkdir $(prefix)/include; fi
  113. - -@if [ ! -d $(exec_prefix)/lib ]; then mkdir $(exec_prefix)/lib; fi
  114. - cp zlib.h zconf.h $(prefix)/include
  115. - chmod 644 $(prefix)/include/zlib.h $(prefix)/include/zconf.h
  116. - cp $(LIBS) $(exec_prefix)/lib
  117. - cd $(exec_prefix)/lib; chmod 755 $(LIBS)
  118. - -@(cd $(exec_prefix)/lib; $(RANLIB) libz.a || true) >/dev/null 2>&1
  119. - cd $(exec_prefix)/lib; if test -f $(SHAREDLIB).$(VER); then \
  120. + -@if [ ! -d $(includedir) ]; then mkdir $(includedir); fi
  121. + -@if [ ! -d $(libdir) ]; then mkdir $(libdir); fi
  122. + cp zlib.h zconf.h $(includedir)
  123. + chmod 644 $(includedir)/zlib.h $(includedir)/zconf.h
  124. + cp $(LIBS) $(libdir)
  125. + cd $(libdir); chmod 755 $(LIBS)
  126. + -@(cd $(libdir); $(RANLIB) libz.a || true) >/dev/null 2>&1
  127. + cd $(libdir); if test -f $(SHAREDLIB).$(VER); then \
  128. rm -f $(SHAREDLIB) $(SHAREDLIB).1; \
  129. ln -s $(SHAREDLIB).$(VER) $(SHAREDLIB); \
  130. @@ -97,5 +110,5 @@
  131. uninstall:
  132. - cd $(prefix)/include; \
  133. + cd $(includedir); \
  134. v=$(VER); \
  135. if test -f zlib.h; then \
  136. @@ -103,5 +116,5 @@
  137. rm -f zlib.h zconf.h; \
  138. fi; \
  139. - cd $(exec_prefix)/lib; rm -f libz.a; \
  140. + cd $(libdir); rm -f libz.a; \
  141. if test -f $(SHAREDLIB).$$v; then \
  142. rm -f $(SHAREDLIB).$$v $(SHAREDLIB) $(SHAREDLIB).1; \
  143. @@ -109,5 +122,6 @@
  144. clean:
  145. - rm -f *.o *~ example minigzip libz.a libz.so* foo.gz
  146. + rm -f *.o *~ example minigzip libz.a libz.so* foo.gz so_locations \
  147. + _match.s maketree
  148. distclean: clean
  149. diff -ru2 ../zlib-1.1.2/README ./README
  150. --- ../zlib-1.1.2/README Thu Mar 19 06:46:31 1998
  151. +++ ./zlib/README Thu Jul 9 09:04:32 1998
  152. @@ -1,3 +1,3 @@
  153. -zlib 1.1.2 is a general purpose data compression library. All the code
  154. +zlib 1.1.3 is a general purpose data compression library. All the code
  155. is thread safe. The data format used by the zlib library
  156. is described by RFCs (Request for Comments) 1950 to 1952 in the files
  157. @@ -15,33 +15,39 @@
  158. To compile all files and run the test program, follow the instructions
  159. given at the top of Makefile. In short "make test; make install"
  160. -should work for most machines. For MSDOS, use one of the special
  161. -makefiles such as Makefile.msc; for VMS, use Make_vms.com or descrip.mms.
  162. +should work for most machines. For Unix: "configure; make test; make install"
  163. +For MSDOS, use one of the special makefiles such as Makefile.msc.
  164. +For VMS, use Make_vms.com or descrip.mms.
  165. -Questions about zlib should be sent to <zlib@quest.jpl.nasa.gov> or,
  166. -if this fails, to the addresses given below in the Copyright section.
  167. +Questions about zlib should be sent to <zlib@quest.jpl.nasa.gov>, or to
  168. +Gilles Vollant <info@winimage.com> for the Windows DLL version.
  169. The zlib home page is http://www.cdrom.com/pub/infozip/zlib/
  170. The official zlib ftp site is ftp://ftp.cdrom.com/pub/infozip/zlib/
  171. +Before reporting a problem, please check those sites to verify that
  172. +you have the latest version of zlib; otherwise get the latest version and
  173. +check whether the problem still exists or not.
  174. +
  175. Mark Nelson <markn@tiny.com> wrote an article about zlib for the Jan. 1997
  176. issue of Dr. Dobb's Journal; a copy of the article is available in
  177. http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm
  178. -The changes made in version 1.1.2 are documented in the file ChangeLog.
  179. -The main changes since 1.1.1 are:
  180. +The changes made in version 1.1.3 are documented in the file ChangeLog.
  181. +The main changes since 1.1.2 are:
  182. -- added contrib/minzip, mini zip and unzip based on zlib (Gilles Vollant)
  183. - See http://www.winimage.com/zLibDll/unzip.html
  184. -- preinitialize the inflate tables for fixed codes, to make the code
  185. - completely thread safe (Mark)
  186. -- some simplifications and slight speed-up to the inflate code (Mark)
  187. -- fix gzeof on non-compressed files (Allan Schrum)
  188. -- add -std1 option in configure for OSF1 to fix gzprintf (Martin Mokrejs)
  189. -- use default value of 4K for Z_BUFSIZE for 16-bit MSDOS (Tim Wegner + Glenn)
  190. -- added os2/Makefile.def and os2/zlib.def (Andrew Zabolotny)
  191. -- add shared lib support for UNIX_SV4.2MP (MATSUURA Takanori)
  192. -- do not wrap extern "C" around system includes (Tom Lane)
  193. -- added amiga/Makefile.pup for Amiga powerUP SAS/C PPC (Andreas Kleinert)
  194. -- allow "make install prefix=..." even after configure (Glenn Randers-Pehrson)
  195. -- allow "configure --prefix $HOME" (Tim Mooney)
  196. +- fix "an inflate input buffer bug that shows up on rare but persistent
  197. + occasions" (Mark)
  198. +- fix gzread and gztell for concatenated .gz files (Didier Le Botlan)
  199. +- fix gzseek(..., SEEK_SET) in write mode
  200. +- fix crc check after a gzeek (Frank Faubert)
  201. +- fix miniunzip when the last entry in a zip file is itself a zip file
  202. + (J Lillge)
  203. +- add contrib/asm586 and contrib/asm686 (Brian Raiter)
  204. + See http://www.muppetlabs.com/~breadbox/software/assembly.html
  205. +- add support for Delphi 3 in contrib/delphi (Bob Dellaca)
  206. +- add support for C++Builder 3 and Delphi 3 in contrib/delphi2 (Davide Moretti)
  207. +- do not exit prematurely in untgz if 0 at start of block (Magnus Holmgren)
  208. +- use macro EXTERN instead of extern to support DLL for BeOS (Sander Stoks)
  209. +- added a FAQ file
  210. +plus many changes for portability.
  211. Unsupported third party contributions are provided in directory "contrib".
  212. @@ -56,6 +62,6 @@
  213. A Python interface to zlib written by A.M. Kuchling <amk@magnet.com>
  214. -is available from the Python Software Association sites, such as:
  215. -ftp://ftp.python.org/pub/python/contrib/Encoding/zlib*.tar.gz
  216. +is available in Python 1.5 and later versions, see
  217. +http://www.python.org/doc/lib/module-zlib.html
  218. A zlib binding for TCL written by Andreas Kupries <a.kupries@westend.com>
  219. @@ -78,6 +84,6 @@
  220. From Visual Basic, you can call the DLL functions which do not take
  221. a structure as argument: compress, uncompress and all gz* functions.
  222. - See contrib/visual-basic.txt for more information.
  223. - I don't know how to handle structures in Visual Basic, sorry.
  224. + See contrib/visual-basic.txt for more information, or get
  225. + http://www.tcfb.com/dowseware/cmp-z-it.zip
  226. - For 64-bit Irix, deflate.c must be compiled without any optimization.
  227. @@ -94,12 +100,11 @@
  228. with other compilers. Use "make test" to check your compiler.
  229. -- For shared memory multiprocessors, the decompression code assumes that
  230. - writes to pointers are atomic. Also the functions zalloc and zfree passed
  231. - to deflateInit must be multi-threaded in this case.
  232. -
  233. - gzdopen is not supported on RISCOS, BEOS and by some Mac compilers.
  234. - For Turbo C the small model is supported only with reduced performance to
  235. avoid any far allocation; it was tested with -DMAX_WBITS=11 -DMAX_MEM_LEVEL=3
  236. +
  237. +- For PalmOs, see http://www.cs.uit.no/~perm/PASTA/pilot/software.html
  238. + Per Harald Myrvang <perm@stud.cs.uit.no>
  239. diff -ru2 ../zlib-1.1.2/deflate.c ./deflate.c
  240. --- ../zlib-1.1.2/deflate.c Thu Mar 19 06:47:47 1998
  241. +++ ./zlib/deflate.c Thu Jul 9 09:06:12 1998
  242. @@ -53,5 +53,5 @@
  243. const char deflate_copyright[] =
  244. - " deflate 1.1.2 Copyright 1995-1998 Jean-loup Gailly ";
  245. + " deflate 1.1.3 Copyright 1995-1998 Jean-loup Gailly ";
  246. /*
  247. If you use the zlib library in a product, an acknowledgment is welcome
  248. @@ -609,9 +609,11 @@
  249. ushf *overlay;
  250. - ss = source->state;
  251. - if (source == Z_NULL || dest == Z_NULL || ss == Z_NULL) {
  252. + if (source == Z_NULL || dest == Z_NULL || source->state == Z_NULL) {
  253. return Z_STREAM_ERROR;
  254. }
  255. +
  256. + ss = source->state;
  257. +
  258. *dest = *source;
  259. diff -ru2 ../zlib-1.1.2/deflate.h ./deflate.h
  260. --- ../zlib-1.1.2/deflate.h Fri Feb 27 12:10:54 1998
  261. +++ ./zlib/deflate.h Wed Jul 8 09:30:19 1998
  262. @@ -231,10 +231,10 @@
  263. ulg opt_len; /* bit length of current block with optimal trees */
  264. ulg static_len; /* bit length of current block with static trees */
  265. - ulg compressed_len; /* total bit length of compressed file */
  266. uInt matches; /* number of string matches in current block */
  267. int last_eob_len; /* bit length of EOB code for last block */
  268. #ifdef DEBUG
  269. - ulg bits_sent; /* bit length of the compressed data */
  270. + ulg compressed_len; /* total bit length of compressed file mod 2^32 */
  271. + ulg bits_sent; /* bit length of compressed data sent mod 2^32 */
  272. #endif
  273. @@ -269,5 +269,5 @@
  274. void _tr_init OF((deflate_state *s));
  275. int _tr_tally OF((deflate_state *s, unsigned dist, unsigned lc));
  276. -ulg _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len,
  277. +void _tr_flush_block OF((deflate_state *s, charf *buf, ulg stored_len,
  278. int eof));
  279. void _tr_align OF((deflate_state *s));
  280. diff -ru2 ../zlib-1.1.2/infblock.c ./infblock.c
  281. --- ../zlib-1.1.2/infblock.c Mon Mar 16 10:11:41 1998
  282. +++ ./zlib/infblock.c Mon Jun 8 10:06:16 1998
  283. @@ -346,11 +346,4 @@
  284. break;
  285. }
  286. - if (k > 7) /* return unused byte, if any */
  287. - {
  288. - Assert(k < 16, "inflate_codes grabbed too many bytes")
  289. - k -= 8;
  290. - n++;
  291. - p--; /* can always return one */
  292. - }
  293. s->mode = DRY;
  294. case DRY:
  295. diff -ru2 ../zlib-1.1.2/infcodes.c ./infcodes.c
  296. --- ../zlib-1.1.2/infcodes.c Mon Mar 16 10:10:33 1998
  297. +++ ./zlib/infcodes.c Mon Jun 8 10:06:16 1998
  298. @@ -222,4 +222,11 @@
  299. break;
  300. case WASH: /* o: got eob, possibly more output */
  301. + if (k > 7) /* return unused byte, if any */
  302. + {
  303. + Assert(k < 16, "inflate_codes grabbed too many bytes")
  304. + k -= 8;
  305. + n++;
  306. + p--; /* can always return one */
  307. + }
  308. FLUSH
  309. if (s->read != s->write)
  310. diff -ru2 ../zlib-1.1.2/inffixed.h ./inffixed.h
  311. --- ../zlib-1.1.2/inffixed.h Mon Mar 16 10:23:53 1998
  312. +++ ./zlib/inffixed.h Tue Jun 16 04:29:49 1998
  313. @@ -11,115 +11,141 @@
  314. local uInt fixed_bd = 5;
  315. local inflate_huft fixed_tl[] = {
  316. - {{96,7},256}, {{0,8},80}, {{0,8},16}, {{84,8},115}, {{82,7},31},
  317. - {{0,8},112}, {{0,8},48}, {{0,9},192}, {{80,7},10}, {{0,8},96},
  318. - {{0,8},32}, {{0,9},160}, {{0,8},0}, {{0,8},128}, {{0,8},64},
  319. - {{0,9},224}, {{80,7},6}, {{0,8},88}, {{0,8},24}, {{0,9},144},
  320. - {{83,7},59}, {{0,8},120}, {{0,8},56}, {{0,9},208}, {{81,7},17},
  321. - {{0,8},104}, {{0,8},40}, {{0,9},176}, {{0,8},8}, {{0,8},136},
  322. - {{0,8},72}, {{0,9},240}, {{80,7},4}, {{0,8},84}, {{0,8},20},
  323. - {{85,8},227}, {{83,7},43}, {{0,8},116}, {{0,8},52}, {{0,9},200},
  324. - {{81,7},13}, {{0,8},100}, {{0,8},36}, {{0,9},168}, {{0,8},4},
  325. - {{0,8},132}, {{0,8},68}, {{0,9},232}, {{80,7},8}, {{0,8},92},
  326. - {{0,8},28}, {{0,9},152}, {{84,7},83}, {{0,8},124}, {{0,8},60},
  327. - {{0,9},216}, {{82,7},23}, {{0,8},108}, {{0,8},44}, {{0,9},184},
  328. - {{0,8},12}, {{0,8},140}, {{0,8},76}, {{0,9},248}, {{80,7},3},
  329. - {{0,8},82}, {{0,8},18}, {{85,8},163}, {{83,7},35}, {{0,8},114},
  330. - {{0,8},50}, {{0,9},196}, {{81,7},11}, {{0,8},98}, {{0,8},34},
  331. - {{0,9},164}, {{0,8},2}, {{0,8},130}, {{0,8},66}, {{0,9},228},
  332. - {{80,7},7}, {{0,8},90}, {{0,8},26}, {{0,9},148}, {{84,7},67},
  333. - {{0,8},122}, {{0,8},58}, {{0,9},212}, {{82,7},19}, {{0,8},106},
  334. - {{0,8},42}, {{0,9},180}, {{0,8},10}, {{0,8},138}, {{0,8},74},
  335. - {{0,9},244}, {{80,7},5}, {{0,8},86}, {{0,8},22}, {{192,8},0},
  336. - {{83,7},51}, {{0,8},118}, {{0,8},54}, {{0,9},204}, {{81,7},15},
  337. - {{0,8},102}, {{0,8},38}, {{0,9},172}, {{0,8},6}, {{0,8},134},
  338. - {{0,8},70}, {{0,9},236}, {{80,7},9}, {{0,8},94}, {{0,8},30},
  339. - {{0,9},156}, {{84,7},99}, {{0,8},126}, {{0,8},62}, {{0,9},220},
  340. - {{82,7},27}, {{0,8},110}, {{0,8},46}, {{0,9},188}, {{0,8},14},
  341. - {{0,8},142}, {{0,8},78}, {{0,9},252}, {{96,7},256}, {{0,8},81},
  342. - {{0,8},17}, {{85,8},131}, {{82,7},31}, {{0,8},113}, {{0,8},49},
  343. - {{0,9},194}, {{80,7},10}, {{0,8},97}, {{0,8},33}, {{0,9},162},
  344. - {{0,8},1}, {{0,8},129}, {{0,8},65}, {{0,9},226}, {{80,7},6},
  345. - {{0,8},89}, {{0,8},25}, {{0,9},146}, {{83,7},59}, {{0,8},121},
  346. - {{0,8},57}, {{0,9},210}, {{81,7},17}, {{0,8},105}, {{0,8},41},
  347. - {{0,9},178}, {{0,8},9}, {{0,8},137}, {{0,8},73}, {{0,9},242},
  348. - {{80,7},4}, {{0,8},85}, {{0,8},21}, {{80,8},258}, {{83,7},43},
  349. - {{0,8},117}, {{0,8},53}, {{0,9},202}, {{81,7},13}, {{0,8},101},
  350. - {{0,8},37}, {{0,9},170}, {{0,8},5}, {{0,8},133}, {{0,8},69},
  351. - {{0,9},234}, {{80,7},8}, {{0,8},93}, {{0,8},29}, {{0,9},154},
  352. - {{84,7},83}, {{0,8},125}, {{0,8},61}, {{0,9},218}, {{82,7},23},
  353. - {{0,8},109}, {{0,8},45}, {{0,9},186}, {{0,8},13}, {{0,8},141},
  354. - {{0,8},77}, {{0,9},250}, {{80,7},3}, {{0,8},83}, {{0,8},19},
  355. - {{85,8},195}, {{83,7},35}, {{0,8},115}, {{0,8},51}, {{0,9},198},
  356. - {{81,7},11}, {{0,8},99}, {{0,8},35}, {{0,9},166}, {{0,8},3},
  357. - {{0,8},131}, {{0,8},67}, {{0,9},230}, {{80,7},7}, {{0,8},91},
  358. - {{0,8},27}, {{0,9},150}, {{84,7},67}, {{0,8},123}, {{0,8},59},
  359. - {{0,9},214}, {{82,7},19}, {{0,8},107}, {{0,8},43}, {{0,9},182},
  360. - {{0,8},11}, {{0,8},139}, {{0,8},75}, {{0,9},246}, {{80,7},5},
  361. - {{0,8},87}, {{0,8},23}, {{192,8},0}, {{83,7},51}, {{0,8},119},
  362. - {{0,8},55}, {{0,9},206}, {{81,7},15}, {{0,8},103}, {{0,8},39},
  363. - {{0,9},174}, {{0,8},7}, {{0,8},135}, {{0,8},71}, {{0,9},238},
  364. - {{80,7},9}, {{0,8},95}, {{0,8},31}, {{0,9},158}, {{84,7},99},
  365. - {{0,8},127}, {{0,8},63}, {{0,9},222}, {{82,7},27}, {{0,8},111},
  366. - {{0,8},47}, {{0,9},190}, {{0,8},15}, {{0,8},143}, {{0,8},79},
  367. - {{0,9},254}, {{96,7},256}, {{0,8},80}, {{0,8},16}, {{84,8},115},
  368. - {{82,7},31}, {{0,8},112}, {{0,8},48}, {{0,9},193}, {{80,7},10},
  369. - {{0,8},96}, {{0,8},32}, {{0,9},161}, {{0,8},0}, {{0,8},128},
  370. - {{0,8},64}, {{0,9},225}, {{80,7},6}, {{0,8},88}, {{0,8},24},
  371. - {{0,9},145}, {{83,7},59}, {{0,8},120}, {{0,8},56}, {{0,9},209},
  372. - {{81,7},17}, {{0,8},104}, {{0,8},40}, {{0,9},177}, {{0,8},8},
  373. - {{0,8},136}, {{0,8},72}, {{0,9},241}, {{80,7},4}, {{0,8},84},
  374. - {{0,8},20}, {{85,8},227}, {{83,7},43}, {{0,8},116}, {{0,8},52},
  375. - {{0,9},201}, {{81,7},13}, {{0,8},100}, {{0,8},36}, {{0,9},169},
  376. - {{0,8},4}, {{0,8},132}, {{0,8},68}, {{0,9},233}, {{80,7},8},
  377. - {{0,8},92}, {{0,8},28}, {{0,9},153}, {{84,7},83}, {{0,8},124},
  378. - {{0,8},60}, {{0,9},217}, {{82,7},23}, {{0,8},108}, {{0,8},44},
  379. - {{0,9},185}, {{0,8},12}, {{0,8},140}, {{0,8},76}, {{0,9},249},
  380. - {{80,7},3}, {{0,8},82}, {{0,8},18}, {{85,8},163}, {{83,7},35},
  381. - {{0,8},114}, {{0,8},50}, {{0,9},197}, {{81,7},11}, {{0,8},98},
  382. - {{0,8},34}, {{0,9},165}, {{0,8},2}, {{0,8},130}, {{0,8},66},
  383. - {{0,9},229}, {{80,7},7}, {{0,8},90}, {{0,8},26}, {{0,9},149},
  384. - {{84,7},67}, {{0,8},122}, {{0,8},58}, {{0,9},213}, {{82,7},19},
  385. - {{0,8},106}, {{0,8},42}, {{0,9},181}, {{0,8},10}, {{0,8},138},
  386. - {{0,8},74}, {{0,9},245}, {{80,7},5}, {{0,8},86}, {{0,8},22},
  387. - {{192,8},0}, {{83,7},51}, {{0,8},118}, {{0,8},54}, {{0,9},205},
  388. - {{81,7},15}, {{0,8},102}, {{0,8},38}, {{0,9},173}, {{0,8},6},
  389. - {{0,8},134}, {{0,8},70}, {{0,9},237}, {{80,7},9}, {{0,8},94},
  390. - {{0,8},30}, {{0,9},157}, {{84,7},99}, {{0,8},126}, {{0,8},62},
  391. - {{0,9},221}, {{82,7},27}, {{0,8},110}, {{0,8},46}, {{0,9},189},
  392. - {{0,8},14}, {{0,8},142}, {{0,8},78}, {{0,9},253}, {{96,7},256},
  393. - {{0,8},81}, {{0,8},17}, {{85,8},131}, {{82,7},31}, {{0,8},113},
  394. - {{0,8},49}, {{0,9},195}, {{80,7},10}, {{0,8},97}, {{0,8},33},
  395. - {{0,9},163}, {{0,8},1}, {{0,8},129}, {{0,8},65}, {{0,9},227},
  396. - {{80,7},6}, {{0,8},89}, {{0,8},25}, {{0,9},147}, {{83,7},59},
  397. - {{0,8},121}, {{0,8},57}, {{0,9},211}, {{81,7},17}, {{0,8},105},
  398. - {{0,8},41}, {{0,9},179}, {{0,8},9}, {{0,8},137}, {{0,8},73},
  399. - {{0,9},243}, {{80,7},4}, {{0,8},85}, {{0,8},21}, {{80,8},258},
  400. - {{83,7},43}, {{0,8},117}, {{0,8},53}, {{0,9},203}, {{81,7},13},
  401. - {{0,8},101}, {{0,8},37}, {{0,9},171}, {{0,8},5}, {{0,8},133},
  402. - {{0,8},69}, {{0,9},235}, {{80,7},8}, {{0,8},93}, {{0,8},29},
  403. - {{0,9},155}, {{84,7},83}, {{0,8},125}, {{0,8},61}, {{0,9},219},
  404. - {{82,7},23}, {{0,8},109}, {{0,8},45}, {{0,9},187}, {{0,8},13},
  405. - {{0,8},141}, {{0,8},77}, {{0,9},251}, {{80,7},3}, {{0,8},83},
  406. - {{0,8},19}, {{85,8},195}, {{83,7},35}, {{0,8},115}, {{0,8},51},
  407. - {{0,9},199}, {{81,7},11}, {{0,8},99}, {{0,8},35}, {{0,9},167},
  408. - {{0,8},3}, {{0,8},131}, {{0,8},67}, {{0,9},231}, {{80,7},7},
  409. - {{0,8},91}, {{0,8},27}, {{0,9},151}, {{84,7},67}, {{0,8},123},
  410. - {{0,8},59}, {{0,9},215}, {{82,7},19}, {{0,8},107}, {{0,8},43},
  411. - {{0,9},183}, {{0,8},11}, {{0,8},139}, {{0,8},75}, {{0,9},247},
  412. - {{80,7},5}, {{0,8},87}, {{0,8},23}, {{192,8},0}, {{83,7},51},
  413. - {{0,8},119}, {{0,8},55}, {{0,9},207}, {{81,7},15}, {{0,8},103},
  414. - {{0,8},39}, {{0,9},175}, {{0,8},7}, {{0,8},135}, {{0,8},71},
  415. - {{0,9},239}, {{80,7},9}, {{0,8},95}, {{0,8},31}, {{0,9},159},
  416. - {{84,7},99}, {{0,8},127}, {{0,8},63}, {{0,9},223}, {{82,7},27},
  417. - {{0,8},111}, {{0,8},47}, {{0,9},191}, {{0,8},15}, {{0,8},143},
  418. - {{0,8},79}, {{0,9},255}
  419. + {{{96,7}},256}, {{{0,8}},80}, {{{0,8}},16}, {{{84,8}},115},
  420. + {{{82,7}},31}, {{{0,8}},112}, {{{0,8}},48}, {{{0,9}},192},
  421. + {{{80,7}},10}, {{{0,8}},96}, {{{0,8}},32}, {{{0,9}},160},
  422. + {{{0,8}},0}, {{{0,8}},128}, {{{0,8}},64}, {{{0,9}},224},
  423. + {{{80,7}},6}, {{{0,8}},88}, {{{0,8}},24}, {{{0,9}},144},
  424. + {{{83,7}},59}, {{{0,8}},120}, {{{0,8}},56}, {{{0,9}},208},
  425. + {{{81,7}},17}, {{{0,8}},104}, {{{0,8}},40}, {{{0,9}},176},
  426. + {{{0,8}},8}, {{{0,8}},136}, {{{0,8}},72}, {{{0,9}},240},
  427. + {{{80,7}},4}, {{{0,8}},84}, {{{0,8}},20}, {{{85,8}},227},
  428. + {{{83,7}},43}, {{{0,8}},116}, {{{0,8}},52}, {{{0,9}},200},
  429. + {{{81,7}},13}, {{{0,8}},100}, {{{0,8}},36}, {{{0,9}},168},
  430. + {{{0,8}},4}, {{{0,8}},132}, {{{0,8}},68}, {{{0,9}},232},
  431. + {{{80,7}},8}, {{{0,8}},92}, {{{0,8}},28}, {{{0,9}},152},
  432. + {{{84,7}},83}, {{{0,8}},124}, {{{0,8}},60}, {{{0,9}},216},
  433. + {{{82,7}},23}, {{{0,8}},108}, {{{0,8}},44}, {{{0,9}},184},
  434. + {{{0,8}},12}, {{{0,8}},140}, {{{0,8}},76}, {{{0,9}},248},
  435. + {{{80,7}},3}, {{{0,8}},82}, {{{0,8}},18}, {{{85,8}},163},
  436. + {{{83,7}},35}, {{{0,8}},114}, {{{0,8}},50}, {{{0,9}},196},
  437. + {{{81,7}},11}, {{{0,8}},98}, {{{0,8}},34}, {{{0,9}},164},
  438. + {{{0,8}},2}, {{{0,8}},130}, {{{0,8}},66}, {{{0,9}},228},
  439. + {{{80,7}},7}, {{{0,8}},90}, {{{0,8}},26}, {{{0,9}},148},
  440. + {{{84,7}},67}, {{{0,8}},122}, {{{0,8}},58}, {{{0,9}},212},
  441. + {{{82,7}},19}, {{{0,8}},106}, {{{0,8}},42}, {{{0,9}},180},
  442. + {{{0,8}},10}, {{{0,8}},138}, {{{0,8}},74}, {{{0,9}},244},
  443. + {{{80,7}},5}, {{{0,8}},86}, {{{0,8}},22}, {{{192,8}},0},
  444. + {{{83,7}},51}, {{{0,8}},118}, {{{0,8}},54}, {{{0,9}},204},
  445. + {{{81,7}},15}, {{{0,8}},102}, {{{0,8}},38}, {{{0,9}},172},
  446. + {{{0,8}},6}, {{{0,8}},134}, {{{0,8}},70}, {{{0,9}},236},
  447. + {{{80,7}},9}, {{{0,8}},94}, {{{0,8}},30}, {{{0,9}},156},
  448. + {{{84,7}},99}, {{{0,8}},126}, {{{0,8}},62}, {{{0,9}},220},
  449. + {{{82,7}},27}, {{{0,8}},110}, {{{0,8}},46}, {{{0,9}},188},
  450. + {{{0,8}},14}, {{{0,8}},142}, {{{0,8}},78}, {{{0,9}},252},
  451. + {{{96,7}},256}, {{{0,8}},81}, {{{0,8}},17}, {{{85,8}},131},
  452. + {{{82,7}},31}, {{{0,8}},113}, {{{0,8}},49}, {{{0,9}},194},
  453. + {{{80,7}},10}, {{{0,8}},97}, {{{0,8}},33}, {{{0,9}},162},
  454. + {{{0,8}},1}, {{{0,8}},129}, {{{0,8}},65}, {{{0,9}},226},
  455. + {{{80,7}},6}, {{{0,8}},89}, {{{0,8}},25}, {{{0,9}},146},
  456. + {{{83,7}},59}, {{{0,8}},121}, {{{0,8}},57}, {{{0,9}},210},
  457. + {{{81,7}},17}, {{{0,8}},105}, {{{0,8}},41}, {{{0,9}},178},
  458. + {{{0,8}},9}, {{{0,8}},137}, {{{0,8}},73}, {{{0,9}},242},
  459. + {{{80,7}},4}, {{{0,8}},85}, {{{0,8}},21}, {{{80,8}},258},
  460. + {{{83,7}},43}, {{{0,8}},117}, {{{0,8}},53}, {{{0,9}},202},
  461. + {{{81,7}},13}, {{{0,8}},101}, {{{0,8}},37}, {{{0,9}},170},
  462. + {{{0,8}},5}, {{{0,8}},133}, {{{0,8}},69}, {{{0,9}},234},
  463. + {{{80,7}},8}, {{{0,8}},93}, {{{0,8}},29}, {{{0,9}},154},
  464. + {{{84,7}},83}, {{{0,8}},125}, {{{0,8}},61}, {{{0,9}},218},
  465. + {{{82,7}},23}, {{{0,8}},109}, {{{0,8}},45}, {{{0,9}},186},
  466. + {{{0,8}},13}, {{{0,8}},141}, {{{0,8}},77}, {{{0,9}},250},
  467. + {{{80,7}},3}, {{{0,8}},83}, {{{0,8}},19}, {{{85,8}},195},
  468. + {{{83,7}},35}, {{{0,8}},115}, {{{0,8}},51}, {{{0,9}},198},
  469. + {{{81,7}},11}, {{{0,8}},99}, {{{0,8}},35}, {{{0,9}},166},
  470. + {{{0,8}},3}, {{{0,8}},131}, {{{0,8}},67}, {{{0,9}},230},
  471. + {{{80,7}},7}, {{{0,8}},91}, {{{0,8}},27}, {{{0,9}},150},
  472. + {{{84,7}},67}, {{{0,8}},123}, {{{0,8}},59}, {{{0,9}},214},
  473. + {{{82,7}},19}, {{{0,8}},107}, {{{0,8}},43}, {{{0,9}},182},
  474. + {{{0,8}},11}, {{{0,8}},139}, {{{0,8}},75}, {{{0,9}},246},
  475. + {{{80,7}},5}, {{{0,8}},87}, {{{0,8}},23}, {{{192,8}},0},
  476. + {{{83,7}},51}, {{{0,8}},119}, {{{0,8}},55}, {{{0,9}},206},
  477. + {{{81,7}},15}, {{{0,8}},103}, {{{0,8}},39}, {{{0,9}},174},
  478. + {{{0,8}},7}, {{{0,8}},135}, {{{0,8}},71}, {{{0,9}},238},
  479. + {{{80,7}},9}, {{{0,8}},95}, {{{0,8}},31}, {{{0,9}},158},
  480. + {{{84,7}},99}, {{{0,8}},127}, {{{0,8}},63}, {{{0,9}},222},
  481. + {{{82,7}},27}, {{{0,8}},111}, {{{0,8}},47}, {{{0,9}},190},
  482. + {{{0,8}},15}, {{{0,8}},143}, {{{0,8}},79}, {{{0,9}},254},
  483. + {{{96,7}},256}, {{{0,8}},80}, {{{0,8}},16}, {{{84,8}},115},
  484. + {{{82,7}},31}, {{{0,8}},112}, {{{0,8}},48}, {{{0,9}},193},
  485. + {{{80,7}},10}, {{{0,8}},96}, {{{0,8}},32}, {{{0,9}},161},
  486. + {{{0,8}},0}, {{{0,8}},128}, {{{0,8}},64}, {{{0,9}},225},
  487. + {{{80,7}},6}, {{{0,8}},88}, {{{0,8}},24}, {{{0,9}},145},
  488. + {{{83,7}},59}, {{{0,8}},120}, {{{0,8}},56}, {{{0,9}},209},
  489. + {{{81,7}},17}, {{{0,8}},104}, {{{0,8}},40}, {{{0,9}},177},
  490. + {{{0,8}},8}, {{{0,8}},136}, {{{0,8}},72}, {{{0,9}},241},
  491. + {{{80,7}},4}, {{{0,8}},84}, {{{0,8}},20}, {{{85,8}},227},
  492. + {{{83,7}},43}, {{{0,8}},116}, {{{0,8}},52}, {{{0,9}},201},
  493. + {{{81,7}},13}, {{{0,8}},100}, {{{0,8}},36}, {{{0,9}},169},
  494. + {{{0,8}},4}, {{{0,8}},132}, {{{0,8}},68}, {{{0,9}},233},
  495. + {{{80,7}},8}, {{{0,8}},92}, {{{0,8}},28}, {{{0,9}},153},
  496. + {{{84,7}},83}, {{{0,8}},124}, {{{0,8}},60}, {{{0,9}},217},
  497. + {{{82,7}},23}, {{{0,8}},108}, {{{0,8}},44}, {{{0,9}},185},
  498. + {{{0,8}},12}, {{{0,8}},140}, {{{0,8}},76}, {{{0,9}},249},
  499. + {{{80,7}},3}, {{{0,8}},82}, {{{0,8}},18}, {{{85,8}},163},
  500. + {{{83,7}},35}, {{{0,8}},114}, {{{0,8}},50}, {{{0,9}},197},
  501. + {{{81,7}},11}, {{{0,8}},98}, {{{0,8}},34}, {{{0,9}},165},
  502. + {{{0,8}},2}, {{{0,8}},130}, {{{0,8}},66}, {{{0,9}},229},
  503. + {{{80,7}},7}, {{{0,8}},90}, {{{0,8}},26}, {{{0,9}},149},
  504. + {{{84,7}},67}, {{{0,8}},122}, {{{0,8}},58}, {{{0,9}},213},
  505. + {{{82,7}},19}, {{{0,8}},106}, {{{0,8}},42}, {{{0,9}},181},
  506. + {{{0,8}},10}, {{{0,8}},138}, {{{0,8}},74}, {{{0,9}},245},
  507. + {{{80,7}},5}, {{{0,8}},86}, {{{0,8}},22}, {{{192,8}},0},
  508. + {{{83,7}},51}, {{{0,8}},118}, {{{0,8}},54}, {{{0,9}},205},
  509. + {{{81,7}},15}, {{{0,8}},102}, {{{0,8}},38}, {{{0,9}},173},
  510. + {{{0,8}},6}, {{{0,8}},134}, {{{0,8}},70}, {{{0,9}},237},
  511. + {{{80,7}},9}, {{{0,8}},94}, {{{0,8}},30}, {{{0,9}},157},
  512. + {{{84,7}},99}, {{{0,8}},126}, {{{0,8}},62}, {{{0,9}},221},
  513. + {{{82,7}},27}, {{{0,8}},110}, {{{0,8}},46}, {{{0,9}},189},
  514. + {{{0,8}},14}, {{{0,8}},142}, {{{0,8}},78}, {{{0,9}},253},
  515. + {{{96,7}},256}, {{{0,8}},81}, {{{0,8}},17}, {{{85,8}},131},
  516. + {{{82,7}},31}, {{{0,8}},113}, {{{0,8}},49}, {{{0,9}},195},
  517. + {{{80,7}},10}, {{{0,8}},97}, {{{0,8}},33}, {{{0,9}},163},
  518. + {{{0,8}},1}, {{{0,8}},129}, {{{0,8}},65}, {{{0,9}},227},
  519. + {{{80,7}},6}, {{{0,8}},89}, {{{0,8}},25}, {{{0,9}},147},
  520. + {{{83,7}},59}, {{{0,8}},121}, {{{0,8}},57}, {{{0,9}},211},
  521. + {{{81,7}},17}, {{{0,8}},105}, {{{0,8}},41}, {{{0,9}},179},
  522. + {{{0,8}},9}, {{{0,8}},137}, {{{0,8}},73}, {{{0,9}},243},
  523. + {{{80,7}},4}, {{{0,8}},85}, {{{0,8}},21}, {{{80,8}},258},
  524. + {{{83,7}},43}, {{{0,8}},117}, {{{0,8}},53}, {{{0,9}},203},
  525. + {{{81,7}},13}, {{{0,8}},101}, {{{0,8}},37}, {{{0,9}},171},
  526. + {{{0,8}},5}, {{{0,8}},133}, {{{0,8}},69}, {{{0,9}},235},
  527. + {{{80,7}},8}, {{{0,8}},93}, {{{0,8}},29}, {{{0,9}},155},
  528. + {{{84,7}},83}, {{{0,8}},125}, {{{0,8}},61}, {{{0,9}},219},
  529. + {{{82,7}},23}, {{{0,8}},109}, {{{0,8}},45}, {{{0,9}},187},
  530. + {{{0,8}},13}, {{{0,8}},141}, {{{0,8}},77}, {{{0,9}},251},
  531. + {{{80,7}},3}, {{{0,8}},83}, {{{0,8}},19}, {{{85,8}},195},
  532. + {{{83,7}},35}, {{{0,8}},115}, {{{0,8}},51}, {{{0,9}},199},
  533. + {{{81,7}},11}, {{{0,8}},99}, {{{0,8}},35}, {{{0,9}},167},
  534. + {{{0,8}},3}, {{{0,8}},131}, {{{0,8}},67}, {{{0,9}},231},
  535. + {{{80,7}},7}, {{{0,8}},91}, {{{0,8}},27}, {{{0,9}},151},
  536. + {{{84,7}},67}, {{{0,8}},123}, {{{0,8}},59}, {{{0,9}},215},
  537. + {{{82,7}},19}, {{{0,8}},107}, {{{0,8}},43}, {{{0,9}},183},
  538. + {{{0,8}},11}, {{{0,8}},139}, {{{0,8}},75}, {{{0,9}},247},
  539. + {{{80,7}},5}, {{{0,8}},87}, {{{0,8}},23}, {{{192,8}},0},
  540. + {{{83,7}},51}, {{{0,8}},119}, {{{0,8}},55}, {{{0,9}},207},
  541. + {{{81,7}},15}, {{{0,8}},103}, {{{0,8}},39}, {{{0,9}},175},
  542. + {{{0,8}},7}, {{{0,8}},135}, {{{0,8}},71}, {{{0,9}},239},
  543. + {{{80,7}},9}, {{{0,8}},95}, {{{0,8}},31}, {{{0,9}},159},
  544. + {{{84,7}},99}, {{{0,8}},127}, {{{0,8}},63}, {{{0,9}},223},
  545. + {{{82,7}},27}, {{{0,8}},111}, {{{0,8}},47}, {{{0,9}},191},
  546. + {{{0,8}},15}, {{{0,8}},143}, {{{0,8}},79}, {{{0,9}},255}
  547. };
  548. local inflate_huft fixed_td[] = {
  549. - {{80,5},1}, {{87,5},257}, {{83,5},17}, {{91,5},4097}, {{81,5},5},
  550. - {{89,5},1025}, {{85,5},65}, {{93,5},16385}, {{80,5},3}, {{88,5},513},
  551. - {{84,5},33}, {{92,5},8193}, {{82,5},9}, {{90,5},2049}, {{86,5},129},
  552. - {{192,5},24577}, {{80,5},2}, {{87,5},385}, {{83,5},25}, {{91,5},6145},
  553. - {{81,5},7}, {{89,5},1537}, {{85,5},97}, {{93,5},24577}, {{80,5},4},
  554. - {{88,5},769}, {{84,5},49}, {{92,5},12289}, {{82,5},13}, {{90,5},3073},
  555. - {{86,5},193}, {{192,5},24577}
  556. + {{{80,5}},1}, {{{87,5}},257}, {{{83,5}},17}, {{{91,5}},4097},
  557. + {{{81,5}},5}, {{{89,5}},1025}, {{{85,5}},65}, {{{93,5}},16385},
  558. + {{{80,5}},3}, {{{88,5}},513}, {{{84,5}},33}, {{{92,5}},8193},
  559. + {{{82,5}},9}, {{{90,5}},2049}, {{{86,5}},129}, {{{192,5}},24577},
  560. + {{{80,5}},2}, {{{87,5}},385}, {{{83,5}},25}, {{{91,5}},6145},
  561. + {{{81,5}},7}, {{{89,5}},1537}, {{{85,5}},97}, {{{93,5}},24577},
  562. + {{{80,5}},4}, {{{88,5}},769}, {{{84,5}},49}, {{{92,5}},12289},
  563. + {{{82,5}},13}, {{{90,5}},3073}, {{{86,5}},193}, {{{192,5}},24577}
  564. };
  565. diff -ru2 ../zlib-1.1.2/inftrees.c ./inftrees.c
  566. --- ../zlib-1.1.2/inftrees.c Thu Mar 19 06:48:02 1998
  567. +++ ./zlib/inftrees.c Thu Jul 9 09:06:30 1998
  568. @@ -12,5 +12,5 @@
  569. const char inflate_copyright[] =
  570. - " inflate 1.1.2 Copyright 1995-1998 Mark Adler ";
  571. + " inflate 1.1.3 Copyright 1995-1998 Mark Adler ";
  572. /*
  573. If you use the zlib library in a product, an acknowledgment is welcome
  574. diff -ru2 ../zlib-1.1.2/trees.c ./trees.c
  575. --- ../zlib-1.1.2/trees.c Fri Feb 27 12:10:24 1998
  576. +++ ./zlib/trees.c Wed Jul 8 09:32:57 1998
  577. @@ -251,4 +251,11 @@
  578. if (static_init_done) return;
  579. + /* For some embedded targets, global variables are not initialized: */
  580. + static_l_desc.static_tree = static_ltree;
  581. + static_l_desc.extra_bits = extra_lbits;
  582. + static_d_desc.static_tree = static_dtree;
  583. + static_d_desc.extra_bits = extra_dbits;
  584. + static_bl_desc.extra_bits = extra_blbits;
  585. +
  586. /* Initialize the mapping length (0..255) -> length code (0..28) */
  587. length = 0;
  588. @@ -379,6 +386,4 @@
  589. tr_static_init();
  590. - s->compressed_len = 0L;
  591. -
  592. s->l_desc.dyn_tree = s->dyn_ltree;
  593. s->l_desc.stat_desc = &static_l_desc;
  594. @@ -394,4 +399,5 @@
  595. s->last_eob_len = 8; /* enough lookahead for inflate */
  596. #ifdef DEBUG
  597. + s->compressed_len = 0L;
  598. s->bits_sent = 0L;
  599. #endif
  600. @@ -866,7 +872,8 @@
  601. {
  602. send_bits(s, (STORED_BLOCK<<1)+eof, 3); /* send block type */
  603. +#ifdef DEBUG
  604. s->compressed_len = (s->compressed_len + 3 + 7) & (ulg)~7L;
  605. s->compressed_len += (stored_len + 4) << 3;
  606. -
  607. +#endif
  608. copy_block(s, buf, (unsigned)stored_len, 1); /* with header */
  609. }
  610. @@ -888,5 +895,7 @@
  611. send_bits(s, STATIC_TREES<<1, 3);
  612. send_code(s, END_BLOCK, static_ltree);
  613. +#ifdef DEBUG
  614. s->compressed_len += 10L; /* 3 for block type, 7 for EOB */
  615. +#endif
  616. bi_flush(s);
  617. /* Of the 10 bits for the empty block, we have already sent
  618. @@ -898,5 +907,7 @@
  619. send_bits(s, STATIC_TREES<<1, 3);
  620. send_code(s, END_BLOCK, static_ltree);
  621. +#ifdef DEBUG
  622. s->compressed_len += 10L;
  623. +#endif
  624. bi_flush(s);
  625. }
  626. @@ -906,8 +917,7 @@
  627. /* ===========================================================================
  628. * Determine the best encoding for the current block: dynamic trees, static
  629. - * trees or store, and output the encoded block to the zip file. This function
  630. - * returns the total compressed length for the file so far.
  631. + * trees or store, and output the encoded block to the zip file.
  632. */
  633. -ulg _tr_flush_block(s, buf, stored_len, eof)
  634. +void _tr_flush_block(s, buf, stored_len, eof)
  635. deflate_state *s;
  636. charf *buf; /* input block, or NULL if too old */
  637. @@ -956,23 +966,4 @@
  638. }
  639. - /* If compression failed and this is the first and last block,
  640. - * and if the .zip file can be seeked (to rewrite the local header),
  641. - * the whole file is transformed into a stored file:
  642. - */
  643. -#ifdef STORED_FILE_OK
  644. -# ifdef FORCE_STORED_FILE
  645. - if (eof && s->compressed_len == 0L) { /* force stored file */
  646. -# else
  647. - if (stored_len <= opt_lenb && eof && s->compressed_len==0L && seekable()) {
  648. -# endif
  649. - /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */
  650. - if (buf == (charf*)0) error ("block vanished");
  651. -
  652. - copy_block(buf, (unsigned)stored_len, 0); /* without header */
  653. - s->compressed_len = stored_len << 3;
  654. - s->method = STORED;
  655. - } else
  656. -#endif /* STORED_FILE_OK */
  657. -
  658. #ifdef FORCE_STORED
  659. if (buf != (char*)0) { /* force stored block */
  660. @@ -996,5 +987,7 @@
  661. send_bits(s, (STATIC_TREES<<1)+eof, 3);
  662. compress_block(s, (ct_data *)static_ltree, (ct_data *)static_dtree);
  663. +#ifdef DEBUG
  664. s->compressed_len += 3 + s->static_len;
  665. +#endif
  666. } else {
  667. send_bits(s, (DYN_TREES<<1)+eof, 3);
  668. @@ -1002,17 +995,22 @@
  669. max_blindex+1);
  670. compress_block(s, (ct_data *)s->dyn_ltree, (ct_data *)s->dyn_dtree);
  671. +#ifdef DEBUG
  672. s->compressed_len += 3 + s->opt_len;
  673. +#endif
  674. }
  675. Assert (s->compressed_len == s->bits_sent, "bad compressed size");
  676. + /* The above check is made mod 2^32, for files larger than 512 MB
  677. + * and uLong implemented on 32 bits.
  678. + */
  679. init_block(s);
  680. if (eof) {
  681. bi_windup(s);
  682. +#ifdef DEBUG
  683. s->compressed_len += 7; /* align on byte boundary */
  684. +#endif
  685. }
  686. Tracev((stderr,"\ncomprlen %lu(%lu) ", s->compressed_len>>3,
  687. s->compressed_len-7*eof));
  688. -
  689. - return s->compressed_len >> 3;
  690. }
  691. diff -ru2 ../zlib-1.1.2/zconf.h ./zconf.h
  692. --- ../zlib-1.1.2/zconf.h Mon Feb 2 06:24:39 1998
  693. +++ ./zlib/zconf.h Wed Jul 8 10:55:27 1998
  694. @@ -92,6 +92,6 @@
  695. #endif
  696. -/* Borland C incorrectly complains about missing returns: */
  697. -#if defined(__BORLANDC__)
  698. +/* Old Borland C incorrectly complains about missing returns: */
  699. +#if defined(__BORLANDC__) && (__BORLANDC__ < 0x500)
  700. # define NEED_DUMMY_RETURN
  701. #endif
  702. @@ -149,5 +149,5 @@
  703. # define SMALL_MEDIUM
  704. # ifdef _MSC_VER
  705. -# define FAR __far
  706. +# define FAR _far
  707. # else
  708. # define FAR far
  709. @@ -157,28 +157,52 @@
  710. # ifndef __32BIT__
  711. # define SMALL_MEDIUM
  712. -# define FAR __far
  713. +# define FAR _far
  714. # endif
  715. #endif
  716. /* Compile with -DZLIB_DLL for Windows DLL support */
  717. -#if (defined(_WINDOWS) || defined(WINDOWS)) && defined(ZLIB_DLL)
  718. -# ifdef FAR
  719. -# undef FAR
  720. -# endif
  721. -# include <windows.h>
  722. -# define ZEXPORT WINAPI
  723. -# ifdef WIN32
  724. -# define ZEXPORTVA WINAPIV
  725. +#if defined(ZLIB_DLL)
  726. +# if defined(_WINDOWS) || defined(WINDOWS)
  727. +# ifdef FAR
  728. +# undef FAR
  729. +# endif
  730. +# include <windows.h>
  731. +# define ZEXPORT WINAPI
  732. +# ifdef WIN32
  733. +# define ZEXPORTVA WINAPIV
  734. +# else
  735. +# define ZEXPORTVA FAR _cdecl _export
  736. +# endif
  737. +# endif
  738. +# if defined (__BORLANDC__)
  739. +# if (__BORLANDC__ >= 0x0500) && defined (WIN32)
  740. +# include <windows.h>
  741. +# define ZEXPORT __declspec(dllexport) WINAPI
  742. +# define ZEXPORTRVA __declspec(dllexport) WINAPIV
  743. +# else
  744. +# if defined (_Windows) && defined (__DLL__)
  745. +# define ZEXPORT _export
  746. +# define ZEXPORTVA _export
  747. +# endif
  748. +# endif
  749. +# endif
  750. +#endif
  751. +
  752. +#if defined (__BEOS__)
  753. +# if defined (ZLIB_DLL)
  754. +# define ZEXTERN extern __declspec(dllexport)
  755. # else
  756. -# define ZEXPORTVA FAR _cdecl _export
  757. +# define ZEXTERN extern __declspec(dllimport)
  758. # endif
  759. -#else
  760. -# if defined (__BORLANDC__) && defined (_Windows) && defined (__DLL__)
  761. -# define ZEXPORT _export
  762. -# define ZEXPORTVA _export
  763. -# else
  764. -# define ZEXPORT
  765. -# define ZEXPORTVA
  766. -# endif
  767. +#endif
  768. +
  769. +#ifndef ZEXPORT
  770. +# define ZEXPORT
  771. +#endif
  772. +#ifndef ZEXPORTVA
  773. +# define ZEXPORTVA
  774. +#endif
  775. +#ifndef ZEXTERN
  776. +# define ZEXTERN extern
  777. #endif
  778. @@ -187,10 +211,12 @@
  779. #endif
  780. +#if !defined(MACOS) && !defined(TARGET_OS_MAC)
  781. typedef unsigned char Byte; /* 8 bits */
  782. +#endif
  783. typedef unsigned int uInt; /* 16 bits or more */
  784. typedef unsigned long uLong; /* 32 bits or more */
  785. -#if defined(__BORLANDC__) && defined(SMALL_MEDIUM)
  786. - /* Borland C/C++ ignores FAR inside typedef */
  787. +#ifdef SMALL_MEDIUM
  788. + /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
  789. # define Bytef Byte FAR
  790. #else
  791. @@ -218,4 +244,5 @@
  792. # define SEEK_SET 0 /* Seek from beginning of file. */
  793. # define SEEK_CUR 1 /* Seek from current position. */
  794. +# define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
  795. #endif
  796. #ifndef z_off_t
  797. diff -ru2 ../zlib-1.1.2/zlib.h ./zlib.h
  798. --- ../zlib-1.1.2/zlib.h Thu Mar 19 06:46:53 1998
  799. +++ ./zlib/zlib.h Thu Jul 9 09:06:56 1998
  800. @@ -1,4 +1,4 @@
  801. /* zlib.h -- interface of the 'zlib' general purpose compression library
  802. - version 1.1.2, March 19th, 1998
  803. + version 1.1.3, July 9th, 1998
  804. Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler
  805. @@ -38,5 +38,5 @@
  806. #endif
  807. -#define ZLIB_VERSION "1.1.2"
  808. +#define ZLIB_VERSION "1.1.3"
  809. /*
  810. @@ -169,5 +169,5 @@
  811. /* basic functions */
  812. -extern const char * ZEXPORT zlibVersion OF((void));
  813. +ZEXTERN const char * ZEXPORT zlibVersion OF((void));
  814. /* The application can compare zlibVersion and ZLIB_VERSION for consistency.
  815. If the first character differs, the library code actually used is
  816. @@ -177,5 +177,5 @@
  817. /*
  818. -extern int ZEXPORT deflateInit OF((z_streamp strm, int level));
  819. +ZEXTERN int ZEXPORT deflateInit OF((z_streamp strm, int level));
  820. Initializes the internal stream state for compression. The fields
  821. @@ -199,5 +199,5 @@
  822. -extern int ZEXPORT deflate OF((z_streamp strm, int flush));
  823. +ZEXTERN int ZEXPORT deflate OF((z_streamp strm, int flush));
  824. /*
  825. deflate compresses as much data as possible, and stops when the input
  826. @@ -272,9 +272,10 @@
  827. consumed and all output has been produced (only when flush is set to
  828. Z_FINISH), Z_STREAM_ERROR if the stream state was inconsistent (for example
  829. - if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible.
  830. + if next_in or next_out was NULL), Z_BUF_ERROR if no progress is possible
  831. + (for example avail_in or avail_out was zero).
  832. */
  833. -extern int ZEXPORT deflateEnd OF((z_streamp strm));
  834. +ZEXTERN int ZEXPORT deflateEnd OF((z_streamp strm));
  835. /*
  836. All dynamically allocated data structures for this stream are freed.
  837. @@ -291,5 +292,5 @@
  838. /*
  839. -extern int ZEXPORT inflateInit OF((z_streamp strm));
  840. +ZEXTERN int ZEXPORT inflateInit OF((z_streamp strm));
  841. Initializes the internal stream state for decompression. The fields
  842. @@ -311,5 +312,5 @@
  843. -extern int ZEXPORT inflate OF((z_streamp strm, int flush));
  844. +ZEXTERN int ZEXPORT inflate OF((z_streamp strm, int flush));
  845. /*
  846. inflate decompresses as much data as possible, and stops when the input
  847. @@ -380,5 +381,5 @@
  848. -extern int ZEXPORT inflateEnd OF((z_streamp strm));
  849. +ZEXTERN int ZEXPORT inflateEnd OF((z_streamp strm));
  850. /*
  851. All dynamically allocated data structures for this stream are freed.
  852. @@ -398,10 +399,10 @@
  853. /*
  854. -extern int ZEXPORT deflateInit2 OF((z_streamp strm,
  855. - int level,
  856. - int method,
  857. - int windowBits,
  858. - int memLevel,
  859. - int strategy));
  860. +ZEXTERN int ZEXPORT deflateInit2 OF((z_streamp strm,
  861. + int level,
  862. + int method,
  863. + int windowBits,
  864. + int memLevel,
  865. + int strategy));
  866. This is another version of deflateInit with more compression options. The
  867. @@ -441,12 +442,12 @@
  868. */
  869. -extern int ZEXPORT deflateSetDictionary OF((z_streamp strm,
  870. - const Bytef *dictionary,
  871. - uInt dictLength));
  872. +ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm,
  873. + const Bytef *dictionary,
  874. + uInt dictLength));
  875. /*
  876. Initializes the compression dictionary from the given byte sequence
  877. without producing any compressed output. This function must be called
  878. - immediately after deflateInit or deflateInit2, before any call of
  879. - deflate. The compressor and decompressor must use exactly the same
  880. + immediately after deflateInit, deflateInit2 or deflateReset, before any
  881. + call of deflate. The compressor and decompressor must use exactly the same
  882. dictionary (see inflateSetDictionary).
  883. @@ -477,6 +478,6 @@
  884. */
  885. -extern int ZEXPORT deflateCopy OF((z_streamp dest,
  886. - z_streamp source));
  887. +ZEXTERN int ZEXPORT deflateCopy OF((z_streamp dest,
  888. + z_streamp source));
  889. /*
  890. Sets the destination stream as a complete copy of the source stream.
  891. @@ -495,5 +496,5 @@
  892. */
  893. -extern int ZEXPORT deflateReset OF((z_streamp strm));
  894. +ZEXTERN int ZEXPORT deflateReset OF((z_streamp strm));
  895. /*
  896. This function is equivalent to deflateEnd followed by deflateInit,
  897. @@ -506,5 +507,7 @@
  898. */
  899. -extern int ZEXPORT deflateParams OF((z_streamp strm, int level, int strategy));
  900. +ZEXTERN int ZEXPORT deflateParams OF((z_streamp strm,
  901. + int level,
  902. + int strategy));
  903. /*
  904. Dynamically update the compression level and compression strategy. The
  905. @@ -526,6 +529,6 @@
  906. /*
  907. -extern int ZEXPORT inflateInit2 OF((z_streamp strm,
  908. - int windowBits));
  909. +ZEXTERN int ZEXPORT inflateInit2 OF((z_streamp strm,
  910. + int windowBits));
  911. This is another version of inflateInit with an extra parameter. The
  912. @@ -548,7 +551,7 @@
  913. */
  914. -extern int ZEXPORT inflateSetDictionary OF((z_streamp strm,
  915. - const Bytef *dictionary,
  916. - uInt dictLength));
  917. +ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm,
  918. + const Bytef *dictionary,
  919. + uInt dictLength));
  920. /*
  921. Initializes the decompression dictionary from the given uncompressed byte
  922. @@ -567,5 +570,5 @@
  923. */
  924. -extern int ZEXPORT inflateSync OF((z_streamp strm));
  925. +ZEXTERN int ZEXPORT inflateSync OF((z_streamp strm));
  926. /*
  927. Skips invalid compressed data until a full flush point (see above the
  928. @@ -582,5 +585,5 @@
  929. */
  930. -extern int ZEXPORT inflateReset OF((z_streamp strm));
  931. +ZEXTERN int ZEXPORT inflateReset OF((z_streamp strm));
  932. /*
  933. This function is equivalent to inflateEnd followed by inflateInit,
  934. @@ -603,6 +606,6 @@
  935. */
  936. -extern int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
  937. - const Bytef *source, uLong sourceLen));
  938. +ZEXTERN int ZEXPORT compress OF((Bytef *dest, uLongf *destLen,
  939. + const Bytef *source, uLong sourceLen));
  940. /*
  941. Compresses the source buffer into the destination buffer. sourceLen is
  942. @@ -618,7 +621,7 @@
  943. */
  944. -extern int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
  945. - const Bytef *source, uLong sourceLen,
  946. - int level));
  947. +ZEXTERN int ZEXPORT compress2 OF((Bytef *dest, uLongf *destLen,
  948. + const Bytef *source, uLong sourceLen,
  949. + int level));
  950. /*
  951. Compresses the source buffer into the destination buffer. The level
  952. @@ -633,6 +636,6 @@
  953. */
  954. -extern int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
  955. - const Bytef *source, uLong sourceLen));
  956. +ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen,
  957. + const Bytef *source, uLong sourceLen));
  958. /*
  959. Decompresses the source buffer into the destination buffer. sourceLen is
  960. @@ -654,5 +657,5 @@
  961. typedef voidp gzFile;
  962. -extern gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
  963. +ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode));
  964. /*
  965. Opens a gzip (.gz) file for reading or writing. The mode parameter
  966. @@ -670,5 +673,5 @@
  967. zlib error is Z_MEM_ERROR). */
  968. -extern gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
  969. +ZEXTERN gzFile ZEXPORT gzdopen OF((int fd, const char *mode));
  970. /*
  971. gzdopen() associates a gzFile with the file descriptor fd. File
  972. @@ -683,5 +686,5 @@
  973. */
  974. -extern int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
  975. +ZEXTERN int ZEXPORT gzsetparams OF((gzFile file, int level, int strategy));
  976. /*
  977. Dynamically update the compression level or strategy. See the description
  978. @@ -691,5 +694,5 @@
  979. */
  980. -extern int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
  981. +ZEXTERN int ZEXPORT gzread OF((gzFile file, voidp buf, unsigned len));
  982. /*
  983. Reads the given number of uncompressed bytes from the compressed file.
  984. @@ -699,5 +702,6 @@
  985. end of file, -1 for error). */
  986. -extern int ZEXPORT gzwrite OF((gzFile file, const voidp buf, unsigned len));
  987. +ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
  988. + const voidp buf, unsigned len));
  989. /*
  990. Writes the given number of uncompressed bytes into the compressed file.
  991. @@ -706,5 +710,5 @@
  992. */
  993. -extern int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...));
  994. +ZEXTERN int ZEXPORTVA gzprintf OF((gzFile file, const char *format, ...));
  995. /*
  996. Converts, formats, and writes the args to the compressed file under
  997. @@ -713,5 +717,5 @@
  998. */
  999. -extern int ZEXPORT gzputs OF((gzFile file, const char *s));
  1000. +ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s));
  1001. /*
  1002. Writes the given null-terminated string to the compressed file, excluding
  1003. @@ -720,5 +724,5 @@
  1004. */
  1005. -extern char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
  1006. +ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len));
  1007. /*
  1008. Reads bytes from the compressed file until len-1 characters are read, or
  1009. @@ -729,5 +733,5 @@
  1010. */
  1011. -extern int ZEXPORT gzputc OF((gzFile file, int c));
  1012. +ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c));
  1013. /*
  1014. Writes c, converted to an unsigned char, into the compressed file.
  1015. @@ -735,5 +739,5 @@
  1016. */
  1017. -extern int ZEXPORT gzgetc OF((gzFile file));
  1018. +ZEXTERN int ZEXPORT gzgetc OF((gzFile file));
  1019. /*
  1020. Reads one byte from the compressed file. gzgetc returns this byte
  1021. @@ -741,5 +745,5 @@
  1022. */
  1023. -extern int ZEXPORT gzflush OF((gzFile file, int flush));
  1024. +ZEXTERN int ZEXPORT gzflush OF((gzFile file, int flush));
  1025. /*
  1026. Flushes all pending output into the compressed file. The parameter
  1027. @@ -751,8 +755,9 @@
  1028. */
  1029. -extern z_off_t ZEXPORT gzseek OF((gzFile file, z_off_t offset, int whence));
  1030. +ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file,
  1031. + z_off_t offset, int whence));
  1032. /*
  1033. - Sets the starting position for the next gzread or gzwrite on the given
  1034. - compressed file. The offset represents a number of bytes in the
  1035. + Sets the starting position for the next gzread or gzwrite on the
  1036. + given compressed file. The offset represents a number of bytes in the
  1037. uncompressed data stream. The whence parameter is defined as in lseek(2);
  1038. the value SEEK_END is not supported.
  1039. @@ -768,5 +773,5 @@
  1040. */
  1041. -extern int ZEXPORT gzrewind OF((gzFile file));
  1042. +ZEXTERN int ZEXPORT gzrewind OF((gzFile file));
  1043. /*
  1044. Rewinds the given file. This function is supported only for reading.
  1045. @@ -775,5 +780,5 @@
  1046. */
  1047. -extern z_off_t ZEXPORT gztell OF((gzFile file));
  1048. +ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file));
  1049. /*
  1050. Returns the starting position for the next gzread or gzwrite on the
  1051. @@ -784,5 +789,5 @@
  1052. */
  1053. -extern int ZEXPORT gzeof OF((gzFile file));
  1054. +ZEXTERN int ZEXPORT gzeof OF((gzFile file));
  1055. /*
  1056. Returns 1 when EOF has previously been detected reading the given
  1057. @@ -790,5 +795,5 @@
  1058. */
  1059. -extern int ZEXPORT gzclose OF((gzFile file));
  1060. +ZEXTERN int ZEXPORT gzclose OF((gzFile file));
  1061. /*
  1062. Flushes all pending output if necessary, closes the compressed file
  1063. @@ -797,5 +802,5 @@
  1064. */
  1065. -extern const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
  1066. +ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum));
  1067. /*
  1068. Returns the error message for the last error which occurred on the
  1069. @@ -814,5 +819,5 @@
  1070. */
  1071. -extern uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
  1072. +ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef *buf, uInt len));
  1073. /*
  1074. @@ -831,5 +836,5 @@
  1075. */
  1076. -extern uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
  1077. +ZEXTERN uLong ZEXPORT crc32 OF((uLong crc, const Bytef *buf, uInt len));
  1078. /*
  1079. Update a running crc with the bytes buf[0..len-1] and return the updated
  1080. @@ -853,14 +858,14 @@
  1081. * and the compiler's view of z_stream:
  1082. */
  1083. -extern int ZEXPORT deflateInit_ OF((z_streamp strm, int level,
  1084. - const char *version, int stream_size));
  1085. -extern int ZEXPORT inflateInit_ OF((z_streamp strm,
  1086. - const char *version, int stream_size));
  1087. -extern int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
  1088. - int windowBits, int memLevel,
  1089. - int strategy, const char *version,
  1090. - int stream_size));
  1091. -extern int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
  1092. +ZEXTERN int ZEXPORT deflateInit_ OF((z_streamp strm, int level,
  1093. const char *version, int stream_size));
  1094. +ZEXTERN int ZEXPORT inflateInit_ OF((z_streamp strm,
  1095. + const char *version, int stream_size));
  1096. +ZEXTERN int ZEXPORT deflateInit2_ OF((z_streamp strm, int level, int method,
  1097. + int windowBits, int memLevel,
  1098. + int strategy, const char *version,
  1099. + int stream_size));
  1100. +ZEXTERN int ZEXPORT inflateInit2_ OF((z_streamp strm, int windowBits,
  1101. + const char *version, int stream_size));
  1102. #define deflateInit(strm, level) \
  1103. deflateInit_((strm), (level), ZLIB_VERSION, sizeof(z_stream))
  1104. @@ -878,7 +883,7 @@
  1105. #endif
  1106. -extern const char * ZEXPORT zError OF((int err));
  1107. -extern int ZEXPORT inflateSyncPoint OF((z_streamp z));
  1108. -extern const uLongf * ZEXPORT get_crc_table OF((void));
  1109. +ZEXTERN const char * ZEXPORT zError OF((int err));
  1110. +ZEXTERN int ZEXPORT inflateSyncPoint OF((z_streamp z));
  1111. +ZEXTERN const uLongf * ZEXPORT get_crc_table OF((void));
  1112. #ifdef __cplusplus
  1113. diff -ru2 ../zlib-1.1.2/zutil.c ./zutil.c
  1114. --- ../zlib-1.1.2/zutil.c Mon Feb 2 06:12:37 1998
  1115. +++ ./zlib/zutil.c Wed Jul 8 10:01:47 1998
  1116. @@ -61,5 +61,5 @@
  1117. void zmemcpy(dest, source, len)
  1118. Bytef* dest;
  1119. - Bytef* source;
  1120. + const Bytef* source;
  1121. uInt len;
  1122. {
  1123. @@ -71,6 +71,6 @@
  1124. int zmemcmp(s1, s2, len)
  1125. - Bytef* s1;
  1126. - Bytef* s2;
  1127. + const Bytef* s1;
  1128. + const Bytef* s2;
  1129. uInt len;
  1130. {
  1131. @@ -179,5 +179,5 @@
  1132. # define MY_ZCALLOC
  1133. -#if (!defined(_MSC_VER) || (_MSC_VER < 600))
  1134. +#if (!defined(_MSC_VER) || (_MSC_VER <= 600))
  1135. # define _halloc halloc
  1136. # define _hfree hfree
  1137. diff -ru2 ../zlib-1.1.2/zutil.h ./zutil.h
  1138. --- ../zlib-1.1.2/zutil.h Mon Feb 2 06:12:37 1998
  1139. +++ ./zlib/zutil.h Wed Jul 8 10:01:48 1998
  1140. @@ -76,5 +76,5 @@
  1141. #ifdef MSDOS
  1142. # define OS_CODE 0x00
  1143. -# ifdef __TURBOC__
  1144. +# if defined(__TURBOC__) || defined(__BORLANDC__)
  1145. # if(__STDC__ == 1) && (defined(__LARGE__) || defined(__COMPACT__))
  1146. /* Allow compilation with ANSI keywords only enabled */
  1147. @@ -113,11 +113,10 @@
  1148. #if defined(MACOS) || defined(TARGET_OS_MAC)
  1149. # define OS_CODE 0x07
  1150. -# ifndef fdopen
  1151. -# define fdopen(fd,mode) NULL /* No fdopen() */
  1152. -# endif
  1153. -#endif
  1154. -#if defined(__MWERKS__) && !defined(fdopen)
  1155. -# if __dest_os != __be_os && __dest_os != __win32_os
  1156. -# define fdopen(fd,mode) NULL
  1157. +# if defined(__MWERKS__) && __dest_os != __be_os && __dest_os != __win32_os
  1158. +# include <unix.h> /* for fdopen */
  1159. +# else
  1160. +# ifndef fdopen
  1161. +# define fdopen(fd,mode) NULL /* No fdopen() */
  1162. +# endif
  1163. # endif
  1164. #endif
  1165. @@ -135,5 +134,5 @@
  1166. #endif
  1167. -#if (defined(_MSC_VER) && (_MSC_VER >= 600))
  1168. +#if (defined(_MSC_VER) && (_MSC_VER > 600))
  1169. # define fdopen(fd,type) _fdopen(fd,type)
  1170. #endif
  1171. @@ -183,6 +182,6 @@
  1172. # endif
  1173. #else
  1174. - extern void zmemcpy OF((Bytef* dest, Bytef* source, uInt len));
  1175. - extern int zmemcmp OF((Bytef* s1, Bytef* s2, uInt len));
  1176. + extern void zmemcpy OF((Bytef* dest, const Bytef* source, uInt len));
  1177. + extern int zmemcmp OF((const Bytef* s1, const Bytef* s2, uInt len));
  1178. extern void zmemzero OF((Bytef* dest, uInt len));
  1179. #endif