This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


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

fix c++ breakage


Committed.  Why does anyone ever want to program in c++ ?  :-)

bfd/ChangeLog
	* section.c (bfd_get_unique_section_name): Avoid c++ reserved
	word for variable name.
	* bfd-in2.h: Regenerate.
	* libbfd.h: Regenerate.

Alan Modra
-- 
Linuxcare.  Support for the Revolution.

Index: section.c
===================================================================
RCS file: /cvs/src/src/bfd/section.c,v
retrieving revision 1.20
diff -u -p -r1.20 section.c
--- section.c	2000/09/05 02:42:16	1.20
+++ section.c	2000/09/05 23:55:11
@@ -649,30 +649,30 @@ FUNCTION
 
 SYNOPSIS
 	char *bfd_get_unique_section_name(bfd *abfd,
-					  const char *template,
+					  const char *templat,
 					  int *count);
 
 DESCRIPTION
 	Invent a section name that is unique in @var{abfd} by tacking
-	a digit suffix onto the original @var{template}.  If @var{count}
+	a digit suffix onto the original @var{templat}.  If @var{count}
 	is non-NULL, then it specifies the first number	tried as a
 	suffix to generate a unique name.  The value pointed to by
 	@var{count} will be incremented in this case.
 */
 
 char *
-bfd_get_unique_section_name (abfd, template, count)
+bfd_get_unique_section_name (abfd, templat, count)
      bfd *abfd;
-     const char *template;
+     const char *templat;
      int *count;
 {
   int num;
   unsigned int len;
   char *sname;
 
-  len = strlen (template);
+  len = strlen (templat);
   sname = bfd_malloc (len + 7);
-  strcpy (sname, template);
+  strcpy (sname, templat);
   num = 1;
   if (count != NULL)
     num = *count;


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