1
0
Fork 0

Warning clean up

Removing some old unused routines
Addind some newlines after some files.


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1077
This commit is contained in:
Sjoerd van der Berg 2003-06-19 17:12:50 +00:00
parent d5231d4351
commit b222a9576a
13 changed files with 52 additions and 81 deletions

View file

@ -69,7 +69,6 @@ static char curSelectorName[3] = { 0,0,0 };
static Segment oldsegs[6];
static Bitu oldflags;
DBGBlock dbg;
static char input_line[256];
static Bitu input_count;
Bitu cycle_count;
static bool debugging;
@ -434,7 +433,6 @@ bool CBreakpoint::DeleteByIndex(Bit16u index)
bool CBreakpoint::DeleteBreakpoint(PhysPt where)
{
// Search matching breakpoint
int nr = 0;
std::list<CBreakpoint*>::iterator i;
CBreakpoint* bp;
for(i=BPoints.begin(); i != BPoints.end(); i++) {
@ -655,7 +653,7 @@ static void DrawCode(void)
PhysPt start = GetAddress(codeViewData.useCS,codeViewData.useEIP);
char dline[200];Bitu size;Bitu c;
for (Bit32u i=0;i<10;i++) {
for (int i=0;i<10;i++) {
saveSel = false;
if (has_colors()) {
if ((codeViewData.useCS==SegValue(cs)) && (disEIP == reg_eip)) {
@ -780,8 +778,6 @@ Bit32u GetHexValue(char* str, char*& hex)
bool ChangeRegister(char* str)
{
Bit32u value = 0;
char* hex = str;
while (*hex==' ') hex++;
if (strstr(hex,"EAX")==hex) { hex+=3; reg_eax = GetHexValue(hex,hex); } else
@ -920,7 +916,6 @@ bool ParseCommand(char* str)
if (found) {
wprintw(dbg.win_out,"Breakpoint list:\n");
wprintw(dbg.win_out,"-------------------------------------------------------------------------\n");
Bit32u nr = 0;
CBreakpoint::ShowList();
return true;
};

View file

@ -37,7 +37,7 @@ struct _LogGroup {
bool enabled;
};
static _LogGroup loggrp[LOG_MAX]={"",true,0};
static _LogGroup loggrp[LOG_MAX]={{"",true},{0,false}};
static FILE* debuglog;
extern int old_cursor_state;