- add some #if's to compile the control panel stuff only when
BX_USE_CONTROL_PANEL is set. I put the #if...#endif thing around the entire file in siminterface.cc and control.cc so that it's safe to compile them in either case.
This commit is contained in:
parent
b1161e3a6b
commit
a97df5a8fa
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* gui/control.cc
|
||||
* $Id: control.cc,v 1.9 2001-06-11 06:35:18 bdenney Exp $
|
||||
* $Id: control.cc,v 1.10 2001-06-11 06:48:37 bdenney Exp $
|
||||
*
|
||||
* This is code for a text-mode control panel. Note that this file
|
||||
* does NOT include bochs.h. Instead, it does all of its contact with
|
||||
@ -58,13 +58,15 @@ write a compiler!
|
||||
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
#if BX_USE_CONTROL_PANEL
|
||||
|
||||
extern "C" {
|
||||
#include <stdio.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
}
|
||||
#include "config.h"
|
||||
#include "osdep.h"
|
||||
#include "control.h"
|
||||
#include "siminterface.h"
|
||||
@ -811,3 +813,5 @@ void bx_edit_rom_addr ()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
@ -174,7 +174,11 @@ bx_gui_c::power_handler(void)
|
||||
void
|
||||
bx_gui_c::snapshot_handler(void)
|
||||
{
|
||||
#if BX_USE_CONTROL_PANEL
|
||||
bx_control_panel (BX_CPANEL_RUNTIME);
|
||||
#else
|
||||
BX_INFO(( "# SNAPSHOT callback (unimplemented)." ));
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*
|
||||
* gui/siminterface.cc
|
||||
* $Id: siminterface.cc,v 1.8 2001-06-11 06:35:18 bdenney Exp $
|
||||
* $Id: siminterface.cc,v 1.9 2001-06-11 06:48:37 bdenney Exp $
|
||||
*
|
||||
* Defines the actual link between bx_simulator_interface_c methods
|
||||
* and the simulator. This file includes bochs.h because it needs
|
||||
@ -10,6 +10,8 @@
|
||||
|
||||
#include "bochs.h"
|
||||
|
||||
#if BX_USE_CONTROL_PANEL
|
||||
|
||||
bx_simulator_interface_c *SIM = NULL;
|
||||
logfunctions *siminterface_log = NULL;
|
||||
#define LOG_THIS siminterface_log->
|
||||
@ -361,3 +363,5 @@ bx_real_sim_c::set_private_colormap (int en)
|
||||
{
|
||||
bx_options.private_colormap = en;
|
||||
}
|
||||
|
||||
#endif // if BX_USE_CONTROL_PANEL==1
|
||||
|
Loading…
Reference in New Issue
Block a user