From 85c5f17dcd09540e31dc879166502984e483609d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Apr 2010 21:43:24 -0400 Subject: Have dmnsn_diagnostic() take a dmnsn_parse_location. --- dimension/grammar.prologue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dimension/grammar.prologue') diff --git a/dimension/grammar.prologue b/dimension/grammar.prologue index 6f8e312..9a00b89 100644 --- a/dimension/grammar.prologue +++ b/dimension/grammar.prologue @@ -23,6 +23,5 @@ void yyerror(YYLTYPE *locp, const char *filename, void *yyscanner, dmnsn_astree *astree, dmnsn_symbol_table *symtable, const char *str) { - dmnsn_diagnostic(locp->first_filename, locp->first_line, locp->first_column, - "%s", str); + dmnsn_diagnostic(*locp, "%s", str); } -- cgit v1.2.3