summaryrefslogtreecommitdiffstats
path: root/dimension/grammar.prologue
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-18 21:43:24 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-18 22:29:41 -0400
commit85c5f17dcd09540e31dc879166502984e483609d (patch)
tree6bc4c9ea1f265756e8b563885dabcdc0af09b0cf /dimension/grammar.prologue
parent6437ab96674accfb5d5d85066e58d20887c926d7 (diff)
downloaddimension-85c5f17dcd09540e31dc879166502984e483609d.tar.xz
Have dmnsn_diagnostic() take a dmnsn_parse_location.
Diffstat (limited to 'dimension/grammar.prologue')
-rw-r--r--dimension/grammar.prologue3
1 files changed, 1 insertions, 2 deletions
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);
}