glcpp: Introduce new glcpp_error function.
diff --git a/glcpp/glcpp-parse.y b/glcpp/glcpp-parse.y
index f26dd9a..d7a1048 100644
--- a/glcpp/glcpp-parse.y
+++ b/glcpp/glcpp-parse.y
@@ -879,8 +879,7 @@
 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 *