cvs: php-gtk /src php_gtk.h php_gtk_util.c

From: Date: Mon, 21 May 2001 18:55:15 +0000
Subject: cvs: php-gtk /src php_gtk.h php_gtk_util.c
Groups: php.gtk 
Request: Send a blank email to php-gtk+get-1882@lists.php.net to get a copy of this message
fmk Mon May 21 11:55:15 2001 EDT Modified files: /php-gtk/src php_gtk_util.c php_gtk.h Log: Fixing compilation on Win32 Index: php-gtk/src/php_gtk_util.c diff -u php-gtk/src/php_gtk_util.c:1.15 php-gtk/src/php_gtk_util.c:1.16 --- php-gtk/src/php_gtk_util.c:1.15 Fri May 11 10:54:24 2001 +++ php-gtk/src/php_gtk_util.c Mon May 21 11:55:15 2001 @@ -18,43 +18,11 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: php_gtk_util.c,v 1.15 2001/05/11 17:54:24 andrei Exp $ */ +/* $Id: php_gtk_util.c,v 1.16 2001/05/21 18:55:15 fmk Exp $ */ #include "php_gtk.h" #if HAVE_PHP_GTK - -inline char *php_gtk_zval_type_name(zval *arg) -{ - switch (Z_TYPE_P(arg)) { - case IS_NULL: - return "null"; - - case IS_LONG: - return "integer"; - - case IS_DOUBLE: - return "double"; - - case IS_STRING: - return "string"; - - case IS_ARRAY: - return "array"; - - case IS_OBJECT: - return Z_OBJCE_P(arg)->name; - - case IS_BOOL: - return "boolean"; - - case IS_RESOURCE: - return "resource"; - - default: - return "unknown"; - } -} static char *parse_arg_impl(zval **arg, va_list *va, char **spec, char *buf) { Index: php-gtk/src/php_gtk.h diff -u php-gtk/src/php_gtk.h:1.39 php-gtk/src/php_gtk.h:1.40 --- php-gtk/src/php_gtk.h:1.39 Fri May 11 21:19:11 2001 +++ php-gtk/src/php_gtk.h Mon May 21 11:55:15 2001 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: php_gtk.h,v 1.39 2001/05/12 04:19:11 andrei Exp $: */ +/* $Id: php_gtk.h,v 1.40 2001/05/21 18:55:15 fmk Exp $: */ #ifndef _PHP_GTK_H #define _PHP_GTK_H @@ -115,6 +115,7 @@ void php_gtk_input_marshal(gpointer a, gpointer data, int nargs, GtkArg *args); zval *php_gtk_args_as_hash(int nargs, GtkArg *args); GtkArg *php_gtk_hash_as_args(zval *hash, GtkType type, gint *nargs); +int php_gtk_args_from_hash(GtkArg *args, int nparams, zval *hash); zval *php_gtk_arg_as_value(GtkArg *arg); int php_gtk_arg_from_value(GtkArg *arg, zval *value); zval *php_gtk_ret_as_value(GtkArg *ret); @@ -181,6 +182,38 @@ } PHP_FUNCTION(wrap_no_constructor); + +inline char *php_gtk_zval_type_name(zval *arg) +{ + switch (Z_TYPE_P(arg)) { + case IS_NULL: + return "null"; + + case IS_LONG: + return "integer"; + + case IS_DOUBLE: + return "double"; + + case IS_STRING: + return "string"; + + case IS_ARRAY: + return "array"; + + case IS_OBJECT: + return Z_OBJCE_P(arg)->name; + + case IS_BOOL: + return "boolean"; + + case IS_RESOURCE: + return "resource"; + + default: + return "unknown"; + } +} #endif /* HAVE_PHP_GTK */

« previous php.gtk (#1882) next »