mirror of
https://github.com/lua/lua
synced 2024-11-22 12:51:30 +03:00
new macro 'zungetc'
This commit is contained in:
parent
92479f1a8b
commit
6956331093
5
lzio.h
5
lzio.h
@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lzio.h,v 1.20 2005/04/25 19:24:10 roberto Exp roberto $
|
||||
** $Id: lzio.h,v 1.21 2005/05/17 19:49:15 roberto Exp roberto $
|
||||
** Buffered streams
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@ -21,6 +21,9 @@ typedef struct Zio ZIO;
|
||||
|
||||
#define zgetc(z) (((z)->n--)>0 ? char2int(*(z)->p++) : luaZ_fill(z))
|
||||
|
||||
#define zungetc(z) ((z)->n++, (z)->p--)
|
||||
|
||||
|
||||
typedef struct Mbuffer {
|
||||
char *buffer;
|
||||
size_t n;
|
||||
|
Loading…
Reference in New Issue
Block a user