summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'types.h')
-rw-r--r--types.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/types.h b/types.h
index 2e9383f..388727c 100644
--- a/types.h
+++ b/types.h
@@ -130,9 +130,9 @@ typedef enum {
TOKEN_KW,
TOKEN_IDENT,
TOKEN_DIRECT,
- TOKEN_NUM_LITERAL,
- TOKEN_CHAR_LITERAL,
- TOKEN_STR_LITERAL,
+ TOKEN_LITERAL_NUM,
+ TOKEN_LITERAL_CHAR,
+ TOKEN_LITERAL_STR,
TOKEN_EOF
} TokenKind;
@@ -495,7 +495,7 @@ typedef struct Declaration {
Location where;
Identifier *idents;
Type type;
- uint16_t flags;
+ U16 flags;
Expression expr;
Value val; /* only for constant decls. */
@@ -550,6 +550,7 @@ typedef struct {
bool returning;
Value ret_val;
void **to_free; /* an array of data to free for this scope. */
+ bool enabled;
} Evaluator;
typedef struct Typer {