- dprintf(fd, "const ");
- psi_const_type_dump(fd, cnst->type);
- dprintf(fd, " %s = ", cnst->name);
- psi_impl_def_val_dump(fd, cnst->val);
- dprintf(fd, ";");
+ PSI_DUMP(dump, "const ");
+ if (cnst->type) {
+ psi_impl_type_dump(dump, cnst->type);
+ }
+ PSI_DUMP(dump, " %s = ", cnst->name->val);
+ psi_impl_def_val_dump(dump, cnst->val);
+ PSI_DUMP(dump, ";");