diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-25 23:47:51 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-25 23:47:51 +0000 |
commit | bd2f8ade0149bd4c21a7cafbdb2d801c749eccb7 (patch) | |
tree | b99ba39f45e77395105d3df11250d55b2a8f3531 /bindings/php5/wrapper_source.py | |
parent | 641a6af75a8e0befddc5414065042bd71c9a97ad (diff) | |
download | lasso-bd2f8ade0149bd4c21a7cafbdb2d801c749eccb7.tar.gz lasso-bd2f8ade0149bd4c21a7cafbdb2d801c749eccb7.tar.xz lasso-bd2f8ade0149bd4c21a7cafbdb2d801c749eccb7.zip |
Bindings PHP5: use is_cstring to match string types
Diffstat (limited to 'bindings/php5/wrapper_source.py')
-rw-r--r-- | bindings/php5/wrapper_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/php5/wrapper_source.py b/bindings/php5/wrapper_source.py index a937a6cb..21030dde 100644 --- a/bindings/php5/wrapper_source.py +++ b/bindings/php5/wrapper_source.py @@ -319,7 +319,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> self.fd, ' %s = (%s)cvt_%s->obj;' % (arg[1], arg[0], arg[1]) elif f.startswith('a'): element_type = arg[2].get('element-type') - if element_type == 'char*': + if is_cstring(element_type): print >> self.fd, ' %(name)s = get_list_from_array_of_strings(zval_%(name)s);' % {'name': arg[1]} else: print >> sys.stderr, 'E: In %(function)s arg %(name)s is of type GList<%(elem)s>' % { 'function': m.name, 'name': arg[1], 'elem': element_type } |