diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-05-17 16:49:15 -0300 |
commit | 67578ec51f1a3ec2c967f15d370067caf9e0b87b (patch) | |
tree | d77b292ddec33d7e6987bae808fa1db250ebd830 /lzio.h | |
parent | c2bb9abceceef125554595e23b7cc18ad3555c7c (diff) | |
download | lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.gz lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.tar.bz2 lua-67578ec51f1a3ec2c967f15d370067caf9e0b87b.zip |
several small details
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 | ||
46 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); | 46 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); |
47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Chunkreader reader, | 47 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, |
48 | void *data); | 48 | void *data); |
49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ | 49 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ |
50 | LUAI_FUNC int luaZ_lookahead (ZIO *z); | 50 | LUAI_FUNC int luaZ_lookahead (ZIO *z); |
@@ -56,7 +56,7 @@ LUAI_FUNC int luaZ_lookahead (ZIO *z); | |||
56 | struct Zio { | 56 | struct 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 | }; |