From 553814f90c5901065bd691bb36441da3d38d4667 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 12 Jul 2010 14:09:09 +0000 Subject: [Bindings php5] simplify is_object in php_code.py --- bindings/php5/php_code.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'bindings') diff --git a/bindings/php5/php_code.py b/bindings/php5/php_code.py index 4758c1bd..0eab9c19 100644 --- a/bindings/php5/php_code.py +++ b/bindings/php5/php_code.py @@ -30,8 +30,7 @@ class PhpCode: self.fd = fd def is_object(self, t): - return t not in ['char*', 'const char*', 'gchar*', 'const gchar*', 'GList*', 'GHashTable*', - 'xmlNode*', 'int', 'gint', 'gboolean', 'const gboolean'] + self.binding_data.enums + return is_object(t) and not is_int(t, self.binding_data) def generate(self): self.generate_header() -- cgit