diff options
author | unknown <kostja@bodhi.local> | 2006-08-14 16:15:08 +0400 |
---|---|---|
committer | unknown <kostja@bodhi.local> | 2006-08-14 16:15:08 +0400 |
commit | 675a5b776d693b64d72227dea86f51cb9ca31781 (patch) | |
tree | f4a03bfd52cbc751e3e436890f2d617ac726d89a /dbug/dbug.c | |
parent | 21e75cb081c6c41d90c4c4f5cdde1bb16addd59b (diff) | |
download | mariadb-git-675a5b776d693b64d72227dea86f51cb9ca31781.tar.gz |
Windows build fix: declare _db_set_ before it's used.
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r-- | dbug/dbug.c | 101 |
1 files changed, 50 insertions, 51 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index a543a335952..e377c78b3bd 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -412,57 +412,6 @@ void _db_process_(const char *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 * @@ -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 * |