Windows build fix: declare _db_set_ before it's used.
This commit is contained in:
parent
5dfdc8bfce
commit
d4a7b82be9
101
dbug/dbug.c
101
dbug/dbug.c
@ -412,57 +412,6 @@ void _db_process_(const char *name)
|
|||||||
cs->process= name;
|
cs->process= name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* FUNCTION
|
|
||||||
*
|
|
||||||
* _db_push_ push current debugger settings and set up new one
|
|
||||||
*
|
|
||||||
* SYNOPSIS
|
|
||||||
*
|
|
||||||
* VOID _db_push_(control)
|
|
||||||
* char *control;
|
|
||||||
*
|
|
||||||
* DESCRIPTION
|
|
||||||
*
|
|
||||||
* Given pointer to a debug control string in "control", pushes
|
|
||||||
* the current debug settings, parses the control string, and sets
|
|
||||||
* up a new debug settings with _db_set_()
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _db_push_(const char *control)
|
|
||||||
{
|
|
||||||
CODE_STATE *cs=0;
|
|
||||||
get_code_state_or_return;
|
|
||||||
PushState(cs);
|
|
||||||
_db_set_(cs, control);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* FUNCTION
|
|
||||||
*
|
|
||||||
* _db_set_init_ set initial debugger settings
|
|
||||||
*
|
|
||||||
* SYNOPSIS
|
|
||||||
*
|
|
||||||
* VOID _db_set_init_(control)
|
|
||||||
* char *control;
|
|
||||||
*
|
|
||||||
* DESCRIPTION
|
|
||||||
* see _db_set_
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
void _db_set_init_(const char *control)
|
|
||||||
{
|
|
||||||
CODE_STATE cs;
|
|
||||||
bzero((char*) &cs,sizeof(cs));
|
|
||||||
cs.stack=&init_settings;
|
|
||||||
_db_set_(&cs, control);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FUNCTION
|
* FUNCTION
|
||||||
*
|
*
|
||||||
@ -719,6 +668,56 @@ void _db_set_(CODE_STATE *cs, const char *control)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FUNCTION
|
||||||
|
*
|
||||||
|
* _db_push_ push current debugger settings and set up new one
|
||||||
|
*
|
||||||
|
* SYNOPSIS
|
||||||
|
*
|
||||||
|
* VOID _db_push_(control)
|
||||||
|
* char *control;
|
||||||
|
*
|
||||||
|
* DESCRIPTION
|
||||||
|
*
|
||||||
|
* Given pointer to a debug control string in "control", pushes
|
||||||
|
* the current debug settings, parses the control string, and sets
|
||||||
|
* up a new debug settings with _db_set_()
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
void _db_push_(const char *control)
|
||||||
|
{
|
||||||
|
CODE_STATE *cs=0;
|
||||||
|
get_code_state_or_return;
|
||||||
|
PushState(cs);
|
||||||
|
_db_set_(cs, control);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FUNCTION
|
||||||
|
*
|
||||||
|
* _db_set_init_ set initial debugger settings
|
||||||
|
*
|
||||||
|
* SYNOPSIS
|
||||||
|
*
|
||||||
|
* VOID _db_set_init_(control)
|
||||||
|
* char *control;
|
||||||
|
*
|
||||||
|
* DESCRIPTION
|
||||||
|
* see _db_set_
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
void _db_set_init_(const char *control)
|
||||||
|
{
|
||||||
|
CODE_STATE cs;
|
||||||
|
bzero((char*) &cs,sizeof(cs));
|
||||||
|
cs.stack=&init_settings;
|
||||||
|
_db_set_(&cs, control);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FUNCTION
|
* FUNCTION
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user