aboutsummaryrefslogtreecommitdiff
path: root/lzio.h
diff options
context:
space:
mode:
Diffstat (limited to 'lzio.h')
-rw-r--r--lzio.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lzio.h b/lzio.h
index e24c4f0e..a0dfa091 100644
--- a/lzio.h
+++ b/lzio.h
@@ -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
27void luaZ_init (ZIO *z, lua_Getblock getblock, void *ud, const char *name); 27void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name);
28size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */ 28size_t luaZ_zread (ZIO* z, void* b, size_t n); /* read next n bytes */
29int luaZ_lookahead (ZIO *z); 29int luaZ_lookahead (ZIO *z);
30 30
@@ -34,8 +34,8 @@ int luaZ_lookahead (ZIO *z);
34struct zio { 34struct 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