struct psi_token *tok;
while (psi_plist_get(macro->tokens, i++, &tok)) {
- dprintf(fd, " %s", tok->text);
+ switch (tok->type) {
+ case PSI_T_QUOTED_STRING:
+ dprintf(fd, " \"%s\"", tok->text);
+ break;
+ case PSI_T_QUOTED_CHAR:
+ dprintf(fd, " '%s'", tok->text);
+ break;
+ default:
+ dprintf(fd, " %s", tok->text);
+ }
}
}
}