massage glue api around some, add a bunch of dummy declarations
This commit is contained in:
parent
71cdd46ceb
commit
70aaf1308c
4 changed files with 46 additions and 24 deletions
10
src/hammer.h
10
src/hammer.h
|
|
@ -54,13 +54,15 @@ typedef struct HCountedArray_ {
|
|||
struct HParsedToken_ **elements;
|
||||
} HCountedArray;
|
||||
|
||||
typedef struct HBytes_ {
|
||||
const uint8_t *token;
|
||||
size_t len;
|
||||
} HBytes;
|
||||
|
||||
typedef struct HParsedToken_ {
|
||||
HTokenType token_type;
|
||||
union {
|
||||
struct {
|
||||
const uint8_t *token;
|
||||
size_t len;
|
||||
} bytes;
|
||||
HBytes bytes;
|
||||
int64_t sint;
|
||||
uint64_t uint;
|
||||
double dbl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue