8,308
edits
(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 '' | # ''nsAString'' is replaced with ''string'' | ||
# ''nsACString'' is replaced with ''char *'' | # ''nsACString'' is replaced with ''char *'' | ||
# '' | # ''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 |
edits