diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-09 17:59:04 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-09 17:59:04 -0500 |
commit | 6f4074136719bd7ec612e8357596fe3e884c3bf7 (patch) | |
tree | 68a0800330df91a121b6e620814705b8825df7f8 /types.h | |
parent | 826465d134cfc0c1b62e3aad056861b34c835464 (diff) |
switched to new error system!
Diffstat (limited to 'types.h')
-rw-r--r-- | types.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -299,7 +299,7 @@ typedef struct { ErrCtx *ctx; U32 line; U32 start; /* index in ctx->str */ - U32 end; + U32 end; /* exclusive */ } SourcePos; /* NOTE: Location is typedef'd in util/err.c */ @@ -318,8 +318,8 @@ typedef struct Token { typedef struct Location { - Token *first; - Token *last; /* Included */ + Token *start; + Token *end; /* Exclusive */ } Location; @@ -439,8 +439,7 @@ enum { }; typedef struct Block { U16 flags; - Location start; - Location end; + Location where; struct Statement *stmts; struct Expression *ret_expr; /* the return expression of this block, e.g. {foo(); 3} => 3 NULL for no expression. */ } Block; |