Francois Gouget : winedbg: Make some functions static.

Alexandre Julliard julliard at winehq.org
Tue Jan 20 08:27:41 CST 2009


Module: wine
Branch: master
Commit: 5012a57268762ed6a738ad51cc1ea6871304666d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5012a57268762ed6a738ad51cc1ea6871304666d

Author: Francois Gouget <fgouget at free.fr>
Date:   Tue Jan 20 09:13:23 2009 +0100

winedbg: Make some functions static.

---

 programs/winedbg/dbg.y          |    5 +++--
 programs/winedbg/debugger.h     |    2 --
 programs/winedbg/tgt_minidump.c |    2 +-
 programs/winedbg/winedbg.c      |    2 +-
 4 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/programs/winedbg/dbg.y b/programs/winedbg/dbg.y
index 33ca896..7d1e44e 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 319f0dc..2c7ef4e 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 a9f92db..bcdadcf 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 d1df695..a801425 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;




More information about the wine-cvs mailing list