This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[C++ patch]: More code cleanup


hi,
I've installed some more cleanup of comments and unrequired prototypes.

nathan
-- 
Dr Nathan Sidwell   ::   http://www.codesourcery.com   ::   CodeSourcery LLC
         'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org
2000-08-11  Nathan Sidwell  <nathan@codesourcery.com>

	* cp-tree.h (resolve_scope_to_name): Remove unused prototype.
	(lookup_nested_tag): Likewise.
	
	* decl2.c (grokfield): Fix comment to reflect many types of _DECLs
	can be produced.

Index: cp/cp-tree.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/cp-tree.h,v
retrieving revision 1.509
diff -c -3 -p -r1.509 cp-tree.h
*** cp-tree.h	2000/08/07 07:13:12	1.509
--- cp-tree.h	2000/08/11 14:07:33
*************** extern int check_dtor_name			PARAMS ((tr
*** 3777,3783 ****
  extern int get_arglist_len_in_bytes		PARAMS ((tree));
  
  extern tree build_vfield_ref			PARAMS ((tree, tree));
- extern tree resolve_scope_to_name		PARAMS ((tree, tree));
  extern tree build_scoped_method_call		PARAMS ((tree, tree, tree, tree));
  extern tree build_addr_func			PARAMS ((tree));
  extern tree build_call				PARAMS ((tree, tree));
--- 3777,3782 ----
*************** extern tree lookup_field			PARAMS ((tree
*** 4313,4319 ****
  extern int lookup_fnfields_1                    PARAMS ((tree, tree));
  extern tree lookup_fnfields			PARAMS ((tree, tree, int));
  extern tree lookup_member			PARAMS ((tree, tree, int, int));
- extern tree lookup_nested_tag			PARAMS ((tree, tree));
  extern tree get_matching_virtual		PARAMS ((tree, tree, int));
  extern void get_pure_virtuals		        PARAMS ((tree));
  extern tree init_vbase_pointers			PARAMS ((tree, tree));
--- 4312,4317 ----
Index: cp/decl2.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/cp/decl2.c,v
retrieving revision 1.383
diff -c -3 -p -r1.383 decl2.c
*** decl2.c	2000/08/11 09:28:01	1.383
--- decl2.c	2000/08/11 14:07:38
*************** finish_static_data_member_decl (decl, in
*** 1615,1629 ****
  }
  
  /* Process the specs, declarator (NULL if omitted) and width (NULL if omitted)
!    of a structure component, returning a FIELD_DECL node.
     QUALS is a list of type qualifiers for this decl (such as for declaring
     const member functions).
  
     This is done during the parsing of the struct declaration.
!    The FIELD_DECL nodes are chained together and the lot of them
     are ultimately passed to `build_struct' to make the RECORD_TYPE node.
- 
-    C++:
  
     If class A defines that certain functions in class B are friends, then
     the way I have set things up, it is B who is interested in permission
--- 1615,1627 ----
  }
  
  /* Process the specs, declarator (NULL if omitted) and width (NULL if omitted)
!    of a structure component, returning a _DECL node.
     QUALS is a list of type qualifiers for this decl (such as for declaring
     const member functions).
  
     This is done during the parsing of the struct declaration.
!    The _DECL nodes are chained together and the lot of them
     are ultimately passed to `build_struct' to make the RECORD_TYPE node.
  
     If class A defines that certain functions in class B are friends, then
     the way I have set things up, it is B who is interested in permission

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]