glcpp: Introduce new glcpp_error function.

This commit is contained in:
Kenneth Graunke
2010-06-17 12:03:25 -07:00
parent b78c9ddfbf
commit f1e6c069fa
3 changed files with 18 additions and 2 deletions

View File

@@ -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 *