From 07f5497c34ef6b7fda6dcaa131e6691593c63725 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Tue, 29 Apr 2008 12:04:40 +0000 Subject: [project @ fpeters@0d.be-20071103213505-94itgfwnvinqnhf6] Added warning message on boolean constants, as they are not yet supported but shouldn't cause the build to fail; also fixed a few calls to format_attribute that have been removed in favor of code from utils.py Original author: Frederic Peters Date: 2007-11-03 22:35:05.918000+01:00 --- bindings/lang_php5_helpers/wrapper_source.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bindings/lang_php5_helpers/wrapper_source.py') diff --git a/bindings/lang_php5_helpers/wrapper_source.py b/bindings/lang_php5_helpers/wrapper_source.py index ec31262b..c52c9d81 100644 --- a/bindings/lang_php5_helpers/wrapper_source.py +++ b/bindings/lang_php5_helpers/wrapper_source.py @@ -101,6 +101,9 @@ PHP_MINIT_FUNCTION(lasso) } print >> self.fd, ' /* Constants (both enums and defines) */' for c in self.binding_data.constants: + if c[0] not in constant_types: + print >> sys.stderr, 'W: no support for %s constant type (%s)' % (c[0], c[1]) + continue print >> self.fd, ' REGISTER_%(type)s_CONSTANT("%(name)s", %(name)s, CONST_CS|CONST_PERSISTENT);' \ % {'type': constant_types[c[0]], 'name': c[1]} print >> self.fd, '' @@ -237,7 +240,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> sys.stderr, 'E: GList argument : %s of %s, with type : %s' % (m_name, klassname, m_options.get('elem_type')) return - function_name = '%s_%s_get' % (klassname, format_attribute(m_name)) + function_name = '%s_%s_get' % (klassname, utils.format_as_camelcase(m_name)) function_name = '%s_%s_get' % (klassname, utils.format_as_camelcase(m_name)) print >> self.fd, '''PHP_FUNCTION(%s) {''' % function_name @@ -283,7 +286,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> sys.stderr, 'E: GList argument : %s of %s, with type : %s' % (m_name, klassname, m_options.get('elem_type')) return - function_name = '%s_%s_set' % (klassname, format_attribute(m_name)) + function_name = '%s_%s_set' % (klassname, utils.format_as_camelcase(m_name)) function_name = '%s_%s_set' % (klassname, utils.format_as_camelcase(m_name)) print >> self.fd, '''PHP_FUNCTION(%s) {''' % function_name -- cgit