diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-07-12 14:09:09 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-07-12 14:09:09 +0000 |
commit | 553814f90c5901065bd691bb36441da3d38d4667 (patch) | |
tree | 00c646f242e863273d265143b1981b36b197cb29 /bindings | |
parent | 2468e0a4216cbbb2f4ae81dfc608b0ae8bba5a99 (diff) | |
download | lasso-553814f90c5901065bd691bb36441da3d38d4667.tar.gz lasso-553814f90c5901065bd691bb36441da3d38d4667.tar.xz lasso-553814f90c5901065bd691bb36441da3d38d4667.zip |
[Bindings php5] simplify is_object in php_code.py
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/php5/php_code.py | 3 |
1 files changed, 1 insertions, 2 deletions
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() |