diff options
Diffstat (limited to 'include/token.h')
-rw-r--r-- | include/token.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/token.h b/include/token.h index edff1d2..6c5eb5e 100644 --- a/include/token.h +++ b/include/token.h @@ -61,9 +61,9 @@ enum token_type { /* A token in our template */ struct token { enum token_type type; - struct slice literal; - size_t line; - size_t column; + struct slice literal; + size_t line; + size_t column; }; /* Intialize our keywords hashmap */ @@ -73,7 +73,7 @@ void token_init_keywords(void); enum token_type token_lookup_ident(const struct slice *ident); /* Return a C string with the token type name */ -inline const char *token_type_print(enum token_type); +const char *token_type_print(enum token_type); /* Concatenate this token to a sds string */ sds token_string(struct token *, sds str); |