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-github-16f4723398c0e4c21d9a94539022ac1a4358b5f2.tar.gz |
names & names
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lzio.h,v 1.10 2002/06/03 17:46:34 roberto Exp roberto $ +** $Id: lzio.h,v 1.11 2002/06/03 20:11:07 roberto Exp roberto $ ** Buffered streams ** See Copyright Notice in lua.h */ @@ -24,7 +24,7 @@ typedef struct zio ZIO; #define zname(z) ((z)->name) -void luaZ_init (ZIO *z, lua_Getblock getblock, void *ud, const char *name); +void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name); size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */ int luaZ_lookahead (ZIO *z); @@ -34,8 +34,8 @@ int luaZ_lookahead (ZIO *z); struct zio { size_t n; /* bytes still unread */ const char *p; /* current position in buffer */ - lua_Getblock getblock; - void* ud; /* additional data */ + lua_Chunkreader reader; + void* data; /* additional data */ const char *name; }; |