cvs: php-gtk /generator templates.php

[email protected] ("Frank M. Kromann")
Newsgroups php.gtk
Message-ID <cvsfmk996539866@cvsserver>
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";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.