From c787dccd9b5c3e55547a2c4bb598c0276de65034 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 16 Aug 1999 17:52:00 -0300 Subject: "const" !!! --- lzio.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'lzio.h') diff --git a/lzio.h b/lzio.h index 94b79da4..448ef059 100644 --- a/lzio.h +++ b/lzio.h @@ -1,5 +1,5 @@ /* -** $Id: lzio.h,v 1.3 1997/12/22 20:57:18 roberto Exp roberto $ +** $Id: lzio.h,v 1.4 1998/01/09 14:57:43 roberto Exp roberto $ ** Buffered streams ** See Copyright Notice in lua.h */ @@ -22,9 +22,9 @@ typedef struct zio ZIO; -ZIO* zFopen (ZIO* z, FILE* f, char *name); /* open FILEs */ -ZIO* zsopen (ZIO* z, char* s, char *name); /* string */ -ZIO* zmopen (ZIO* z, char* b, int size, char *name); /* memory */ +ZIO* zFopen (ZIO* z, FILE* f, const char *name); /* open FILEs */ +ZIO* zsopen (ZIO* z, const char* s, const char *name); /* string */ +ZIO* zmopen (ZIO* z, const char* b, int size, const char *name); /* memory */ int zread (ZIO* z, void* b, int n); /* read next n bytes */ @@ -38,12 +38,12 @@ int zread (ZIO* z, void* b, int n); /* read next n bytes */ #define ZBSIZE 256 /* buffer size */ struct zio { - int n; /* bytes still unread */ - unsigned char* p; /* current position in buffer */ - int (*filbuf)(ZIO* z); - void* u; /* additional data */ - char *name; - unsigned char buffer[ZBSIZE]; /* buffer */ + int n; /* bytes still unread */ + const unsigned char* p; /* current position in buffer */ + int (*filbuf)(ZIO* z); + void* u; /* additional data */ + const char *name; + unsigned char buffer[ZBSIZE]; /* buffer */ }; -- cgit v1.2.3-55-g6feb