From 919121bdf572b632cc5bfbbee502664682b26ab8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Apr 2010 23:18:45 -0400 Subject: 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. --- dimension/parse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dimension/parse.h') 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) */ -- cgit v1.2.3