lua_Chunkreader gets a lua_State, to avoid future incompatibilities

This commit is contained in:
Roberto Ierusalimschy
2002-08-06 14:26:45 -03:00
parent 634344d61f
commit d3dd337fca
3 changed files with 9 additions and 7 deletions

4
lzio.c
View File

@@ -1,5 +1,5 @@
/*
** $Id: lzio.c,v 1.19 2002/06/06 12:40:22 roberto Exp roberto $
** $Id: lzio.c,v 1.20 2002/08/05 18:45:02 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->reader(z->data, &size);
const char *buff = z->reader(NULL, z->data, &size);
if (buff == NULL || size == 0) return EOZ;
z->n = size - 1;
z->p = buff;