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*); ...@@ -501,7 +501,6 @@ extern BOOL types_is_integral_type(const struct dbg_lvalue*);
extern BOOL types_is_float_type(const struct dbg_lvalue*); extern BOOL types_is_float_type(const struct dbg_lvalue*);
/* winedbg.c */ /* winedbg.c */
extern void dbg_outputW(const WCHAR* buffer, int len);
extern const char* dbg_W2A(const WCHAR* buffer, unsigned len); extern const char* dbg_W2A(const WCHAR* buffer, unsigned len);
#ifdef __GNUC__ #ifdef __GNUC__
extern int WINAPIV dbg_printf(const char* format, ...) __attribute__((format (printf,1,2))); 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) ...@@ -641,7 +641,6 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
{ {
unsigned size; unsigned size;
dbg_lgint_t res = types_extract_as_lgint(lvalue, &size, NULL); dbg_lgint_t res = types_extract_as_lgint(lvalue, &size, NULL);
WCHAR wch;
switch (format) switch (format)
{ {
...@@ -658,10 +657,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format) ...@@ -658,10 +657,7 @@ void print_basic(const struct dbg_lvalue* lvalue, char format)
return; return;
case 'u': case 'u':
wch = (WCHAR)(res & 0xFFFF); dbg_printf("%d = '%lc'", (WCHAR)(res & 0xFFFF), (WCHAR)(res & 0xFFFF));
dbg_printf("%d = '", wch);
dbg_outputW(&wch, 1);
dbg_printf("'");
return; return;
case 'i': case 'i':
......
...@@ -135,13 +135,6 @@ const char* dbg_W2A(const WCHAR* buffer, unsigned len) ...@@ -135,13 +135,6 @@ const char* dbg_W2A(const WCHAR* buffer, unsigned len)
return ansi; 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, ...) int WINAPIV dbg_printf(const char* format, ...)
{ {
static char buf[4*1024]; 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