diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y index 33ca8962c20..7d1e44e3ec2 100644 --- a/programs/winedbg/dbg.y +++ b/programs/winedbg/dbg.y @@ -37,6 +37,7 @@ int dbg_lex(void); static int dbg_error(const char*); +static void parser(const char*); %} @@ -548,7 +549,7 @@ void parser_handle(HANDLE input) dbg_parser_output = out_copy; } -void parser(const char* filename) +static void parser(const char* filename) { HANDLE h = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0L, 0); if (h != INVALID_HANDLE_VALUE) @@ -558,7 +559,7 @@ void parser(const char* filename) } } -int dbg_error(const char* s) +static int dbg_error(const char* s) { dbg_printf("%s\n", s); return 0; diff --git a/programs/winedbg/debugger.h b/programs/winedbg/debugger.h index 319f0dc5f36..2c7ef4e4d62 100644 --- a/programs/winedbg/debugger.h +++ b/programs/winedbg/debugger.h @@ -301,7 +301,6 @@ extern void break_restart_execution(int count); extern int break_add_condition(int bpnum, struct expr* exp); /* dbg.y */ -extern void parser(const char*); extern void parser_handle(HANDLE); extern int input_read_line(const char* pfx, char* buffer, int size); extern int input_fetch_entire_line(const char* pfx, char** line); @@ -436,7 +435,6 @@ extern struct dbg_type types_find_pointer(const struct dbg_type* type); extern struct dbg_type types_find_type(unsigned long linear, const char* name, enum SymTagEnum tag); /* winedbg.c */ -extern void dbg_outputA(const char* buffer, int len); extern void dbg_outputW(const WCHAR* buffer, int len); extern const char* dbg_W2A(const WCHAR* buffer, unsigned len); #ifdef __GNUC__ diff --git a/programs/winedbg/tgt_minidump.c b/programs/winedbg/tgt_minidump.c index a9f92dbbff7..bcdadcf3d5e 100644 --- a/programs/winedbg/tgt_minidump.c +++ b/programs/winedbg/tgt_minidump.c @@ -133,7 +133,7 @@ static BOOL WINAPI tgt_process_minidump_write(HANDLE hProcess, void* addr, return FALSE; } -BOOL CALLBACK validate_file(PCWSTR name, void* user) +static BOOL CALLBACK validate_file(PCWSTR name, void* user) { return FALSE; /* get the first file we find !! */ } diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index d1df695c497..a8014250f5a 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -99,7 +99,7 @@ struct dbg_internal_var dbg_internal_vars[DBG_IV_LAST]; const struct dbg_internal_var* dbg_context_vars; static HANDLE dbg_houtput; -void dbg_outputA(const char* buffer, int len) +static void dbg_outputA(const char* buffer, int len) { static char line_buff[4096]; static unsigned int line_pos;