diff zdelta-2.1/Makefile zdelta-2.1.patched/Makefile
38a39
> #CFLAGS= -W -Wall -pedantic -ansi -g -DREFNUM=2 -DDEBUG -Dverbose=1000
Only in zdelta-2.1.patched: adler32.o
diff zdelta-2.1/deflate.c zdelta-2.1.patched/deflate.c
266c266
<   strm->data_type = Z_UNKNOWN;
---
>   strm->data_type = ZD_UNKNOWN;
277c277
<   s->last_flush = Z_NO_FLUSH;
---
>   s->last_flush = ZD_NO_FLUSH;
328c328
< 	err = zd_deflate(strm, Z_PARTIAL_FLUSH);
---
> 	err = zd_deflate(strm, ZD_PARTIAL_FLUSH);
597c597
<       (flush != Z_NO_FLUSH && s->status != FINISH_STATE)) {
---
>       (flush != ZD_NO_FLUSH && s->status != FINISH_STATE)) {
611c611
<       /* If flush != Z_NO_FLUSH && avail_out == 0, the next call
---
>       /* If flush != ZD_NO_FLUSH && avail_out == 0, the next call
620c620
<       if (flush == Z_PARTIAL_FLUSH) {
---
>       if (flush == ZD_PARTIAL_FLUSH) {
1344c1344
<             if (s->lookahead == 0 && flush == Z_NO_FLUSH) return need_more;
---
>             if (s->lookahead == 0 && flush == ZD_NO_FLUSH) return need_more;
1456c1456
<       if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
---
>       if (s->lookahead < MIN_LOOKAHEAD && flush == ZD_NO_FLUSH) {
1586c1586
<       if (s->lookahead < MIN_LOOKAHEAD && flush == Z_NO_FLUSH) {
---
>       if (s->lookahead < MIN_LOOKAHEAD && flush == ZD_NO_FLUSH) {
diff zdelta-2.1/deflate.h zdelta-2.1.patched/deflate.h
50c50
< #define Z_CODES 8
---
> #define ZD_CODES 8
52c52
< #define Z_CODES 2
---
> #define ZD_CODES 2
245c245
<   struct ct_data_s dyn_ztree[2*Z_CODES+1];   /* zdelta: extra flag           */
---
>   struct ct_data_s dyn_ztree[2*ZD_CODES+1];   /* zdelta: extra flag           */
Only in zdelta-2.1.patched: deflate.o
diff zdelta-2.1/infblock.c zdelta-2.1.patched/infblock.c
265c265
< 	((t >> (LBL+DBL) ) & MASK(ZBL)) > (Z_CODES-1) )
---
> 	((t >> (LBL+DBL) ) & MASK(ZBL)) > (ZD_CODES-1) )
Only in zdelta-2.1.patched: infblock.o
diff zdelta-2.1/infcodes.c zdelta-2.1.patched/infcodes.c
257c257,262
<       c->bp = rwptr[best_ptr] + (c->sign == ZD_PLUS ? c->dist : -c->dist); 
---
>       /*c->bp = rwptr[best_ptr] + (c->sign == ZD_PLUS ? c->dist : -c->dist); */
>       if( c->sign == ZD_PLUS ){
>           c->bp = rwptr[best_ptr] + c->dist;
>       }else{
>           c->bp = rwptr[best_ptr] - c->dist; 
>       }
347c352
<   return Z_STREAM_ERROR;  /* Some dumb compilers complain without this */
---
>   return ZD_STREAM_ERROR;  /* Some dumb compilers complain without this */
Only in zdelta-2.1.patched: infcodes.o
diff zdelta-2.1/inffast.c zdelta-2.1.patched/inffast.c
138c138,143
< 		  ptr = rwptr[best_ptr] + (sign == ZD_PLUS ? d : -d);   
---
> 		  /*ptr = rwptr[best_ptr] + (sign == ZD_PLUS ? d : -d);    */
>           if( sign == ZD_PLUS ){
>             ptr = rwptr[best_ptr] + d;
>           }else{
>             ptr = rwptr[best_ptr] - d;
>           }
Only in zdelta-2.1.patched: inffast.o
Only in zdelta-2.1.patched: inflate.o
diff zdelta-2.1/inftrees.c zdelta-2.1.patched/inftrees.c
156c156
<    tables to decode that set of codes.  Return Z_OK on success, Z_BUF_ERROR
---
>    tables to decode that set of codes.  Return ZD_OK on success, ZD_BUF_ERROR
158,159c158,159
<    case), Z_DATA_ERROR if the input is invalid (an over-subscribed set of
<    lengths), or Z_MEM_ERROR if not enough memory. */
---
>    case), ZD_DATA_ERROR if the input is invalid (an over-subscribed set of
>    lengths), or ZD_MEM_ERROR if not enough memory. */
340c340
<   /* Return Z_BUF_ERROR if we were given an incomplete table */
---
>   /* Return ZD_BUF_ERROR if we were given an incomplete table */
475c475
<   huft_build(c, Z_CODES, Z_CODES, ZD_NULL, ZD_NULL, &fixed_tzd, &fixed_bzd,
---
>   huft_build(c, ZD_CODES, ZD_CODES, ZD_NULL, ZD_NULL, &fixed_tzd, &fixed_bzd,
564c564
<   r = huft_build(c +nl+nd, nzd, Z_CODES, ZD_NULL, ZD_NULL, tzd, bzd,hp,&hn,v);
---
>   r = huft_build(c +nl+nd, nzd, ZD_CODES, ZD_NULL, ZD_NULL, tzd, bzd,hp,&hn,v);
diff zdelta-2.1/inftrees.h zdelta-2.1.patched/inftrees.h
47c47
< # define Z_CODES    8     /* number of zdelta codes           */
---
> # define ZD_CODES    8     /* number of zdelta codes           */
49c49
< # define Z_CODES    2     /* number of zdelta codes           */
---
> # define ZD_CODES    2     /* number of zdelta codes           */
Only in zdelta-2.1.patched: inftrees.o
Only in zdelta-2.1.patched: infutil.o
Only in zdelta-2.1.patched: libzd.a
diff zdelta-2.1/tailor.h zdelta-2.1.patched/tailor.h
53c53
< #  define Z_SUFFIX "z"
---
> #  define ZD_SUFFIX "z"
76c76
< #    define Z_SUFFIX "z"
---
> #    define ZD_SUFFIX "z"
126c126
< #    define Z_SUFFIX "z"
---
> #    define ZD_SUFFIX "z"
158c158
< #  define Z_SUFFIX "-gz"
---
> #  define ZD_SUFFIX "-gz"
210c210
< #    define Z_SUFFIX "z"
---
> #    define ZD_SUFFIX "z"
283,284c283,284
< #ifndef Z_SUFFIX
< #  define Z_SUFFIX ".gz"
---
> #ifndef ZD_SUFFIX
> #  define ZD_SUFFIX ".gz"
diff zdelta-2.1/trees.c zdelta-2.1.patched/trees.c
75c75
< #define REPZ_3_10    17
---
> #define REPZD_3_10    17
78c78
< #define REPZ_11_138  18
---
> #define REPZD_11_138  18
129c129
< local ct_data static_ztree[Z_CODES];
---
> local ct_data static_ztree[ZD_CODES];
168c168
< {static_ztree, NULL, Z_CODES, Z_CODES, MAX_BITS};
---
> {static_ztree, NULL, ZD_CODES, ZD_CODES, MAX_BITS};
394c394
<   gen_codes((ct_data *)static_ztree, Z_CODES-1, bl_count);
---
>   gen_codes((ct_data *)static_ztree, ZD_CODES-1, bl_count);
440,441c440,441
<   fprintf(header, "local const ct_data static_ztree[Z_CODES] = {\n");
<   for (i = 0; i < Z_CODES; i++) {
---
>   fprintf(header, "local const ct_data static_ztree[ZD_CODES] = {\n");
>   for (i = 0; i < ZD_CODES; i++) {
443c443
< 	    static_ztree[i].Len, SEPARATOR(i, Z_CODES-1, 5));
---
> 	    static_ztree[i].Len, SEPARATOR(i, ZD_CODES-1, 5));
446c446
<   fprintf(header,"local const ct_data static_ztree[Z_CODES] = {\n");
---
>   fprintf(header,"local const ct_data static_ztree[ZD_CODES] = {\n");
526c526
<   for (n = 0; n < Z_CODES; n++)  s->dyn_ztree[n].Freq  = 0; /* zdelta */
---
>   for (n = 0; n < ZD_CODES; n++)  s->dyn_ztree[n].Freq  = 0; /* zdelta */
843c843
<       s->bl_tree[REPZ_3_10].Freq++;
---
>       s->bl_tree[REPZD_3_10].Freq++;
845c845
<       s->bl_tree[REPZ_11_138].Freq++;
---
>       s->bl_tree[REPZD_11_138].Freq++;
894c894
<       send_code(s, REPZ_3_10, s->bl_tree); send_bits(s, count-3, 3);
---
>       send_code(s, REPZD_3_10, s->bl_tree); send_bits(s, count-3, 3);
896c896
<       send_code(s, REPZ_11_138, s->bl_tree); send_bits(s, count-11, 7);
---
>       send_code(s, REPZD_11_138, s->bl_tree); send_bits(s, count-11, 7);
968c968
< 	  zcodes <= Z_CODES, "too many codes");
---
> 	  zcodes <= ZD_CODES, "too many codes");
1097c1097
<     /* (s->data_type == Z_UNKNOWN) set_data_type(s); */
---
>     /* (s->data_type == ZD_UNKNOWN) set_data_type(s); */
1317c1317
< 	Assert ((zd & 0x1f) < Z_CODES, "bad zd_code");
---
> 	Assert ((zd & 0x1f) < ZD_CODES, "bad zd_code");
1349c1349
<   s->data_type = (Byte)(bin_freq > (ascii_freq >> 2) ? Z_BINARY : Z_ASCII);
---
>   s->data_type = (Byte)(bin_freq > (ascii_freq >> 2) ? ZD_BINARY : ZD_ASCII);
diff zdelta-2.1/trees.h zdelta-2.1.patched/trees.h
91c91
< local const ct_data static_ztree[Z_CODES] = {
---
> local const ct_data static_ztree[ZD_CODES] = {
97c97
< local const ct_data static_ztree[Z_CODES] = {
---
> local const ct_data static_ztree[ZD_CODES] = {
Only in zdelta-2.1.patched: trees.o
Only in zdelta-2.1.patched: zd_mem.o
Only in zdelta-2.1.patched: zdc
Only in zdelta-2.1.patched: zdc.o
Only in zdelta-2.1.patched: zdelta.o
diff zdelta-2.1/zdlib.h zdelta-2.1.patched/zdlib.h
18,19c18,19
< #define Z_NO_FLUSH      0
< #define Z_PARTIAL_FLUSH 1 /* will be removed, use Z_SYNC_FLUSH instead */
---
> #define ZD_NO_FLUSH      0
> #define ZD_PARTIAL_FLUSH 1 /* will be removed, use ZD_SYNC_FLUSH instead */
37,39c37,39
< #define Z_BINARY   0
< #define Z_ASCII    1
< #define Z_UNKNOWN  2
---
> #define ZD_BINARY   0
> #define ZD_ASCII    1
> #define ZD_UNKNOWN  2
667c667
<   description of deflate with Z_FULL_FLUSH) can be found, or until all
---
>   description of deflate with ZD_FULL_FLUSH) can be found, or until all
Only in zdelta-2.1.patched: zdu
Only in zdelta-2.1.patched: zdu.o
Only in zdelta-2.1.patched: zutil.o
