struct psi_impl_type *psi_impl_type_init(token_t type, zend_string *name)
{
- struct psi_impl_type *t = calloc(1, sizeof(*t));
+ struct psi_impl_type *t = pecalloc(1, sizeof(*t), 1);
t->type = type;
t->name = zend_string_copy(name);
return t;
}
-void psi_impl_type_dump(int fd, struct psi_impl_type *type)
+void psi_impl_type_dump(struct psi_dump *dump, struct psi_impl_type *type)
{
- dprintf(fd, "%s", type->name->val);
+ PSI_DUMP(dump, "%s", type->name->val);
}
void psi_impl_type_free(struct psi_impl_type **type_ptr)