X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d12e353663f9a2fc28b26e6468716f6a01b85595..55c56a6d80f0ee4a4bf2add6ba1f62c02cbfc23e:/utils/HelpGen/src/HelpGen.cpp?ds=sidebyside diff --git a/utils/HelpGen/src/HelpGen.cpp b/utils/HelpGen/src/HelpGen.cpp index 64d917bd4e..0933ed8297 100644 --- a/utils/HelpGen/src/HelpGen.cpp +++ b/utils/HelpGen/src/HelpGen.cpp @@ -55,6 +55,7 @@ #include #include #include + #include #endif // WX_PRECOMP #include @@ -73,6 +74,16 @@ // just a copy of argv static char **g_argv = NULL; +class HelpGenApp: public wxApp +{ +public: + HelpGenApp() {}; + + bool OnInit(); +}; + +IMPLEMENT_APP(HelpGenApp); + // ----------------------------------------------------------------------------- // private functions // ----------------------------------------------------------------------------- @@ -456,7 +467,12 @@ static void usage() exit(1); } +/* int main(int argc, char **argv) +{ +*/ + +bool HelpGenApp::OnInit() { enum { @@ -634,7 +650,7 @@ int main(int argc, char **argv) wxLogError("Can't complete diff."); // failure - return 1; + return false; } DocManager docman(paramNames); @@ -654,7 +670,7 @@ int main(int argc, char **argv) docman.DumpDifferences(ctxTop); } - return 0; + return false; } // ----------------------------------------------------------------------------- @@ -1914,6 +1930,14 @@ static const char *GetCurrentTime(const char *timeFormat) /* $Log$ + Revision 1.9 2000/01/16 13:25:21 VS + compilation fixes (gcc) + + Revision 1.8 1999/09/13 14:29:39 JS + + Made HelpGen into a wxWin app (still uses command-line args); moved includes + into src for simplicity; added VC++ 5 project file + Revision 1.7 1999/02/21 22:32:32 VZ 1. more C++ parser fixes - now it almost parses wx/string.h a) #if/#ifdef/#else (very) limited support