]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
External namespace cleanup.
authorJulian Seward <jseward@acm.org>
Fri, 3 May 2002 22:29:04 +0000 (22:29 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 3 May 2002 22:29:04 +0000 (22:29 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@210

cachegrind/cg_main.c
coregrind/vg_signals.c
vg_cachesim.c
vg_signals.c

index bfa9171fb883e544b911013825a818b83570fb4d..8081e0ae8f63e6c252b4bbc8a8882277a8dcefd9 100644 (file)
@@ -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;
index 51a2fe06bf1c5dc8a6caaf85138e565c0877d364..cbc72d35791994462ecdeeb1d6f0ae85be86be13 100644 (file)
@@ -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];
 
 
index bfa9171fb883e544b911013825a818b83570fb4d..8081e0ae8f63e6c252b4bbc8a8882277a8dcefd9 100644 (file)
@@ -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;
index 51a2fe06bf1c5dc8a6caaf85138e565c0877d364..cbc72d35791994462ecdeeb1d6f0ae85be86be13 100644 (file)
@@ -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];