* name-lookup.c (print_binding_level): Make static.
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2005 08:55:00 +0000 (08:55 +0000)
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 25 Jan 2005 08:55:00 +0000 (08:55 +0000)
(constructor_name_full): Make static inline.
(current_decl_namespace): Make static.
* name-lookup.h (constructor_name_full): Remove prototype.
(print_binding_level): Likewise.
(storetags): Likewise.
(current_decl_namespace): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94209 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h

index c823978..db37ecd 100644 (file)
@@ -1,5 +1,15 @@
 2005-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
+       * name-lookup.c (print_binding_level): Make static.
+       (constructor_name_full): Make static inline.
+       (current_decl_namespace): Make static.
+       * name-lookup.h (constructor_name_full): Remove prototype.
+       (print_binding_level): Likewise.
+       (storetags): Likewise.
+       (current_decl_namespace): Likewise.
+
+2005-01-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
        * decl.h (debug_bindings_indentation): Remove.
 
 2005-01-23  Kazu Hirata  <kazu@cs.umass.edu>
index ac5ad91..3690e87 100644 (file)
@@ -1478,7 +1478,7 @@ getdecls (void)
 static int no_print_functions = 0;
 static int no_print_builtins = 0;
 
-void
+static void
 print_binding_level (struct cp_binding_level* lvl)
 {
   tree t;
@@ -1656,7 +1656,7 @@ set_identifier_type_value (tree id, tree decl)
    specified class TYPE.  When given a template, this routine doesn't
    lose the specialization.  */
 
-tree
+static inline tree
 constructor_name_full (tree type)
 {
   return TYPE_IDENTIFIER (TYPE_MAIN_VARIANT (type));
@@ -2821,7 +2821,7 @@ set_decl_namespace (tree decl, tree scope, bool friendp)
 
 /* Return the namespace where the current declaration is declared.  */
 
-tree
+static tree
 current_decl_namespace (void)
 {
   tree result;
index 2e14494..e443319 100644 (file)
@@ -94,7 +94,6 @@ DEF_VEC_GC_O(cxx_saved_binding);
 extern tree identifier_type_value (tree);
 extern void set_identifier_type_value (tree, tree);
 extern void pop_binding (tree, tree);
-extern tree constructor_name_full (tree);
 extern tree constructor_name (tree);
 extern bool constructor_name_p (tree, tree);
 \f
@@ -293,7 +292,6 @@ extern bool template_parm_scope_p (void);
 extern scope_kind innermost_scope_kind (void);
 extern cxx_scope *begin_scope (scope_kind, tree);
 extern void print_binding_stack        (void);
-extern void print_binding_level        (cxx_scope *);
 extern void push_to_top_level (void);
 extern void pop_from_top_level (void);
 extern void pop_everything (void);
@@ -328,7 +326,6 @@ extern bool push_class_level_binding (tree, tree);
 extern tree getdecls (void);
 extern tree cp_namespace_decls (tree);
 extern void set_decl_namespace (tree, tree, bool);
-extern tree current_decl_namespace (void);
 extern void push_decl_namespace (tree);
 extern void pop_decl_namespace (void);
 extern void do_namespace_alias (tree, tree);