diff options
| author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 15:06:58 +0000 |
|---|---|---|
| committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2008-09-12 15:06:58 +0000 |
| commit | 9ed0670e48665f590eda685e0cfebf8c4cadb8fb (patch) | |
| tree | a3f909876ca336256b304de9a350ab526d16abea /bindings/php4 | |
| parent | 73d9c98f92b9664c6d78843c4110b71520fa3f67 (diff) | |
* Remove ending blanks
Diffstat (limited to 'bindings/php4')
| -rw-r--r-- | bindings/php4/lang.py | 18 | ||||
| -rw-r--r-- | bindings/php4/lasso_php4_helper.c | 6 |
2 files changed, 12 insertions, 12 deletions
diff --git a/bindings/php4/lang.py b/bindings/php4/lang.py index a5a3a033..32ce5a40 100644 --- a/bindings/php4/lang.py +++ b/bindings/php4/lang.py @@ -1,5 +1,5 @@ # Lasso - A free implementation of the Liberty Alliance specifications. -# +# # Copyright (C) 2004-2007 Entr'ouvert # http://lasso.entrouvert.org # @@ -100,10 +100,10 @@ class Binding: def success(self): self.ret('SUCCESS') - + def declare_zval(self, name): self.declare('zval*', zval(name)) - + def declare(self, type, name): self.module('%s %s;' % (type, name)) @@ -147,7 +147,7 @@ class Binding: if options.get('nonull') == None and ret: ret += '!' return ret - + def generate_parse_args(self, arg): type, name, options = arg ret = '' @@ -215,7 +215,7 @@ class Binding: def method_epilogue(self, args = list()): for arg in args: - type, name, options = arg + type, name, options = arg type, name, options = arg if type == 'gboolean' and type in ['int', 'gint'] + self.binding_data.enums and type in ('char*', 'gchar*','const char*','const gchar*'): pass @@ -253,7 +253,7 @@ class Binding: else: par = '%s = %s;' self.module(pat % (left, right)) - + def return_c_value(self, type, name, options = dict()): if type is None: return @@ -292,7 +292,7 @@ class Binding: self.module('RETVAL_NULL();') self.close() # - + def generate(self): self.generate_php() self.generate_module() @@ -411,7 +411,7 @@ class Binding: def generate_module_minit_constants(self): self.module('/* Constants (both enums and defines) */') - mapping = { + mapping = { 'i': 'REGISTER_LONG_CONSTANT("%(name)s", %(name)s, CONST_CS|CONST_PERSISTENT);', 's': 'REGISTER_STRING_CONSTANT("%(name)s", %(name)s, CONST_CS|CONST_PERSISTENT);', 'b': '''\ @@ -437,7 +437,7 @@ class Binding: def generate_module_rinit(self): self.generate_module_dummy_function('PHP_RINIT(lasso)') - + def generate_module_rshutdown(self): self.generate_module_dummy_function('PHP_RSHUTDOWN(lasso)') diff --git a/bindings/php4/lasso_php4_helper.c b/bindings/php4/lasso_php4_helper.c index 5a1ca6fd..6bdc3bb2 100644 --- a/bindings/php4/lasso_php4_helper.c +++ b/bindings/php4/lasso_php4_helper.c @@ -98,7 +98,7 @@ PHP_FUNCTION(lasso_get_object_typename) } /* List handling */ -static void +static void free_glist(GList **list, GFunc free_function) { g_return_if_fail(list); if (*list) { @@ -304,9 +304,9 @@ get_hashtable_from_array_of_objects(zval *array) } } else { if (cvt_temp != NULL) { - g_hash_table_insert(result, (gpointer)index, g_object_ref(cvt_temp->obj)); + g_hash_table_insert(result, (gpointer)index, g_object_ref(cvt_temp->obj)); } else { - g_hash_table_insert(result, (gpointer)index, NULL); + g_hash_table_insert(result, (gpointer)index, NULL); } } } |
