new macro 'zungetc'

This commit is contained in:
Roberto Ierusalimschy 2009-05-18 14:26:25 -03:00
parent 92479f1a8b
commit 6956331093

5
lzio.h
View File

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