X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Ftypes%2Fimpl_type.c;h=41baf1c5af87cc1bd2122b4a7cb5f462349f81fc;hb=a0f437f26cd0f121ee911a55327a68a3544bf15f;hp=3517727a249b38f179e06d54d5990553b6a51c58;hpb=2fa436074ca9a5e87f39b696de832fa2188fcfc6;p=m6w6%2Fext-psi diff --git a/src/types/impl_type.c b/src/types/impl_type.c index 3517727..41baf1c 100644 --- a/src/types/impl_type.c +++ b/src/types/impl_type.c @@ -28,7 +28,7 @@ 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); @@ -36,9 +36,9 @@ struct psi_impl_type *psi_impl_type_init(token_t type, zend_string *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)