diff options
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.25 2011/07/15 12:35:32 roberto Exp roberto $ | 2 | ** $Id: lzio.h,v 1.26 2011/07/15 12:48:03 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 | */ |
@@ -45,7 +45,7 @@ typedef struct Mbuffer { | |||
45 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); | 45 | LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n); |
46 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, | 46 | LUAI_FUNC void luaZ_init (lua_State *L, ZIO *z, lua_Reader reader, |
47 | void *data); | 47 | void *data); |
48 | LUAI_FUNC size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ | 48 | LUAI_FUNC size_t luaZ_read (ZIO* z, void *b, size_t n); /* read next n bytes */ |
49 | 49 | ||
50 | 50 | ||
51 | 51 | ||
@@ -55,7 +55,7 @@ struct Zio { | |||
55 | size_t n; /* bytes still unread */ | 55 | size_t n; /* bytes still unread */ |
56 | const char *p; /* current position in buffer */ | 56 | const char *p; /* current position in buffer */ |
57 | lua_Reader reader; /* reader function */ | 57 | lua_Reader reader; /* reader function */ |
58 | void* data; /* additional data */ | 58 | void *data; /* additional data */ |
59 | lua_State *L; /* Lua state (for reader) */ | 59 | lua_State *L; /* Lua state (for reader) */ |
60 | }; | 60 | }; |
61 | 61 | ||