Added mocks and stubs for cons_show

This commit is contained in:
James Booth
2013-12-19 21:05:39 +00:00
parent b27c5d0f5b
commit d56f6dc39b
10 changed files with 183 additions and 122 deletions

View File

@@ -85,8 +85,8 @@ cons_debug(const char * const msg, ...)
}
}
void
cons_show(const char * const msg, ...)
static void
_cons_show(const char * const msg, ...)
{
ProfWin *console = wins_get_console();
va_list arg;
@@ -99,6 +99,7 @@ cons_show(const char * const msg, ...)
va_end(arg);
wins_refresh_console();
}
void (*cons_show)(const char * const, ...) = _cons_show;
void
cons_show_error(const char * const msg, ...)

View File

@@ -149,7 +149,7 @@ void title_bar_set_typing(gboolean is_typing);
void title_bar_draw(void);
// console window actions
void cons_show(const char * const msg, ...);
void (*cons_show)(const char * const msg, ...);
void cons_about(void);
void cons_help(void);
void cons_basic_help(void);