names & names

This commit is contained in:
Roberto Ierusalimschy
2002-06-06 09:40:22 -03:00
parent f1c43bbe19
commit 16f4723398
5 changed files with 27 additions and 28 deletions

10
lzio.c
View File

@@ -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;