aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lzio.h b/lzio.h
index e18b9fbb..85843679 100644
--- a/lzio.h
+++ b/lzio.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lzio.h,v 1.19 2003/10/03 16:05:34 roberto Exp roberto $ 2** $Id: lzio.h,v 1.20 2005/04/25 19:24:10 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*/
@@ -44,7 +44,7 @@ typedef struct Mbuffer {
44 44
45 45
46LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); 46LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
47LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Chunkreader reader, 47LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader,
48 void *data); 48 void *data);
49LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ 49LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */
50LUAI_FUNC int luaZ_lookahead (ZIO *z); 50LUAI_FUNC int luaZ_lookahead (ZIO *z);
@@ -56,7 +56,7 @@ LUAI_FUNC int luaZ_lookahead (ZIO *z);
56struct Zio { 56struct Zio {
57 size_t n; /* bytes still unread */ 57 size_t n; /* bytes still unread */
58 const char *p; /* current position in buffer */ 58 const char *p; /* current position in buffer */
59 lua_Chunkreader reader; 59 lua_Reader reader;
60 void* data; /* additional data */ 60 void* data; /* additional data */
61 lua_State *L; /* Lua state (for reader) */ 61 lua_State *L; /* Lua state (for reader) */
62}; 62};