From 85e1ca823560f9969745d26aaebad7c11ebcaff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=A6gis?= Date: Fri, 28 Sep 2012 17:57:46 +0200 Subject: [PATCH] Make enum values of HTokenType in hammer.h explicit --- src/hammer.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/hammer.h b/src/hammer.h index a219dfe..4f21e29 100644 --- a/src/hammer.h +++ b/src/hammer.h @@ -32,14 +32,15 @@ typedef int bool; typedef struct HParseState_ HParseState; typedef enum HTokenType_ { - TT_NONE, - TT_BYTES, - TT_SINT, - TT_UINT, - TT_SEQUENCE, + // Before you change the explicit values of these, think of the poor bindings ;_; + TT_NONE = 1, + TT_BYTES = 2, + TT_SINT = 4, + TT_UINT = 8, + TT_SEQUENCE = 16, + TT_ERR = 32, TT_USER = 64, - TT_ERR, - TT_MAX + TT_MAX = 128 } HTokenType; typedef struct HCountedArray_ {