]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
name-lookup.c (print_binding_level): Make static.
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Tue, 25 Jan 2005 08:55:00 +0000 (08:55 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Tue, 25 Jan 2005 08:55:00 +0000 (08:55 +0000)
* 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.

From-SVN: r94209

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

index c8239784f5211a85cef7b73e5a293fcdc2d2d6fc..db37ecd35b2146d4db80709a2440f51c63dac9a5 100644 (file)
@@ -1,3 +1,13 @@
+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.
index ac5ad911b2fc0097630d9f44b369b6eb468f6314..3690e87bab6c80c810ed14c58d0464f63973026b 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 2e14494bdd0bc3e0d5845b8c079af08ad9cd4a2c..e4433191771687d5f3a1fe2df2337b8ca6983029 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);