git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1743
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void ShowOptions(void);
#ifdef NO_GUI
void ShowOptions(void);
#ifdef NO_GUI
+
+extern char *wxBuffer; // we must init it, otherwise tex2rtf will crash
+
int main(int argc, char **argv)
#else
wxMenuBar *menuBar = NULL;
int main(int argc, char **argv)
#else
wxMenuBar *menuBar = NULL;
+ wxBuffer = new char[1500];
+ // this is done in wxApp, but NO_GUI version doesn't call it :-(
+
if (!InputFile || !OutputFile)
{
cout << "Tex2RTF: input or output file is missing.\n";
ShowOptions();
exit(1);
}
if (!InputFile || !OutputFile)
{
cout << "Tex2RTF: input or output file is missing.\n";
ShowOptions();
exit(1);
}
// Return the main frame window
return TRUE;
#else
// Return the main frame window
return TRUE;
#else
int MyApp::OnExit()
{
wxNode *node = CustomMacroList.First();
int MyApp::OnExit()
{
wxNode *node = CustomMacroList.First();
void ShowOptions(void)
{
char buf[100];
void ShowOptions(void)
{
char buf[100];
+
+#ifndef NO_GUI
+void wxObject::Dump(ostream& str)
+{
+ if (GetClassInfo() && GetClassInfo()->GetClassName())
+ str << GetClassInfo()->GetClassName();
+ else
+ str << "unknown object class";
+}
+#endif
\ No newline at end of file