names & names
This commit is contained in:
10
lzio.c
10
lzio.c
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lzio.c,v 1.17 2002/06/03 17:46:34 roberto Exp roberto $
|
||||
** $Id: lzio.c,v 1.18 2002/06/03 20:11:07 roberto Exp roberto $
|
||||
** a generic input stream interface
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
int luaZ_fill (ZIO *z) {
|
||||
size_t size;
|
||||
const char *buff = z->getblock(z->ud, &size);
|
||||
const char *buff = z->reader(z->data, &size);
|
||||
if (buff == NULL || size == 0) return EOZ;
|
||||
z->n = size - 1;
|
||||
z->p = buff;
|
||||
@@ -35,9 +35,9 @@ int luaZ_lookahead (ZIO *z) {
|
||||
}
|
||||
|
||||
|
||||
void luaZ_init (ZIO *z, lua_Getblock getblock, void *ud, const char *name) {
|
||||
z->getblock = getblock;
|
||||
z->ud = ud;
|
||||
void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name) {
|
||||
z->reader = reader;
|
||||
z->data = data;
|
||||
z->name = name;
|
||||
z->n = 0;
|
||||
z->p = NULL;
|
||||
|
||||
Reference in New Issue
Block a user