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/lexer.l | 1 + 1 file changed, 1 insertion(+) (limited to 'dimension/lexer.l') diff --git a/dimension/lexer.l b/dimension/lexer.l index f4685b8..1abb4b8 100644 --- a/dimension/lexer.l +++ b/dimension/lexer.l @@ -56,6 +56,7 @@ llocp->first_line = llocp->last_line = yylineno; \ llocp->first_column = yycolumn; \ llocp->last_column = yycolumn + yyleng; \ + llocp->parent = NULL; \ } while (0) #define CALCULATE_COLUMN() do { yycolumn += yyleng; } while (0) -- cgit v1.2.3