- forward declaration of class DebugLogDialog is necessary for wx with debugger
- DebugLogDialog::CheckLogLength(): fixed a warning
This commit is contained in:
parent
890e9a2746
commit
51bdc30323
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wxdialog.cc,v 1.67 2003-09-09 16:41:24 vruppert Exp $
|
||||
// $Id: wxdialog.cc,v 1.68 2003-09-13 16:49:09 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
// Define BX_PLUGGABLE in files that can be compiled into plugins. For
|
||||
@ -874,7 +874,7 @@ void DebugLogDialog::CheckLogLength ()
|
||||
if (len > lengthMax + lengthTolerance) {
|
||||
// Truncate the string. Start from length - lengthMax, search
|
||||
// forward until we find the first \n.
|
||||
for (int i = len - lengthMax; i<len-1; i++) {
|
||||
for (int i = len - lengthMax; i<(int)(len-1); i++) {
|
||||
if (str.GetChar (i) == '\n') {
|
||||
// remove the \n and everything before it. Done.
|
||||
//printf ("truncating from 0 to %d\n", i+1);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// $Id: wxmain.h,v 1.43 2003-08-29 18:57:40 vruppert Exp $
|
||||
// $Id: wxmain.h,v 1.44 2003-09-13 16:49:09 vruppert Exp $
|
||||
/////////////////////////////////////////////////////////////////
|
||||
// This file defines variables and classes that the wxWindows .cc files
|
||||
// share. It should be included only by wx.cc and wxmain.cc.
|
||||
@ -11,6 +11,9 @@ class MyPanel;
|
||||
class SimThread;
|
||||
class FloppyConfigDialog;
|
||||
class ParamDialog;
|
||||
#if BX_DEBUGGER
|
||||
class DebugLogDialog;
|
||||
#endif
|
||||
|
||||
//hack alert; yuck; FIXME
|
||||
extern MyFrame *theFrame;
|
||||
|
Loading…
x
Reference in New Issue
Block a user