names & names

This commit is contained in:
Roberto Ierusalimschy
2002-06-06 09:40:22 -03:00
parent f1c43bbe19
commit 16f4723398
5 changed files with 27 additions and 28 deletions

8
lzio.h
View File

@@ -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;
};