From 91622ad7cbe6e4fa677e1a8a9f02463366fcae93 Mon Sep 17 00:00:00 2001 From: Andi Gutmans Date: Wed, 1 Nov 2000 19:55:13 +0000 Subject: [PATCH] - Beautify --- ext/pdf/pdf.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index efa3cb0740..10940e43a4 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -195,7 +195,8 @@ static void _free_outline(zend_rsrc_list_entry *rsrc) if(outline) efree(outline); } -static void custom_errorhandler(PDF *p, int type, const char*shortmsg) { +static void custom_errorhandler(PDF *p, int type, const char*shortmsg) +{ switch (type){ case PDF_NonfatalError: return; @@ -217,19 +218,23 @@ static void custom_errorhandler(PDF *p, int type, const char*shortmsg) { } } -static void *pdf_emalloc(PDF *p, size_t size, const char *caller) { +static void *pdf_emalloc(PDF *p, size_t size, const char *caller) +{ return(emalloc(size)); } -static void *pdf_realloc(PDF *p, void *mem, size_t size, const char *caller) { +static void *pdf_realloc(PDF *p, void *mem, size_t size, const char *caller) +{ return(erealloc(mem, size)); } -static void pdf_efree(PDF *p, void *mem) { +static void pdf_efree(PDF *p, void *mem) +{ efree(mem); } -static size_t pdf_flushwrite(PDF *p, void *data, size_t size){ +static size_t pdf_flushwrite(PDF *p, void *data, size_t size) +{ if(php_header()) return(php_write(data, size)); return 0; -- 2.40.0