From 77cd51c3de9e79e5e7f566ed28aee6ed20a606eb Mon Sep 17 00:00:00 2001 From: David Webster Date: Fri, 17 Sep 1999 03:29:33 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/app.cpp | 35 +++++++++++++---------------------- src/os2/makefile.va | 39 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 49 insertions(+), 25 deletions(-) diff --git a/src/os2/app.cpp b/src/os2/app.cpp index b04a01bbe2..c30b689ba5 100644 --- a/src/os2/app.cpp +++ b/src/os2/app.cpp @@ -57,15 +57,6 @@ bool wxApp::Initialize() wxBuffer = new char[BUFSIZ + 512]; #endif -/* No longer used -#if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT - - streambuf* sBuf = new wxDebugStreamBuf; - ostream* oStr = new ostream(sBuf) ; - wxDebugContext::SetStream(oStr, sBuf); -#endif -*/ - wxClassInfo::InitializeClasses(); wxTheColourDatabase = new wxColourDatabase(wxKEY_STRING); @@ -122,7 +113,7 @@ void wxApp::CleanUp() delete wxTheApp; wxTheApp = NULL; - + #if (defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING) || wxUSE_DEBUG_CONTEXT // At this point we want to check if there are any memory // blocks that aren't part of the wxDebugContext itself, @@ -136,7 +127,7 @@ void wxApp::CleanUp() } // wxDebugContext::SetStream(NULL, NULL); #endif - + // do it as the very last thing because everything else can log messages wxLog::DontCreateOnDemand(); // do it as the very last thing because everything else can log messages @@ -154,11 +145,11 @@ int wxEntry( int argc, char *argv[] ) printf( "wxWindows error: No initializer - use IMPLEMENT_APP macro.\n" ); return 0; }; - + wxTheApp = (wxApp*) (* wxApp::GetInitializerFunction()) (); }; - - if (!wxTheApp) + + if (!wxTheApp) { printf( "wxWindows error: wxTheApp == NULL\n" ); return 0; @@ -173,11 +164,11 @@ int wxEntry( int argc, char *argv[] ) // Here frames insert themselves automatically // into wxTopLevelWindows by getting created // in OnInit(). - + if (!wxTheApp->OnInit()) return 0; int retValue = 0; - + if (wxTheApp->Initialized()) retValue = wxTheApp->OnRun(); if (wxTheApp->GetTopWindow()) @@ -185,11 +176,11 @@ int wxEntry( int argc, char *argv[] ) delete wxTheApp->GetTopWindow(); wxTheApp->SetTopWindow(NULL); } - - wxTheApp->DeletePendingObjects(); - + + wxTheApp->DeletePendingObjects(); + wxTheApp->OnExit(); - + wxApp::CleanUp(); return retValue; @@ -207,7 +198,7 @@ wxApp::wxApp() m_appName = ""; argc = 0; argv = NULL; -#ifdef __WXMSW__ +#ifdef __WXPM__ m_printMode = wxPRINT_WINDOWS; #else m_printMode = wxPRINT_POSTSCRIPT; @@ -344,7 +335,7 @@ void wxApp::DeletePendingObjects() while (node) { wxObject *obj = (wxObject *)node->Data(); - + delete obj; if (wxPendingDelete.Member(obj)) diff --git a/src/os2/makefile.va b/src/os2/makefile.va index 785c8bd480..4db6413ffd 100644 --- a/src/os2/makefile.va +++ b/src/os2/makefile.va @@ -281,10 +281,30 @@ COMLIBOBJS2 = \ fs_zip.obj OS2OBJS = \ + ..\os2\$D\accel.obj \ + ..\os2\$D\app.obj \ + ..\os2\$D\bitmap.obj \ + ..\os2\$D\bmpbuttn.obj \ + ..\os2\$D\brush.obj \ + ..\os2\$D\button.obj \ + ..\os2\$D\caret.obj \ ..\os2\$D\dc.obj \ ..\os2\$D\dialog.obj \ ..\os2\$D\frame.obj \ - ..\os2\$D\window.obj \ + ..\os2\$D\window.obj + +OS2LIBOBJS = \ + accel.obj \ + app.obj \ + bitmap.obj \ + bmpbuttn.obj \ + brush.obj \ + button.obj \ + caret.obj \ + dc.obj \ + dialog.obj \ + frame.obj \ + window.obj HTMLOBJS = \ ..\html\$D\htmlcell.obj \ @@ -429,6 +449,19 @@ $(GENLIBOBJS): copy ..\generic\$D\tipdlg.obj copy ..\generic\$D\busyinfo.obj +$(OS2LIBOBJS): + copy ..\os2\$D\accel.obj + copy ..\os2\$D\app.obj + copy ..\os2\$D\bitmap.obj + copy ..\os2\$D\bmpbuttn.obj + copy ..\os2\$D\brush.obj + copy ..\os2\$D\button.obj + copy ..\os2\$D\caret.obj + copy ..\os2\$D\dc.obj + copy ..\os2\$D\dialog.obj + copy ..\os2\$D\frame.obj + copy ..\os2\$D\window.obj + # wxWindows library as DLL dll: nmake -f makefile.va all FINAL=$(FINAL) DLL=1 WXMAKINGDLL=1 NEW_WXLIBNAME=$(NEW_WXLIBNAME) @@ -484,7 +517,6 @@ $(WXDIR)\lib\wxgen.lib: $(GENLIBOBJS) ilib $(LIBFLAGS) $@ @<< $**; << - del *.obj $(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS) touch $(WXDIR)\lib\wxnones.lib @@ -493,12 +525,13 @@ $(WXDIR)\lib\wxnones.lib: $(NONESSENTIALOBJS) $**; << -$(WXDIR)\lib\wxos2.lib: $(OS2OBJS) +$(WXDIR)\lib\wxos2.lib: $(OS2LIBOBJS) touch $(WXDIR)\lib\wxos2.lib del $(WXDIR)\lib\wxos2.lib ilib $(LIBFLAGS) $@ @<< $**; << + del *.obj $(WXDIR)\lib\wx.lib: \ $D\dummy.obj \ -- 2.45.2