Difference between revisions of "JS-ctypes"

Jump to navigation Jump to search
no edit summary
(Created page with "With the unavailability of XulRunner in Ubuntu Oneiric and the possible removal of it from other distro, we decided to switch to js-ctypes components. The main reason is that ...")
 
Line 39: Line 39:


Rules to embrace/respect:
Rules to embrace/respect:
# ''nsAString'' is replaced with ''unicode''
# ''nsAString'' is replaced with ''string''
# ''nsACString'' is replaced with ''char *''
# ''nsACString'' is replaced with ''char *''
# ''nsURL'' is replaced with ''unicode'' and code adapted consequently.
# ''nsIURI'' is replaced with ''string'' and code adapted consequently.
# No more ''retVal'' nor ''NS_OK''. Methods uses return type (''bool'' mostly)
# No more ''retVal'' nor ''NS_OK''. Methods uses return type (''bool'' mostly)
# Keep case on method names.
# don't add features while you port to keep it understandable and revert-able.


The component uses no header file (it is generated from IDL at compile time and is really verbose) so you also need to write it manually. header file [http://kiwix.svn.sourceforge.net/viewvc/kiwix/moulinkiwix/src/zimAccessor/zimAccessor.h?revision=2811&view=markup example].


== Remaining work ==
== Remaining work ==


* unicode
* unicode
8,012

edits

Navigation menu