prodizy wrote:
By looking at the mozilla source code I found nsLiteralString.h having
the macro definitions. Why is this file not shipped with gecko-sdk?
extension developers are not supposed to use XPCOM string library)? and
should only use nsEmbedCString? It's because of the size of the string
library(results in larger foot print)?

The reason that the file is not in the Gecko SDK is indeed that people should not use it, and that is because we can't promise binary (or even source) compatibility for the nsString.h-based API.

That said... which SDK version are you using? The 1.8 SDK should have NS_LITERAL_STRING in nsStringAPI.h.

If you're using an earlier version you can probably use nsEmbedString(L"foo"), although you need to compile with -fshort-wchar when using gcc.

-christian
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to