- switch((preprocessor_token_kind_t) token->kind) {
- case TP_IDENTIFIER:
- fprintf(f, "identifier '%s'", token->base.symbol->string);
- break;
- case TP_NUMBER:
- fprintf(f, "number '%s'", token->number.number.begin);
- break;
- case TP_STRING_LITERAL:
- fprintf(f, "string \"%s\"", token->string.string.begin);
- break;
- default:
- print_pp_token_kind(f, (preprocessor_token_kind_t) token->kind);
- break;
- }
-}
-
-bool tokens_would_paste(preprocessor_token_kind_t token1,
- preprocessor_token_kind_t token2)
-{
- char c = token2 < 256 ? (char) token2 : pp_token_symbols[token2]->string[0];