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/common.prologue | 1 + 1 file changed, 1 insertion(+) (limited to 'dimension/common.prologue') diff --git a/dimension/common.prologue b/dimension/common.prologue index d82b110..4fdfcee 100644 --- a/dimension/common.prologue +++ b/dimension/common.prologue @@ -37,6 +37,7 @@ (Current).last_filename = YYRHSLOC(Rhs, N).last_filename; \ (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ + (Current).parent = YYRHSLOC(Rhs, 1).parent; \ } else { \ (Current) = YYRHSLOC(Rhs, 0); \ } \ -- cgit v1.2.3