From: Francesco Montorsi Date: Sun, 15 Feb 2009 12:48:31 +0000 (+0000) Subject: do not export compare functions in the wx ABI X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ad4f89f57fd09b2ee5845457b9ebdbc8312a203?ds=inline do not export compare functions in the wx ABI git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/encconv.cpp b/src/common/encconv.cpp index 80642b96f1..92c8b04362 100644 --- a/src/common/encconv.cpp +++ b/src/common/encconv.cpp @@ -51,11 +51,11 @@ static const wxUint16* GetEncTable(wxFontEncoding enc) 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 ); @@ -84,12 +84,14 @@ typedef struct { 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) { @@ -321,7 +323,7 @@ bool wxEncodingConverter::Convert(const wchar_t* input, wchar_t* output) const 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; diff --git a/src/univ/listbox.cpp b/src/univ/listbox.cpp index 8297decc68..baa5f5924e 100644 --- a/src/univ/listbox.cpp +++ b/src/univ/listbox.cpp @@ -477,7 +477,7 @@ int wxListBox::GetSelection() const 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; } diff --git a/src/unix/fontenum.cpp b/src/unix/fontenum.cpp index b7a026e5b6..90a63d4a7c 100644 --- a/src/unix/fontenum.cpp +++ b/src/unix/fontenum.cpp @@ -49,7 +49,9 @@ 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); @@ -57,6 +59,7 @@ wxCompareFamilies (const void *a, const void *b) return g_utf8_collate (a_name, b_name); } +} bool wxFontEnumerator::EnumerateFacenames(wxFontEncoding encoding, bool fixedWidthOnly)