const symbol_t *symbol = token_symbols[token_type];
if(symbol != NULL) {
- fprintf(f, "%s", symbol->string);
+ fputs(symbol->string, f);
} else {
if(token_type >= 0 && token_type < 256) {
- fprintf(f, "%c", token_type);
+ fputc(token_type, f);
return;
}
fputs("unknown token", f);
const symbol_t *symbol = pp_token_symbols[token_type];
if (symbol != NULL) {
- fprintf(f, "%s", symbol->string);
+ fputs(symbol->string, f);
} else {
if(token_type >= 0 && token_type < 256) {
- fprintf(f, "%c", token_type);
+ fputc(token_type, f);
return;
}
fputs("unknown token", f);
fputs(variable->base.base.symbol->string, out);
fputs(") ", out);
}
- fputs("*", out);
+ fputc('*', out);
print_type_qualifiers(type->base.qualifiers);
if (type->base.qualifiers != 0)
fputc(' ', out);
entry = entry->base.next) {
print_indent();
- fprintf(out, "%s", entry->base.symbol->string);
+ fputs(entry->base.symbol->string, out);
if (entry->enum_value.value != NULL) {
- fprintf(out, " = ");
+ fputs(" = ", out);
/* skip the implicit cast */
expression_t *expression = entry->enum_value.value;
}
print_expression(expression);
}
- fprintf(out, ",\n");
+ fputs(",\n", out);
}
change_indent(-1);
print_indent();
- fputs("}", out);
+ fputc('}', out);
}
/**
change_indent(-1);
print_indent();
- fputs("}", out);
+ fputc('}', out);
if (compound->modifiers & DM_TRANSPARENT_UNION) {
fputs("__attribute__((__transparent_union__))", out);
}