2. wxString::reserve() (STLese for Alloc()) added
3. compilation fixes for mingw32/BC++
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4695
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// event loop related functions only work in GUI programs
// ------------------------------------------------------
-#if wxUSE_GUI
-
// Force an exit from main loop
extern void WXDLLEXPORT wxExit();
// Yield to other apps/messages
extern void WXDLLEXPORT wxWakeUpIdle();
+#if wxUSE_GUI
+
// Post a message to the given eventhandler which will be processed during the
// next event loop iteration
inline void WXDLLEXPORT wxPostEvent(wxEvtHandler *dest, wxEvent& event)
dest->AddPendingEvent(event);
}
-#endif // wxUSE_GUI
+#endif // wxUSE_GUI/!wxUSE_GUI
// console applications may avoid using DECLARE_APP and IMPLEMENT_APP macros
// and call these functions instead at the program startup and termination
void clear() { Empty(); }
// returns true if the string is empty
bool empty() const { return IsEmpty(); }
+ // inform string about planned change in size
+ void reserve(size_t size) { Alloc(size); }
// lib.string.access
// return the character at position n
// implementation
// ============================================================================
+// ----------------------------------------------------------------------------
+// stubs for some GUI functions
+// ----------------------------------------------------------------------------
+
+void WXDLLEXPORT wxExit()
+{
+ abort();
+}
+
+// Yield to other apps/messages
+bool WXDLLEXPORT wxYield()
+{
+ // do nothing
+ return TRUE;
+}
+
+// Yield to other apps/messages
+void WXDLLEXPORT wxWakeUpIdle()
+{
+ // do nothing
+}
+
+// ----------------------------------------------------------------------------
+// wxBase-specific functions
+// ----------------------------------------------------------------------------
+
bool WXDLLEXPORT wxInitialize()
{
if ( gs_nInitCount )