Rather than telling the user what to fix, the standard convention is to
describe what the detected problem is. With this change, test
081-elif-without-expression now passes.
if (parser->skip_stack &&
parser->skip_stack->type == SKIP_TO_ELSE)
{
- glcpp_error(& (yylsp[(1) - (2)]), parser, "#elif needs an expression");
+ glcpp_error(& (yylsp[(1) - (2)]), parser, "#elif with no expression");
}
else
{
if (parser->skip_stack &&
parser->skip_stack->type == SKIP_TO_ELSE)
{
- glcpp_error(& @1, parser, "#elif needs an expression");
+ glcpp_error(& @1, parser, "#elif with no expression");
}
else
{