Finish const poisoning.

This commit is contained in:
mycroft 2003-03-18 20:00:47 +00:00
parent ecd973b46f
commit 4d7fb7469d
5 changed files with 18 additions and 18 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: infblock.c,v 1.4 2002/03/12 00:42:23 fvdl Exp $ */
/* $NetBSD: infblock.c,v 1.5 2003/03/18 20:00:47 mycroft Exp $ */
/* infblock.c -- interpret and process block types to last block
* Copyright (C) 1995-2002 Mark Adler
@ -157,7 +157,7 @@ int r;
s->last ? " (last)" : ""));
{
uInt bl, bd;
inflate_huft *tl, *td;
const inflate_huft *tl, *td;
inflate_trees_fixed(&bl, &bd, &tl, &td, z);
s->sub.decode.codes = inflate_codes_new(bl, bd, tl, td, z);

View File

@ -1,4 +1,4 @@
/* $NetBSD: infcodes.c,v 1.4 2002/03/12 00:42:23 fvdl Exp $ */
/* $NetBSD: infcodes.c,v 1.5 2003/03/18 20:00:47 mycroft Exp $ */
/* infcodes.c -- process literals and length/distance pairs
* Copyright (C) 1995-2002 Mark Adler
@ -39,7 +39,7 @@ struct inflate_codes_state {
uInt len;
union {
struct {
inflate_huft *tree; /* pointer into tree */
const inflate_huft *tree; /* pointer into tree */
uInt need; /* bits needed */
} code; /* if LEN or DIST, where in tree */
uInt lit; /* if LIT, literal */
@ -52,16 +52,16 @@ struct inflate_codes_state {
/* mode independent information */
Byte lbits; /* ltree bits decoded per branch */
Byte dbits; /* dtree bits decoder per branch */
inflate_huft *ltree; /* literal/length/eob tree */
inflate_huft *dtree; /* distance tree */
const inflate_huft *ltree; /* literal/length/eob tree */
const inflate_huft *dtree; /* distance tree */
};
inflate_codes_statef *inflate_codes_new(bl, bd, tl, td, z)
uInt bl, bd;
inflate_huft *tl;
inflate_huft *td; /* need separate declaration for Borland C++ */
const inflate_huft *tl;
const inflate_huft *td; /* need separate declaration for Borland C++ */
z_streamp z;
{
inflate_codes_statef *c;
@ -86,7 +86,7 @@ z_streamp z;
int r;
{
uInt j; /* temporary storage */
inflate_huft *t; /* temporary pointer */
const inflate_huft *t;/* temporary pointer */
uInt e; /* extra bits or operation */
uLong b; /* bit buffer */
uInt k; /* bits in bit buffer */

View File

@ -1,4 +1,4 @@
/* $NetBSD: infcodes.h,v 1.4 2002/03/12 00:42:23 fvdl Exp $ */
/* $NetBSD: infcodes.h,v 1.5 2003/03/18 20:00:48 mycroft Exp $ */
/* infcodes.h -- header to use infcodes.c
* Copyright (C) 1995-2002 Mark Adler
@ -15,7 +15,7 @@ typedef struct inflate_codes_state FAR inflate_codes_statef;
extern inflate_codes_statef *inflate_codes_new __P((
uInt, uInt,
inflate_huft *, inflate_huft *,
const inflate_huft *, const inflate_huft *,
z_streamp ));
extern int inflate_codes __P((

View File

@ -1,4 +1,4 @@
/* $NetBSD: inffast.c,v 1.4 2002/03/12 00:42:23 fvdl Exp $ */
/* $NetBSD: inffast.c,v 1.5 2003/03/18 20:00:48 mycroft Exp $ */
/* inffast.c -- process literals and length/distance pairs fast
* Copyright (C) 1995-2002 Mark Adler
@ -29,12 +29,12 @@ struct inflate_codes_state {int dummy;}; /* for buggy compilers */
int inflate_fast(bl, bd, tl, td, s, z)
uInt bl, bd;
inflate_huft *tl;
inflate_huft *td; /* need separate declaration for Borland C++ */
const inflate_huft *tl;
const inflate_huft *td; /* need separate declaration for Borland C++ */
inflate_blocks_statef *s;
z_streamp z;
{
inflate_huft *t; /* temporary pointer */
const inflate_huft *t;/* temporary pointer */
uInt e; /* extra bits or operation */
uLong b; /* bit buffer */
uInt k; /* bits in bit buffer */

View File

@ -1,4 +1,4 @@
/* $NetBSD: inffast.h,v 1.4 2002/03/12 00:42:24 fvdl Exp $ */
/* $NetBSD: inffast.h,v 1.5 2003/03/18 20:00:48 mycroft Exp $ */
/* inffast.h -- header to use inffast.c
* Copyright (C) 1995-2002 Mark Adler
@ -13,7 +13,7 @@
extern int inflate_fast __P((
uInt,
uInt,
inflate_huft *,
inflate_huft *,
const inflate_huft *,
const inflate_huft *,
inflate_blocks_statef *,
z_streamp ));