diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-06 09:40:22 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-06-06 09:40:22 -0300 |
commit | 16f4723398c0e4c21d9a94539022ac1a4358b5f2 (patch) | |
tree | f857f34c92f882f302981644d6bb4ea5a71fae78 /lzio.h | |
parent | f1c43bbe19026b80b5185cbdd6dec6230028a999 (diff) | |
download | lua-16f4723398c0e4c21d9a94539022ac1a4358b5f2.tar.gz lua-16f4723398c0e4c21d9a94539022ac1a4358b5f2.tar.bz2 lua-16f4723398c0e4c21d9a94539022ac1a4358b5f2.zip |
names & names
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 | ||