--- a/BZip2Stream.st Thu Jul 07 17:02:28 2005 +0200
+++ b/BZip2Stream.st Fri Jul 08 19:30:35 2005 +0200
@@ -288,6 +288,8 @@
outTotal := outputBytes size.
%{
+ extern char *malloc();
+
zstream_s * _zstream = (zstream_s *) malloc( sizeof(zstream_s) );
if( _zstream )
@@ -353,5 +355,5 @@
!BZip2Stream class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic2/BZip2Stream.st,v 1.7 2003-08-29 19:31:11 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic2/BZip2Stream.st,v 1.8 2005-07-08 17:30:34 cg Exp $'
! !
--- a/ZipArchive.st Thu Jul 07 17:02:28 2005 +0200
+++ b/ZipArchive.st Fri Jul 08 19:30:35 2005 +0200
@@ -283,7 +283,7 @@
unsigned *xp; /* pointer into x */
int y; /* number of dummy codes added */
unsigned z; /* number of entries in current table */
-
+ extern char *malloc();
/* Generate counts for each bit length */
el = n > 256 ? b[256] : BMAX; /* set length of EOB code, if any */
@@ -970,10 +970,11 @@
char *in, *out;
{
int rslt;
+ extern char *malloc();
inPtr = in;
outPtr = out;
- slide = (char *)malloc(WSIZE+2);
+ slide = malloc(WSIZE+2);
if (! slide) return 1;
rslt = inflate();
@@ -1740,7 +1741,7 @@
!ZipArchive class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libbasic2/ZipArchive.st,v 1.46 2005-03-01 13:47:05 stefan Exp $'
+ ^ '$Header: /cvs/stx/stx/libbasic2/ZipArchive.st,v 1.47 2005-07-08 17:30:35 cg Exp $'
! !
ZipArchive initialize!