summaryrefslogtreecommitdiff
path: root/lzio.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.c')
-rw-r--r--lzio.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lzio.c b/lzio.c
index fe0e18cd..b693f636 100644
--- a/lzio.c
+++ b/lzio.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.c,v 1.17 2002/06/03 17:46:34 roberto Exp roberto $ 2** $Id: lzio.c,v 1.18 2002/06/03 20:11:07 roberto Exp roberto $
3** a generic input stream interface 3** a generic input stream interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -16,7 +16,7 @@
16 16
17int luaZ_fill (ZIO *z) { 17int luaZ_fill (ZIO *z) {
18 size_t size; 18 size_t size;
19 const char *buff = z->getblock(z->ud, &size); 19 const char *buff = z->reader(z->data, &size);
20 if (buff == NULL || size == 0) return EOZ; 20 if (buff == NULL || size == 0) return EOZ;
21 z->n = size - 1; 21 z->n = size - 1;
22 z->p = buff; 22 z->p = buff;
@@ -35,9 +35,9 @@ int luaZ_lookahead (ZIO *z) {
35} 35}
36 36
37 37
38void luaZ_init (ZIO *z, lua_Getblock getblock, void *ud, const char *name) { 38void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name) {
39 z->getblock = getblock; 39 z->reader = reader;
40 z->ud = ud; 40 z->data = data;
41 z->name = name; 41 z->name = name;
42 z->n = 0; 42 z->n = 0;
43 z->p = NULL; 43 z->p = NULL;