cvs: pecl /tidy tidy.c
| From: | Ilia Alshanetsky | Date: | Wed, 17 Dec 2003 16:34:10 +0000 |
| Subject: | cvs: pecl /tidy tidy.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-591@lists.php.net to get a copy of this message | ||
iliaa Wed Dec 17 11:34:10 2003 EDT
Modified files:
/pecl/tidy tidy.c
Log:
Always user Zend memory allocation wrappers.
Index: pecl/tidy/tidy.c
diff -u pecl/tidy/tidy.c:1.22 pecl/tidy/tidy.c:1.23
--- pecl/tidy/tidy.c:1.22 Mon Dec 15 16:56:55 2003
+++ pecl/tidy/tidy.c Wed Dec 17 11:34:10 2003
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: tidy.c,v 1.22 2003/12/15 21:56:55 iliaa Exp $ */
+/* $Id: tidy.c,v 1.23 2003/12/17 16:34:10 iliaa Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -156,7 +156,6 @@
ZEND_GET_MODULE(tidy)
#endif
-#if MEMORY_LIMIT
void *php_tidy_malloc(size_t len)
{
return emalloc(len);
@@ -171,7 +170,7 @@
{
efree(buf);
}
-#endif
+
void php_tidy_panic(ctmbstr msg)
{
zend_error(E_ERROR, "Could not allocate memory for tidy! (Reason: %s)", (char *)msg);
@@ -297,11 +296,9 @@
break;
case is_doc:
-#if MEMORY_LIMIT
tidySetMallocCall(php_tidy_malloc);
tidySetReallocCall(php_tidy_realloc);
tidySetFreeCall(php_tidy_free);
-#endif
tidySetPanicCall(php_tidy_panic);
intern->ptdoc = emalloc(sizeof(PHPTidyDoc));
@@ -742,7 +739,7 @@
php_info_print_table_start();
php_info_print_table_header(2, "Tidy support", "enabled");
php_info_print_table_row(2, "libTidy Library Version", (char *)tidyReleaseDate());
- php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.22 2003/12/15 21:56:55 iliaa Exp $)");
+ php_info_print_table_row(2, "Extension Version", PHP_TIDY_MODULE_VERSION " ($Id:
tidy.c,v 1.23 2003/12/17 16:34:10 iliaa Exp $)");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();