cvs: php-gtk /generator templates.php

From: Date: Tue, 31 Jul 2001 00:37:46 +0000
Subject: cvs: php-gtk /generator templates.php
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-2407@lists.php.net to get a copy of this message
fmk Mon Jul 30 20:37:46 2001 EDT Modified files: /php-gtk/generator templates.php Log: Fixing ZTS compilation Index: php-gtk/generator/templates.php diff -u php-gtk/generator/templates.php:1.13 php-gtk/generator/templates.php:1.14 --- php-gtk/generator/templates.php:1.13 Mon Jul 16 17:17:59 2001 +++ php-gtk/generator/templates.php Mon Jul 30 20:37:46 2001 @@ -19,7 +19,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: templates.php,v 1.13 2001/07/16 21:17:59 andrei Exp $ */ +/* $Id: templates.php,v 1.14 2001/07/31 00:37:46 fmk Exp $ */ $function_tpl = " PHP_FUNCTION(wrap_%s) @@ -58,11 +58,12 @@ %s wrapped_obj = (GtkObject *)%s(%s); if (!wrapped_obj) { php_error(E_WARNING, \"%%s(): could not create %s object\", - get_active_function_name()); + get_active_function_name(TSRMLS_C)); return; } php_gtk_object_init(wrapped_obj, this_ptr); +%s }\n\n"; $function_entry_tpl = "\t{\"%s\", PHP_FN(wrap_%s), %s},\n"; @@ -105,11 +106,12 @@ void php_%s_register_classes(void) { zend_class_entry ce; + TSRMLS_FETCH(); %s }\n"; -$register_class_tpl = "\t%s = zend_register_internal_class_ex(&ce, %s, NULL);\n"; +$register_class_tpl = "\t%s = zend_register_internal_class_ex(&ce, %s, NULL TSRMLS_CC);\n"; $class_entry_tpl = "PHP_GTK_EXPORT_CE(%s);\n";

« previous php.gtk (#2407) next »