summaryrefslogtreecommitdiffstats
path: root/src/parser.l
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-09-17 17:10:58 -0400
committerJesse Luehrs <doy@tozt.net>2014-09-17 17:10:58 -0400
commit801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb (patch)
tree9f30308b9df0a872ff95f68e4ebe3d070fd1fef6 /src/parser.l
parent858dfa5e53f2068b0b88eb5ebdaef5afc5f0301d (diff)
downloadlibvt100-801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb.tar.gz
libvt100-801e922ddd37ec15ccb8dd16cca9c587b7c1d6fb.zip
hide the parser state
this shouldn't be public (none of the parser stuff should be), but the way i was doing before with redefining certain types from parser.h was causing warnings on clang.
Diffstat (limited to 'src/parser.l')
-rw-r--r--src/parser.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.l b/src/parser.l
index 6594358..7471074 100644
--- a/src/parser.l
+++ b/src/parser.l
@@ -3,6 +3,8 @@
#include "vt100.h"
+#define UNUSED(x) ((void)x)
+
#define VT100_PARSER_CSI_MAX_PARAMS 256
#define YY_EXIT_FAILURE (UNUSED(yyscanner), 2)