>> I may need to modify NSPR to export the functions used in the Glue
>> library in a compatible way (e.g., using only C++ fundamental types as
>> function's arguments and return values) or to change C++ compiler
>> settings to make sure that NSPR POD structs are binary compatible
>> between BCB  and MSVC.
>
> NSPR is a C library, not a C++ one...
>

That's true. Being a C library, NSPR is called from C++ code of the Glue
library.

C structs have less binary compatibility problems than C++ structs/classes
(for example, they don't have methods :-))

But, as far as I understand, they are still not guaranteed to be binary
compatible and may have different memory layout if, for instance, alignment
settings are different in BorlandC and VisualC.

>From the point of view of binary compatibility, it would be better to use
fundamental types as function arguments (instead of C structs such as 
PRLibSpec) in NSPR whenever possible.


_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to