cvs: php4 /ext/pdf pdf.c

From: Date: Wed, 01 Nov 2000 19:55:12 +0000
Subject: cvs: php4 /ext/pdf pdf.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-2404@lists.php.net to get a copy of this message
andi Wed Nov 1 11:55:12 2000 EDT Modified files: /php4/ext/pdf pdf.c Log: - Beautify Index: php4/ext/pdf/pdf.c diff -u php4/ext/pdf/pdf.c:1.57 php4/ext/pdf/pdf.c:1.58 --- php4/ext/pdf/pdf.c:1.57 Wed Oct 25 10:43:58 2000 +++ php4/ext/pdf/pdf.c Wed Nov 1 11:55:12 2000 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pdf.c,v 1.57 2000/10/25 17:43:58 andrei Exp $ */ +/* $Id: pdf.c,v 1.58 2000/11/01 19:55:12 andi Exp $ */ /* pdflib 2.02 is subject to the ALADDIN FREE PUBLIC LICENSE. Copyright (C) 1997 Thomas Merz. */ @@ -195,7 +195,8 @@ 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 *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;

« previous php.cvs (#2404) next »