This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[C++] misc patch pt.c
- From: Graham Stott <grahams at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 06 Jan 2002 09:34:42 +0000
- Subject: [C++] misc patch pt.c
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 ('<');
------------------------------------------------------------------------