diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-08-25 16:51:54 -0300 |
commit | 9fcc48517659c72de43bece515fdd5cea88c07f8 (patch) | |
tree | ad065ea1c7e2c0f6781e366e9a2e95b4cadb1780 /lzio.h | |
parent | 64066359dda2a0920d307e901185faf78cc32b97 (diff) | |
download | lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.gz lua-9fcc48517659c72de43bece515fdd5cea88c07f8.tar.bz2 lua-9fcc48517659c72de43bece515fdd5cea88c07f8.zip |
zio does not keep "source" name (nobody uses it)
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lzio.h,v 1.14 2002/10/08 18:46:08 roberto Exp roberto $ | 2 | ** $Id: lzio.h,v 1.15 2003/03/20 16:00:56 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 | */ |
@@ -20,9 +20,7 @@ typedef struct Zio ZIO; | |||
20 | 20 | ||
21 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) | 21 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) |
22 | 22 | ||
23 | #define zname(z) ((z)->name) | 23 | void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data); |
24 | |||
25 | void luaZ_init (ZIO *z, lua_Chunkreader reader, void *data, const char *name); | ||
26 | size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ | 24 | size_t luaZ_read (ZIO* z, void* b, size_t n); /* read next n bytes */ |
27 | int luaZ_lookahead (ZIO *z); | 25 | int luaZ_lookahead (ZIO *z); |
28 | 26 | ||
@@ -55,7 +53,6 @@ struct Zio { | |||
55 | const char *p; /* current position in buffer */ | 53 | const char *p; /* current position in buffer */ |
56 | lua_Chunkreader reader; | 54 | lua_Chunkreader reader; |
57 | void* data; /* additional data */ | 55 | void* data; /* additional data */ |
58 | const char *name; | ||
59 | }; | 56 | }; |
60 | 57 | ||
61 | 58 | ||