]> git.saurik.com Git - wxWidgets.git/commitdiff
do not export private symbols in wx shared libraries
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 24 Jan 2009 13:40:46 +0000 (13:40 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Sat, 24 Jan 2009 13:40:46 +0000 (13:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp
src/common/imagpng.cpp
src/common/list.cpp
src/common/zipstrm.cpp
src/generic/listctrl.cpp
src/html/m_layout.cpp

index 224cf624a129de802905f74fbdaf7222224b2d0f..6dc769fe8ba218be5b746ca1fcbbd02280910d29 100644 (file)
@@ -788,7 +788,7 @@ void wx_spline_push(double x1, double y1, double x2, double y2, double x3, doubl
 static bool wx_spline_add_point(double x, double y);
 static void wx_spline_draw_point_array(wxDC *dc);
 
-wxPointList wx_spline_point_list;
+static wxPointList wx_spline_point_list;
 
 #define                half(z1, z2)        ((z1+z2)/2.0)
 #define                THRESHOLD        5
index 2ffb924bf9bbb57574aa71d7656b698480ce0207..474221ae11d3fff2ae44becff4ec4a1281e54aff 100644 (file)
@@ -148,19 +148,19 @@ struct wxPNGInfoStruct
 extern "C"
 {
 
-void PNGLINKAGEMODE wx_PNG_stream_reader( png_structp png_ptr, png_bytep data,
-                                          png_size_t length )
+static void PNGLINKAGEMODE wx_PNG_stream_reader( png_structp png_ptr, png_bytep data,
+                                                 png_size_t length )
 {
     WX_PNG_INFO(png_ptr)->stream.in->Read(data, length);
 }
 
-void PNGLINKAGEMODE wx_PNG_stream_writer( png_structp png_ptr, png_bytep data,
-                                          png_size_t length )
+static void PNGLINKAGEMODE wx_PNG_stream_writer( png_structp png_ptr, png_bytep data,
+                                                 png_size_t length )
 {
     WX_PNG_INFO(png_ptr)->stream.out->Write(data, length);
 }
 
-void
+static void
 PNGLINKAGEMODE wx_png_warning(png_structp png_ptr, png_const_charp message)
 {
     wxPNGInfoStruct *info = png_ptr ? WX_PNG_INFO(png_ptr) : NULL;
@@ -170,7 +170,7 @@ PNGLINKAGEMODE wx_png_warning(png_structp png_ptr, png_const_charp message)
 
 // from pngerror.c
 // so that the libpng doesn't send anything on stderr
-void
+static void
 PNGLINKAGEMODE wx_png_error(png_structp png_ptr, png_const_charp message)
 {
     wx_png_warning(NULL, message);
index dcfb1b3358fcad32a5ea71145fb3ea1968a57bc8..4bdefdba206de4c34ba73b947f251673b6eb7b47 100644 (file)
@@ -701,9 +701,13 @@ bool wxStringList::Member(const wxChar *s) const
 }
 
 #ifdef __WXWINCE__
-extern "C" int __cdecl
+extern "C"
+{
+static int __cdecl
 #else
-extern "C" int LINKAGEMODE
+extern "C"
+{
+static int LINKAGEMODE
 #endif
 
 wx_comparestrings(const void *arg1, const void *arg2)
@@ -714,6 +718,8 @@ wx_comparestrings(const void *arg1, const void *arg2)
   return wxStrcmp (*s1, *s2);
 }
 
+}   // end of extern "C" (required because of GCC Bug c++/33078
+
 // Sort a list of strings - deallocates old nodes, allocates new
 void wxStringList::Sort()
 {
index 6a6ea742c07f3897a111b5ad2e72afbc6ad459de..0bb02d568ddbae1ff00b51664bbcbb5960857cd9 100644 (file)
@@ -140,7 +140,7 @@ static wxFileOffset QuietSeek(wxInputStream& stream, wxFileOffset pos)
 /////////////////////////////////////////////////////////////////////////////
 // Class factory
 
-wxZipClassFactory g_wxZipClassFactory;
+static wxZipClassFactory g_wxZipClassFactory;
 
 wxZipClassFactory::wxZipClassFactory()
 {
@@ -2318,7 +2318,7 @@ bool wxZipOutputStream::Close()
 
     m_lasterror = m_parent_o_stream->GetLastError();
     m_endrecWritten = true;
-    
+
     if (!wxFilterOutputStream::Close() || !IsOk())
         return false;
     m_lasterror = wxSTREAM_EOF;
index 6daa2332081f115c903c177790f5cbc2e5270191..e9010bfa735b5043c32341c075659182fe4f9aeb 100644 (file)
@@ -435,7 +435,7 @@ public:
     bool m_sendSetColumnWidth;
     int m_colToSend;
     int m_widthToSend;
-    
+
     virtual void OnInternalIdle();
 
 private:
@@ -1798,7 +1798,7 @@ void wxListHeaderWindow::AdjustDC(wxDC& dc)
 void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 {
     wxGenericListCtrl *parent = m_owner->GetListCtrl();
-    
+
     wxPaintDC dc( this );
 
     AdjustDC( dc );
@@ -1936,7 +1936,7 @@ void wxListHeaderWindow::OnPaint( wxPaintEvent &WXUNUSED(event) )
 void wxListHeaderWindow::OnInternalIdle()
 {
     wxWindow::OnInternalIdle();
-    
+
     if (m_sendSetColumnWidth)
     {
         m_owner->SetColumnWidth( m_colToSend, m_widthToSend );
@@ -1980,7 +1980,7 @@ void wxListHeaderWindow::DrawCurrent()
 void wxListHeaderWindow::OnMouse( wxMouseEvent &event )
 {
     wxGenericListCtrl *parent = m_owner->GetListCtrl();
-    
+
     // we want to work with logical coords
     int x;
     parent->CalcUnscrolledPosition(event.GetX(), 0, &x, NULL);
@@ -3791,7 +3791,7 @@ void wxListMainWindow::SetColumnWidth( int col, int width )
 
     wxCHECK_RET( InReportView(),
                  _T("SetColumnWidth() can only be called in report mode.") );
-                 
+
     m_dirty = true;
 
     wxListHeaderWindow *headerWin = GetListCtrl()->m_headerWin;
@@ -4889,8 +4889,8 @@ int wxListMainWindow::GetItemWidthWithImage(wxListItem * item)
 // sorting
 // ----------------------------------------------------------------------------
 
-wxListCtrlCompare list_ctrl_compare_func_2;
-long              list_ctrl_compare_data;
+static wxListCtrlCompare list_ctrl_compare_func_2;
+static long              list_ctrl_compare_data;
 
 int LINKAGEMODE list_ctrl_compare_func_1( wxListLineData **arg1, wxListLineData **arg2 )
 {
@@ -4924,7 +4924,7 @@ void wxListMainWindow::SortItems( wxListCtrlCompare fn, long data )
 void wxListMainWindow::OnScroll(wxScrollWinEvent& event)
 {
     wxPrintf( "wxListMainWindow::OnScroll\n" );
-    
+
     // HandleOnScroll( event );
 
     // update our idea of which lines are shown when we redraw the window the
@@ -5030,7 +5030,7 @@ void wxGenericListCtrl::CreateOrDestroyHeaderWindowAsNeeded()
 {
     bool needs_header = HasHeader();
     bool has_header = (m_headerWin != NULL);
-    
+
     if (needs_header == has_header)
         return;
 
@@ -5043,7 +5043,7 @@ void wxGenericListCtrl::CreateOrDestroyHeaderWindowAsNeeded()
                         wxSize(GetClientSize().x, m_headerHeight),
                         wxTAB_TRAVERSAL
                       );
-                      
+
 #if defined( __WXMAC__ ) && wxOSX_USE_COCOA_OR_CARBON
         wxFont font;
 #if wxOSX_USE_ATSU_TEXT
@@ -5053,15 +5053,15 @@ void wxGenericListCtrl::CreateOrDestroyHeaderWindowAsNeeded()
 #endif
         m_headerWin->SetFont( font );
 #endif
-        
+
         GetSizer()->Prepend( m_headerWin, 0, wxGROW );
     }
     else
     {
         GetSizer()->Detach( m_headerWin );
-    
+
         delete m_headerWin;
-        
+
         m_headerWin = NULL;
     }
 }
@@ -5086,16 +5086,16 @@ bool wxGenericListCtrl::Create(wxWindow *parent,
 #ifdef __WXGTK__
     style &= ~wxBORDER_MASK;
     style |= wxBORDER_THEME;
-#endif    
+#endif
 
     m_mainWin = new wxListMainWindow( this, wxID_ANY, wxPoint(0, 0), size, style );
 
     SetTargetWindow( m_mainWin );
-    
+
     wxBoxSizer *sizer = new wxBoxSizer( wxVERTICAL );
     sizer->Add( m_mainWin, 1, wxGROW );
     SetSizer( sizer );
-    
+
     CreateOrDestroyHeaderWindowAsNeeded();
 
     SetInitialSize(size);
@@ -5193,7 +5193,7 @@ void wxGenericListCtrl::SetWindowStyleFlag( long flag )
         // m_mainWin->DeleteEverything();  wxMSW doesn't do that
 
         CreateOrDestroyHeaderWindowAsNeeded();
-    
+
         GetSizer()->Layout();
     }
 
@@ -5540,7 +5540,7 @@ bool wxGenericListCtrl::DeleteColumn( int col )
 
     // if we don't have the header any longer, we need to relayout the window
     // if ( !GetColumnCount() )
-    
+
     return true;
 }
 
@@ -5688,7 +5688,7 @@ void wxGenericListCtrl::OnSize(wxSizeEvent& WXUNUSED(event))
     Layout();
 
     m_mainWin->RecalculatePositions();
-    
+
     AdjustScrollbars();
 }
 
index 9b9b8d25de3ad90e9501cedb3943ef69e3bb957a..7eddd4a9433203c0e8877eedbec33d2606580099 100644 (file)
@@ -83,9 +83,12 @@ private:
 };
 
 // Comparison routine for bsearch into an int* array of pagebreaks.
-extern "C" int wxCMPFUNC_CONV wxInteger_compare(void const* i0, void const* i1)
+extern "C"
 {
-    return *(int*)i0 - *(int*)i1;
+    static int wxCMPFUNC_CONV wxInteger_compare(void const* i0, void const* i1)
+    {
+        return *(int*)i0 - *(int*)i1;
+    }
 }
 
 bool wxHtmlPageBreakCell::AdjustPagebreak(int* pagebreak, wxArrayInt& known_pagebreaks) const