diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-18 23:18:45 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-18 23:18:45 -0400 |
commit | 919121bdf572b632cc5bfbbee502664682b26ab8 (patch) | |
tree | 528a83bb716851152ebc12aee385417b8f407601 /dimension/parse.h | |
parent | 004d63c0c199a1544dc9b3af9cdd3367a6969d23 (diff) | |
download | dimension-919121bdf572b632cc5bfbbee502664682b26ab8.tar.xz |
Give backtraces for diagnostics from macros and include files.
Partly this means that dmnsn_diagnostic() can't be called anywhere except
during parsing, because the dmnsn_parse_location::parent pointers dangle.
Diffstat (limited to 'dimension/parse.h')
-rw-r--r-- | dimension/parse.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/parse.h b/dimension/parse.h index 3a830b8..1e8fa2c 100644 --- a/dimension/parse.h +++ b/dimension/parse.h @@ -171,6 +171,8 @@ typedef struct dmnsn_parse_location { const char *first_filename, *last_filename; int first_line, last_line; int first_column, last_column; + + struct dmnsn_parse_location *parent; } dmnsn_parse_location; /* Abstract syntax tree node (a dmnsn_array* of these is an AST) */ |