[Bindings php5] simplify is_object in php_code.py

This commit is contained in:
Benjamin Dauvergne 2010-07-12 14:09:09 +00:00
parent 2468e0a421
commit 553814f90c
1 changed files with 1 additions and 2 deletions

View File

@ -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()