* - added inflateIncomp and deflateOutputPending
* - allow strm->next_out to be NULL, meaning discard the output
*
- * $Id: zlib.c,v 1.8 1997/11/27 06:03:32 paulus Exp $
+ * $Id: zlib.c,v 1.11 1998/09/13 23:37:12 paulus Exp $
*/
/*
- * ==FILEVERSION 971127==
+ * ==FILEVERSION 971210==
*
* This marker is used by the Linux installation script to determine
* whether an up-to-date version of this file is already installed.
#include <sys/types.h>
#include <sys/time.h>
#include <sys/systm.h>
+#undef u
# define HAVE_MEMCPY
# define memcpy(d, s, n) bcopy((s), (d), (n))
# define memset(d, v, n) bzero((d), (n))
if (len > strm->avail_out) len = strm->avail_out;
if (len == 0) return;
- if (strm->next_out != NULL) {
+ if (strm->next_out != Z_NULL) {
zmemcpy(strm->next_out, s->pending_out, len);
strm->next_out += len;
}
return Z_STREAM_ERROR;
ss = (deflate_state *) source->state;
- *dest = *source;
+ zmemcpy(dest, source, sizeof(*dest));
ds = (deflate_state *) ZALLOC(dest, 1, sizeof(deflate_state));
if (ds == Z_NULL) return Z_MEM_ERROR;
dest->state = (struct internal_state FAR *) ds;
- *ds = *ss;
+ zmemcpy(ds, ss, sizeof(*ds));
ds->strm = dest;
ds->window = (Bytef *) ZALLOC(dest, ds->w_size, 2*sizeof(Byte));
z->adler = s->check = (*s->checkfn)(s->check, q, n);
/* copy as far as end of window */
- if (p != NULL) {
+ if (p != Z_NULL) {
zmemcpy(p, q, n);
p += n;
}
z->adler = s->check = (*s->checkfn)(s->check, q, n);
/* copy */
- if (p != NULL) {
+ if (p != Z_NULL) {
zmemcpy(p, q, n);
p += n;
}