diff options
author | Andi Gutmans <andi@php.net> | 2000-11-01 19:55:13 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2000-11-01 19:55:13 +0000 |
commit | 91622ad7cbe6e4fa677e1a8a9f02463366fcae93 (patch) | |
tree | 9c735fee14d4eac2410842995096a64d90024ae2 /ext/pdf | |
parent | d9ba87c84c7461e3173ac977e3444849d7fab366 (diff) | |
download | php-git-91622ad7cbe6e4fa677e1a8a9f02463366fcae93.tar.gz |
- Beautify
Diffstat (limited to 'ext/pdf')
-rw-r--r-- | ext/pdf/pdf.c | 15 |
1 files 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; |