summaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-17 15:34:16 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-17 15:34:16 -0200
commit3c710f056b683136a342bc5bf88d852717cd0d33 (patch)
tree39faa6d42d6b512d482d6afe0bc01de14ff0315d /lzio.h
parentc0a865fa54b3c692af3783bd9470b8c0537b77b4 (diff)
downloadlua-github-3c710f056b683136a342bc5bf88d852717cd0d33.tar.gz
small bug: may call reader function again after it returned end
of input
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lzio.h b/lzio.h
index 07365ad1..36a00900 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
/*
-** $Id: lzio.h,v 1.21 2005/05/17 19:49:15 roberto Exp roberto $
+** $Id: lzio.h,v 1.22 2009/05/18 17:26:25 roberto Exp roberto $
** Buffered streams
** See Copyright Notice in lua.h
*/
@@ -59,9 +59,10 @@ LUAI_FUNC int luaZ_lookahead (ZIO *z);
struct Zio {
size_t n; /* bytes still unread */
const char *p; /* current position in buffer */
- lua_Reader reader;
+ 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 */
};