/////////////////////////////////////////////////////////////////////////////
-// Name: palmos/main.cpp
+// Name: src/palmos/main.cpp
// Purpose: wxEnter for Palm OS
-// Author: William Osborne
+// Author: William Osborne - minimal working wxPalmOS port
// Modified by:
// Created: 10/07/04
-// RCS-ID: $Id:
+// RCS-ID: $Id$
// Copyright: (c) William Osborne
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// headers
// ----------------------------------------------------------------------------
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#pragma hdrstop
#endif
-#include "wx/event.h"
-#include "wx/app.h"
+#ifndef WX_PRECOMP
+ #include "wx/event.h"
+ #include "wx/app.h"
+#endif //WX_PRECOMP
+
#include "wx/cmdline.h"
#if wxUSE_GUI
int wxEntry()
{
- /* There is no command line in PalmOS. For now generate a fake arument
+ /* There is no command line in PalmOS. For now generate a fake argument
* list. Later this may be changed to reflect the application launch code
*/
- wxArrayString args;
- int argc = args.GetCount();
-
- // +1 here for the terminating NULL
+ static const int argc = 0;
wxChar **argv = new wxChar *[argc + 1];
- for ( int i = 0; i < argc; i++ )
- {
- argv[i] = wxStrdup(args[i]);
- }
// argv[] must be NULL-terminated
argv[argc] = NULL;
-
- return wxEntry(argc, argv);
+
+ return wxEntry(const_cast<int>(argc), argv);
}
#endif // wxUSE_GUI