diff options
Diffstat (limited to 'parts/toklist.h')
| -rw-r--r-- | parts/toklist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/parts/toklist.h b/parts/toklist.h index 760846f..08fce66 100644 --- a/parts/toklist.h +++ b/parts/toklist.h @@ -1,12 +1,13 @@ #ifndef TOKLIST_H #define TOKLIST_H +#include <stdint.h> // intptr_t #include "symbol.h" struct token; -symbol token_sym(struct token *t); // UB for NULL -int token_val(struct token *t); // UB for NULL +symbol token_sym(struct token *t); // t != NULL +intptr_t token_val(struct token *t); // t != NULL struct token *toklist_eat(); // always non-NULL struct token *toklist_peek(); // always non-NULL |
