}
va_list ap;
va_start(ap, message);
- errorf(HERE, "got %K, expected %#k", &token, &ap, ", ");
+ errorf(HERE, "got '%K', expected %#k", &token, &ap, ", ");
va_end(ap);
}
case T___thiscall:
/* TODO record modifier */
if (warning.other)
- warningf(HERE, "Ignoring declaration modifier %K", &token);
+ warningf(HERE, "Ignoring declaration modifier '%K'", &token);
break;
end_error:
if (is_type_valid(type)) {
if (! is_type_pointer(skip_typeref(type))) {
- errorf(HERE, "variable in __based modifier must have pointer type instead of %T", type);
+ errorf(HERE, "variable in __based modifier must have pointer type instead of '%T'", type);
}
if (variable->base.base.parent_scope != file_scope) {
errorf(HERE, "a nonstatic local variable may not be used in a __based specification");
case T_IDENTIFIER:
case '&':
case '*':
- errorf(HERE, "discarding stray %K in declaration specifier", &token);
+ errorf(HERE, "discarding stray '%K' in declaration specifier", &token);
next_token();
continue;
case T_IDENTIFIER:
case '&':
case '*': {
- errorf(HERE, "%K does not name a type", &token);
+ errorf(HERE, "'%K' does not name a type", &token);
entity_t *entity =
create_error_entity(token.v.symbol, ENTITY_TYPEDEF);
case T___noop: return parse_noop_expression();
}
- errorf(HERE, "unexpected token %K, expected an expression", &token);
+ errorf(HERE, "unexpected token '%K', expected an expression", &token);
return create_invalid_expression();
}
break;
default:
- errorf(HERE, "unexpected token %K while parsing statement", &token);
+ errorf(HERE, "unexpected token '%K' while parsing statement", &token);
statement = create_invalid_statement();
if (!at_anchor())
next_token();
/* FALLTHROUGH */
default:
- errorf(HERE, "stray %K outside of function", &token);
+ errorf(HERE, "stray '%K' outside of function", &token);
if (token.type == '(' || token.type == '{' || token.type == '[')
eat_until_matching_token(token.type);
next_token();
if (token.type == T_EOF)
break;
- errorf(HERE, "stray %K outside of function", &token);
+ errorf(HERE, "stray '%K' outside of function", &token);
if (token.type == '(' || token.type == '{' || token.type == '[')
eat_until_matching_token(token.type);
next_token();