aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-23 10:13:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-02-23 10:13:10 -0300
commit7482e8f914fbf198af02c2970cf0aadd80740f92 (patch)
tree56578e184ca11939edc00272d63bc801e2b67a5a /lzio.h
parent03b769053a4288742fb4739fa47508ec735e2036 (diff)
downloadlua-7482e8f914fbf198af02c2970cf0aadd80740f92.tar.gz
lua-7482e8f914fbf198af02c2970cf0aadd80740f92.tar.bz2
lua-7482e8f914fbf198af02c2970cf0aadd80740f92.zip
no need of lookahead in Zio
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lzio.h b/lzio.h
index 36a00900..2c666ab3 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.h,v 1.22 2009/05/18 17:26:25 roberto Exp roberto $ 2** $Id: lzio.h,v 1.23 2011/02/17 17:34:16 roberto Exp roberto $
3** Buffered streams 3** Buffered streams
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -50,7 +50,6 @@ LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
50LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, 50LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
51 void *data); 51 void *data);
52LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ 52LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
53LUAI_FUNC int luaZ_lookahead (ZIO *z);
54 53
55 54
56 55
@@ -62,7 +61,6 @@ struct Zio {
62 lua_Reader reader; /* reader function */ 61 lua_Reader reader; /* reader function */
63 void* data; /* additional data */ 62 void* data; /* additional data */
64 lua_State *L; /* Lua state (for reader) */ 63 lua_State *L; /* Lua state (for reader) */
65 int eoz; /* true if reader has no more data */
66}; 64};
67 65
68 66