diff options
Diffstat (limited to 'lzio.h')
-rw-r--r-- | lzio.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lzio.h,v 1.13 2002/08/05 18:45:02 roberto Exp roberto $ | 2 | ** $Id: lzio.h,v 1.14 2002/10/08 18:46:08 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 | */ |
@@ -15,9 +15,10 @@ | |||
15 | 15 | ||
16 | typedef struct Zio ZIO; | 16 | typedef struct Zio ZIO; |
17 | 17 | ||
18 | #define zgetc(z) (((z)->n--)>0 ? \ | 18 | |
19 | cast(int, cast(unsigned char, *(z)->p++)) : \ | 19 | #define char2int(c) cast(int, cast(unsigned char, (c))) |
20 | luaZ_fill(z)) | 20 | |
21 | #define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z)) | ||
21 | 22 | ||
22 | #define zname(z) ((z)->name) | 23 | #define zname(z) ((z)->name) |
23 | 24 | ||