winedbg: Make some functions static.
This commit is contained in:
parent
89c63fd32b
commit
5012a57268
|
@ -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;
|
||||
|
|
|
@ -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__
|
||||
|
|
|
@ -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 !! */
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue