summaryrefslogtreecommitdiff
path: root/glcpp/glcpp-parse.y
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-06-17 12:03:25 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-06-21 12:31:02 -0700
commitf1e6c069fac93dd2b7b2026ccd24833a066c895a (patch)
tree37bd98609c64e6b87c05308c6c69f567c4208920 /glcpp/glcpp-parse.y
parentb78c9ddfbfecb983f7ab519bb07889333bdab959 (diff)
glcpp: Introduce new glcpp_error function.
Diffstat (limited to 'glcpp/glcpp-parse.y')
-rw-r--r--glcpp/glcpp-parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y
index f26dd9a0db..d7a104893a 100644
--- a/glcpp/glcpp-parse.y
+++ b/glcpp/glcpp-parse.y
@@ -879,8 +879,7 @@ _token_list_print (glcpp_parser_t *parser, token_list_t *list)
void
yyerror (YYLTYPE *locp, glcpp_parser_t *parser, const char *error)
{
- glcpp_printf(parser->errors, "%u:%u(%u): preprocessor error: %s\n",
- locp->source, locp->first_line, locp->first_column, error);
+ glcpp_error(locp, parser, "%s", error);
}
glcpp_parser_t *