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/java/lang.py | |
parent | 73d9c98f92b9664c6d78843c4110b71520fa3f67 (diff) | |
download | lasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.tar.gz lasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.tar.xz lasso-9ed0670e48665f590eda685e0cfebf8c4cadb8fb.zip |
* Remove ending blanks
Diffstat (limited to 'bindings/java/lang.py')
-rw-r--r-- | bindings/java/lang.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bindings/java/lang.py b/bindings/java/lang.py index b4249052..1ba915e2 100644 --- a/bindings/java/lang.py +++ b/bindings/java/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 # @@ -126,7 +126,7 @@ class Binding: print p, print print - + def is_int_type(self, type): return type in ['gboolean','int','gint'] + self.binding_data.enums @@ -193,7 +193,7 @@ public abstract interface LassoConstants { self.generate_JNI_functions(m, fd) self.generate_JNI_footer(fd) fd.close(); - + def generate_JNI_header(self, fd): print >> fd, '''\ /* this file has been generated automatically; do not edit */ @@ -295,7 +295,7 @@ protected static native void destroy(long cptr); print >> fd, ' public static native void %s(GObject obj, %s[] value);' % (name,jtype) name = '%s_add' % prefix print >> fd, ' public static native void %s(GObject obj, %s value);' % (name,jtype) - if not m[2].get('elem_type') in ('xmlNode*',): + if not m[2].get('elem_type') in ('xmlNode*',): name = '%s_remove' % prefix print >> fd, ' public static native void %s(GObject obj, %s value);' % (name,jtype) elif mtype == 'GHashTable*': @@ -324,8 +324,8 @@ protected static native void destroy(long cptr); } ''' print >>fd, '}' - - + + # Wrappers def generate_wrapper(self): fd = open('com_entrouvert_lasso_LassoJNI.c', 'w') |