Another issue: ensure that global static data is const where possible;
this allows the linker to place it in a read-only section of the DLL,
that has file-mapping advantages (see bug
<http://bugzilla.mozilla.org/show_bug.cgi?id=74803>).
Example:
Bad: static const char* kFoobar = "Foobar";
Good: static const char* const kFoobar = "Foobar";
Bad:
static PRUint16 g_ufMappingTable[] = {
#include "8859-2.uf"
};
Good:
static PRUint16 const g_ufMappingTable[] = {
#include "8859-2.uf"
};
Simon
--
Simon Fraser Entomologist
[EMAIL PROTECTED] http://people.netscape.com/sfraser/