no need of lookahead in Zio

This commit is contained in:
Roberto Ierusalimschy
2011-02-23 10:13:10 -03:00
parent 03b769053a
commit 7482e8f914
8 changed files with 29 additions and 41 deletions

4
lzio.h
View File

@@ -1,5 +1,5 @@
/*
** $Id: lzio.h,v 1.22 2009/05/18 17:26:25 roberto Exp roberto $
** $Id: lzio.h,v 1.23 2011/02/17 17:34:16 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
@@ -50,7 +50,6 @@ LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
void *data);
LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
LUAI_FUNC int luaZ_lookahead (ZIO *z);
@@ -62,7 +61,6 @@ struct Zio {
lua_Reader reader; /* reader function */
void* data; /* additional data */
lua_State *L; /* Lua state (for reader) */
int eoz; /* true if reader has no more data */
};