summaryrefslogtreecommitdiffstats
path: root/bindings/lang_php5_helpers/wrapper_source.py
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:04:40 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:04:40 +0000
commit07f5497c34ef6b7fda6dcaa131e6691593c63725 (patch)
tree9cef3955da00c37766a9e8bd21645e82a148a64f /bindings/lang_php5_helpers/wrapper_source.py
parent87f9e0f350b879b7d721889cc6fbc6f878f4cd0f (diff)
downloadlasso-07f5497c34ef6b7fda6dcaa131e6691593c63725.tar.gz
lasso-07f5497c34ef6b7fda6dcaa131e6691593c63725.tar.xz
lasso-07f5497c34ef6b7fda6dcaa131e6691593c63725.zip
[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 <fpeters@0d.be> Date: 2007-11-03 22:35:05.918000+01:00
Diffstat (limited to 'bindings/lang_php5_helpers/wrapper_source.py')
-rw-r--r--bindings/lang_php5_helpers/wrapper_source.py7
1 files changed, 5 insertions, 2 deletions
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