summaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-12-01 10:20:04 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2019-12-01 10:20:04 -0500
commite252df25d86bb17d73bcbacbf1208a6223093ec1 (patch)
treee58df41ca83f044e7beb636396ccca080ad95948 /types.h
parent0f26f41c326f4dab86cdd1791e08d03d624eeb99 (diff)
improved vbs (now its done during typing instead of parsing)
Diffstat (limited to 'types.h')
-rw-r--r--types.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/types.h b/types.h
index 1faf498..0c1c628 100644
--- a/types.h
+++ b/types.h
@@ -650,14 +650,13 @@ enum {
RET_HAS_EXPR = 0x01,
};
typedef struct Return {
- uint16_t flags;
+ U16 flags;
Expression expr;
} Return;
enum {
- STMT_VOIDED_EXPR = 0x01, /* the "4;" in fn () { 4; } is a voided expression, but the "4" in fn () int { 4 } is not */
+ STMT_EXPR_NO_SEMICOLON = 0x01,
};
-
typedef struct Statement {
Location where;
StatementKind kind;