diff options
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lzio.h,v 1.10 2002/06/03 17:46:34 roberto Exp roberto $ | 2 | ** $Id: lzio.h,v 1.11 2002/06/03 20:11:07 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 | */ |
@@ -24,7 +24,7 @@ typedef struct zio ZIO; | |||
24 | 24 | ||
25 | #define zname(z) ((z)->name) | 25 | #define zname(z) ((z)->name) |
26 | 26 | ||
27 | void luaZ_init (ZIO *z, lua_Getblock getblock, void *ud, const char *name); | 27 | void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name); |
28 | size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */ | 28 | size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */ |
29 | int luaZ_lookahead (ZIO *z); | 29 | int luaZ_lookahead (ZIO *z); |
30 | 30 | ||
@@ -34,8 +34,8 @@ int luaZ_lookahead (ZIO *z); | |||
34 | struct zio { | 34 | struct zio { |
35 | size_t n; /* bytes still unread */ | 35 | size_t n; /* bytes still unread */ |
36 | const char *p; /* current position in buffer */ | 36 | const char *p; /* current position in buffer */ |
37 | lua_Getblock getblock; | 37 | lua_Chunkreader reader; |
38 | void* ud; /* additional data */ | 38 | void* data; /* additional data */ |
39 | const char *name; | 39 | const char *name; |
40 | }; | 40 | }; |
41 | 41 | ||