|
@@ -195,9 +195,6 @@ var
|
|
len : integer;
|
|
len : integer;
|
|
begin
|
|
begin
|
|
len := strlen(hello)+1;
|
|
len := strlen(hello)+1;
|
|
- c_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- c_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- c_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
|
|
|
|
err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
|
|
err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
|
|
CHECK_ERR(err, 'deflateInit');
|
|
CHECK_ERR(err, 'deflateInit');
|
|
@@ -241,10 +238,6 @@ var
|
|
begin
|
|
begin
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
|
|
|
|
- d_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- d_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- d_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
-
|
|
|
|
d_stream.next_in := compr;
|
|
d_stream.next_in := compr;
|
|
d_stream.avail_in := 0;
|
|
d_stream.avail_in := 0;
|
|
d_stream.next_out := uncompr;
|
|
d_stream.next_out := uncompr;
|
|
@@ -289,10 +282,6 @@ var
|
|
c_stream : z_stream; { compression stream }
|
|
c_stream : z_stream; { compression stream }
|
|
err : integer;
|
|
err : integer;
|
|
begin
|
|
begin
|
|
- c_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- c_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- c_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
-
|
|
|
|
err := deflateInit(c_stream, Z_BEST_SPEED);
|
|
err := deflateInit(c_stream, Z_BEST_SPEED);
|
|
CHECK_ERR(err, 'deflateInit');
|
|
CHECK_ERR(err, 'deflateInit');
|
|
|
|
|
|
@@ -349,10 +338,6 @@ var
|
|
begin
|
|
begin
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
|
|
|
|
- d_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- d_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- d_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
-
|
|
|
|
d_stream.next_in := compr;
|
|
d_stream.next_in := compr;
|
|
d_stream.avail_in := cardinal(comprLen);
|
|
d_stream.avail_in := cardinal(comprLen);
|
|
|
|
|
|
@@ -394,10 +379,6 @@ var
|
|
|
|
|
|
begin
|
|
begin
|
|
len := strlen(hello)+1;
|
|
len := strlen(hello)+1;
|
|
- c_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- c_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- c_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
-
|
|
|
|
err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
|
|
err := deflateInit(c_stream, Z_DEFAULT_COMPRESSION);
|
|
CHECK_ERR(err, 'deflateInit');
|
|
CHECK_ERR(err, 'deflateInit');
|
|
|
|
|
|
@@ -435,10 +416,6 @@ var
|
|
begin
|
|
begin
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
|
|
|
|
- d_stream.zalloc := NIL; {alloc_func(0);}
|
|
|
|
- d_stream.zfree := NIL; {free_func(0);}
|
|
|
|
- d_stream.opaque := NIL; {voidpf(0);}
|
|
|
|
-
|
|
|
|
d_stream.next_in := compr;
|
|
d_stream.next_in := compr;
|
|
d_stream.avail_in := 2; { just read the zlib header }
|
|
d_stream.avail_in := 2; { just read the zlib header }
|
|
|
|
|
|
@@ -478,10 +455,6 @@ var
|
|
c_stream : z_stream; { compression stream }
|
|
c_stream : z_stream; { compression stream }
|
|
err : integer;
|
|
err : integer;
|
|
begin
|
|
begin
|
|
- c_stream.zalloc := NIL; {(alloc_func)0;}
|
|
|
|
- c_stream.zfree := NIL; {(free_func)0;}
|
|
|
|
- c_stream.opaque := NIL; {(voidpf)0;}
|
|
|
|
-
|
|
|
|
err := deflateInit(c_stream, Z_BEST_COMPRESSION);
|
|
err := deflateInit(c_stream, Z_BEST_COMPRESSION);
|
|
CHECK_ERR(err, 'deflateInit');
|
|
CHECK_ERR(err, 'deflateInit');
|
|
|
|
|
|
@@ -517,10 +490,6 @@ var
|
|
begin
|
|
begin
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
strcopy(PChar(uncompr), 'garbage');
|
|
|
|
|
|
- d_stream.zalloc := NIL; { alloc_func(0); }
|
|
|
|
- d_stream.zfree := NIL; { free_func(0); }
|
|
|
|
- d_stream.opaque := NIL; { voidpf(0); }
|
|
|
|
-
|
|
|
|
d_stream.next_in := compr;
|
|
d_stream.next_in := compr;
|
|
d_stream.avail_in := cardinal(comprLen);
|
|
d_stream.avail_in := cardinal(comprLen);
|
|
|
|
|