From: Julian Seward Date: Fri, 3 May 2002 22:29:04 +0000 (+0000) Subject: External namespace cleanup. X-Git-Tag: svn/VALGRIND_1_0_3~244 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8da65e6bd6d1e4379d066c54f295649b97e344e;p=thirdparty%2Fvalgrind.git External namespace cleanup. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@210 --- diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index bfa9171fb8..8081e0ae8f 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -191,18 +191,18 @@ struct _file_node { }; /* BBCC_table structure: list(filename, list(fn_name, list(BBCC))) */ -file_node *BBCC_table[N_FILE_ENTRIES]; +static file_node *BBCC_table[N_FILE_ENTRIES]; -Int distinct_files = 0; -Int distinct_fns = 0; +static Int distinct_files = 0; +static Int distinct_fns = 0; -Int distinct_instrs = 0; -Int full_debug_BBs = 0; -Int file_line_debug_BBs = 0; -Int fn_name_debug_BBs = 0; -Int no_debug_BBs = 0; +static Int distinct_instrs = 0; +static Int full_debug_BBs = 0; +static Int file_line_debug_BBs = 0; +static Int fn_name_debug_BBs = 0; +static Int no_debug_BBs = 0; -Int BB_retranslations = 0; +static Int BB_retranslations = 0; static void init_BBCC_table() { @@ -903,6 +903,7 @@ static void fprint_BBCC_table_and_calc_totals(Int client_argc, /* Adds commas to ULong, right justifying in a field field_width wide, returns * the string in buf. */ +static Int commify(ULong n, int field_width, char buf[COMMIFY_BUF_LEN]) { int len, n_commas, i, j, new_len, space; @@ -932,6 +933,7 @@ Int commify(ULong n, int field_width, char buf[COMMIFY_BUF_LEN]) return new_len; } +static void percentify(Int n, Int pow, Int field_width, char buf[]) { int i, len, space; diff --git a/coregrind/vg_signals.c b/coregrind/vg_signals.c index 51a2fe06bf..cbc72d3579 100644 --- a/coregrind/vg_signals.c +++ b/coregrind/vg_signals.c @@ -64,6 +64,7 @@ void* VG_(sigpending)[VKI_KNSIG]; interrupted by this signal. We need to consult this when a signal returns, if it should happen that the signal which we delivered has interrupted a system call. */ +static Bool vg_sig_sarestart[VKI_KNSIG]; diff --git a/vg_cachesim.c b/vg_cachesim.c index bfa9171fb8..8081e0ae8f 100644 --- a/vg_cachesim.c +++ b/vg_cachesim.c @@ -191,18 +191,18 @@ struct _file_node { }; /* BBCC_table structure: list(filename, list(fn_name, list(BBCC))) */ -file_node *BBCC_table[N_FILE_ENTRIES]; +static file_node *BBCC_table[N_FILE_ENTRIES]; -Int distinct_files = 0; -Int distinct_fns = 0; +static Int distinct_files = 0; +static Int distinct_fns = 0; -Int distinct_instrs = 0; -Int full_debug_BBs = 0; -Int file_line_debug_BBs = 0; -Int fn_name_debug_BBs = 0; -Int no_debug_BBs = 0; +static Int distinct_instrs = 0; +static Int full_debug_BBs = 0; +static Int file_line_debug_BBs = 0; +static Int fn_name_debug_BBs = 0; +static Int no_debug_BBs = 0; -Int BB_retranslations = 0; +static Int BB_retranslations = 0; static void init_BBCC_table() { @@ -903,6 +903,7 @@ static void fprint_BBCC_table_and_calc_totals(Int client_argc, /* Adds commas to ULong, right justifying in a field field_width wide, returns * the string in buf. */ +static Int commify(ULong n, int field_width, char buf[COMMIFY_BUF_LEN]) { int len, n_commas, i, j, new_len, space; @@ -932,6 +933,7 @@ Int commify(ULong n, int field_width, char buf[COMMIFY_BUF_LEN]) return new_len; } +static void percentify(Int n, Int pow, Int field_width, char buf[]) { int i, len, space; diff --git a/vg_signals.c b/vg_signals.c index 51a2fe06bf..cbc72d3579 100644 --- a/vg_signals.c +++ b/vg_signals.c @@ -64,6 +64,7 @@ void* VG_(sigpending)[VKI_KNSIG]; interrupted by this signal. We need to consult this when a signal returns, if it should happen that the signal which we delivered has interrupted a system call. */ +static Bool vg_sig_sarestart[VKI_KNSIG];