X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Ftypes%2Flet_calloc.c;h=270e3c5c43ac7a441e0fee18cd71b004a10c2e45;hp=152e5c822b4c0bc83f488cd326ced141f543c621;hb=698841dfdd4d70d24e0b7af25ac7100bc2cb26a4;hpb=216e7ac3b97aed5a5d65c511dc061c78be90e79d diff --git a/src/types/let_calloc.c b/src/types/let_calloc.c index 152e5c8..270e3c5 100644 --- a/src/types/let_calloc.c +++ b/src/types/let_calloc.c @@ -23,7 +23,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *******************************************************************************/ -#include "php_psi_stdinc.h" +#ifdef HAVE_CONFIG_H +# include "config.h" +#else +# include "php_config.h" +#endif #include "data.h" struct psi_let_calloc *psi_let_calloc_init(struct psi_num_exp *nmemb, @@ -50,11 +54,11 @@ void psi_let_calloc_free(struct psi_let_calloc **alloc_ptr) } } -void psi_let_calloc_dump(int fd, struct psi_let_calloc *alloc) +void psi_let_calloc_dump(struct psi_dump *dump, struct psi_let_calloc *alloc) { - dprintf(fd, "calloc("); - psi_num_exp_dump(fd, alloc->nmemb); - dprintf(fd, ", "); - psi_num_exp_dump(fd, alloc->size); - dprintf(fd, ")"); + PSI_DUMP(dump, "calloc("); + psi_num_exp_dump(dump, alloc->nmemb); + PSI_DUMP(dump, ", "); + psi_num_exp_dump(dump, alloc->size); + PSI_DUMP(dump, ")"); }