.rodata segment (always guaranteed to be shared among processes) in wxBase.
Make said array as big as necessary, not bigger than necessary (as before) - shaving 122 bytes off of that 864
bytes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38563
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#define STOP wxFONTENCODING_SYSTEM
#define NUM_OF_PLATFORMS 4 /*must conform to enum wxPLATFORM_XXXX !!!*/
#define STOP wxFONTENCODING_SYSTEM
#define NUM_OF_PLATFORMS 4 /*must conform to enum wxPLATFORM_XXXX !!!*/
-#define ENC_PER_PLATFORM 5
+#define ENC_PER_PLATFORM 3
// max no. of encodings for one language used on one platform
// Anybody thinks 5 is not enough? ;-)
// max no. of encodings for one language used on one platform
// Anybody thinks 5 is not enough? ;-)
+ // It is too much. Using maximum of everything at the current moment to not
+ // make the library larger than necessary. Make larger only if necessary - MR
+
+static const wxFontEncoding
EquivalentEncodings[][NUM_OF_PLATFORMS][ENC_PER_PLATFORM+1] = {
// *** Please put more common encodings as first! ***
EquivalentEncodings[][NUM_OF_PLATFORMS][ENC_PER_PLATFORM+1] = {
// *** Please put more common encodings as first! ***
+ const wxFontEncoding *f;
wxFontEncodingArray arr;
clas = 0;
wxFontEncodingArray arr;
clas = 0;
wxFontEncodingArray wxEncodingConverter::GetAllEquivalents(wxFontEncoding enc)
{
int i, clas, e, j ;
wxFontEncodingArray wxEncodingConverter::GetAllEquivalents(wxFontEncoding enc)
{
int i, clas, e, j ;
+ const wxFontEncoding *f;
wxFontEncodingArray arr;
arr = GetPlatformEquivalents(enc); // we want them to be first items in array
wxFontEncodingArray arr;
arr = GetPlatformEquivalents(enc); // we want them to be first items in array