Commit 0046d6ec authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Get rid of dbg_outputW helper.

parent 9a130ccd
......@@ -501,7 +501,6 @@ extern BOOL types_is_integral_type(const struct dbg_lvalue*);
extern BOOL types_is_float_type(const struct dbg_lvalue*);
/* winedbg.c */
extern void dbg_outputW(const WCHAR* buffer, int len);
extern const char* dbg_W2A(const WCHAR* buffer, unsigned len);
#ifdef __GNUC__
extern int WINAPIV dbg_printf(const char* format, ...) __attribute__((format (printf,1,2)));
......
......@@ -641,7 +641,6 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
{
unsigned size;
dbg_lgint_t res = types_extract_as_lgint(lvalue, &size, NULL);
WCHAR wch;
switch (format)
{
......@@ -658,10 +657,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
return;
case 'u':
wch = (WCHAR)(res & 0xFFFF);
dbg_printf("%d = '", wch);
dbg_outputW(&wch, 1);
dbg_printf("'");
dbg_printf("%d = '%lc'", (WCHAR)(res & 0xFFFF), (WCHAR)(res & 0xFFFF));
return;
case 'i':
......
......@@ -135,13 +135,6 @@ const char* dbg_W2A(const WCHAR* buffer, unsigned len)
return ansi;
}
void dbg_outputW(const WCHAR* buffer, int len)
{
const char* ansi = dbg_W2A(buffer, len);
if (ansi) dbg_outputA(ansi, strlen(ansi));
/* FIXME: should CP_ACP be GetConsoleCP()? */
}
int WINAPIV dbg_printf(const char* format, ...)
{
static char buf[4*1024];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment