Make enum values of HTokenType in hammer.h explicit
This commit is contained in:
parent
c246642d3e
commit
85e1ca8235
1 changed files with 8 additions and 7 deletions
15
src/hammer.h
15
src/hammer.h
|
|
@ -32,14 +32,15 @@ typedef int bool;
|
||||||
typedef struct HParseState_ HParseState;
|
typedef struct HParseState_ HParseState;
|
||||||
|
|
||||||
typedef enum HTokenType_ {
|
typedef enum HTokenType_ {
|
||||||
TT_NONE,
|
// Before you change the explicit values of these, think of the poor bindings ;_;
|
||||||
TT_BYTES,
|
TT_NONE = 1,
|
||||||
TT_SINT,
|
TT_BYTES = 2,
|
||||||
TT_UINT,
|
TT_SINT = 4,
|
||||||
TT_SEQUENCE,
|
TT_UINT = 8,
|
||||||
|
TT_SEQUENCE = 16,
|
||||||
|
TT_ERR = 32,
|
||||||
TT_USER = 64,
|
TT_USER = 64,
|
||||||
TT_ERR,
|
TT_MAX = 128
|
||||||
TT_MAX
|
|
||||||
} HTokenType;
|
} HTokenType;
|
||||||
|
|
||||||
typedef struct HCountedArray_ {
|
typedef struct HCountedArray_ {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue