[C++] misc patch pt.c

Graham Stott grahams@redhat.com
Sun Jan 6 01:40:00 GMT 2002


All,

This patch tidies up the macros in class.c w.r.t parenthesis, whitespace, etc.

It also deletes an unused routine and macro.

Bootstrapped i686-pc-linux-gnu, all languages, no regressions.

Graham

cp/ChangeLog

	*pt.c (ccat): Uppercase macro parameter.
	(cat): Likewise

-----------------------------------------------------
Index: pt.c 
===================================================================
RCS file: /cvs/gcc/gcc/gcc/cp/pt.c,v 
retrieving revision 1.571
diff -c -p -r1.571 pt.c
*** pt.c        2002/01/02 13:55:18     1.571
--- pt.c        2002/01/06 08:59:06
*************** mangle_class_name_for_template (name, pa
*** 3630,3637 ****
      obstack_free (&scratch_obstack, scratch_firstobj);
    scratch_firstobj = obstack_alloc (&scratch_obstack, 1);
    
! #define ccat(c)       obstack_1grow (&scratch_obstack, (c));
! #define cat(s)        obstack_grow (&scratch_obstack, (s), strlen (s))
 
    cat (name);
    ccat ('<');
--- 3630,3637 ----
      obstack_free (&scratch_obstack, scratch_firstobj);
    scratch_firstobj = obstack_alloc (&scratch_obstack, 1);
 
! #define ccat(C)       obstack_1grow (&scratch_obstack, (C));
! #define cat(S)        obstack_grow (&scratch_obstack, (S), strlen (S))

    cat (name);
    ccat ('<');
------------------------------------------------------------------------



More information about the Gcc-patches mailing list