int i = enc-wxFONTENCODING_MACMIN ;
if ( gMacEncodingsInited[i] == false )
{
- // create
+ // create
CFStringEncoding cfencoding = wxMacGetSystemEncFromFontEnc( enc ) ;
if( !CFStringIsEncodingAvailable( cfencoding ) )
return NULL;
-
+
memset( gMacEncodings[i] , 0 , 128 * 2 );
char s[2] = { 0 , 0 };
CFRange firstchar = CFRangeMake( 0, 1 );
wxUint8 c;
} CharsetItem;
-extern "C" int wxCMPFUNC_CONV
+extern "C"
+{
+static int wxCMPFUNC_CONV
CompareCharsetItems(const void *i1, const void *i2)
{
return ( ((CharsetItem*)i1) -> u - ((CharsetItem*)i2) -> u );
}
-
+}
static CharsetItem* BuildReverseTable(const wxUint16 *tbl)
{
wxT("You must call wxEncodingConverter::Init() before actually converting!"));
bool replaced = false;
-
+
for (i = input, o = output; *i != 0;)
*(o++) = (wchar_t)(GetTableValue(m_Table, (wxUint8)*(i++), replaced));
*o = 0;
return m_selections.IsEmpty() ? wxNOT_FOUND : m_selections[0];
}
-int wxCMPFUNC_CONV wxCompareInts(int *n, int *m)
+static int wxCMPFUNC_CONV wxCompareInts(int *n, int *m)
{
return *n - *m;
}
extern GtkWidget *wxGetRootWindow();
#endif // __WXGTK20__
-extern "C" int wxCMPFUNC_CONV
+extern "C"
+{
+static int wxCMPFUNC_CONV
wxCompareFamilies (const void *a, const void *b)
{
const char *a_name = pango_font_family_get_name (*(PangoFontFamily **)a);
return g_utf8_collate (a_name, b_name);
}
+}
bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding,
bool fixedWidthOnly)