`template' isn't a very good name for a variable.
Who invented c++ anyway?
This commit is contained in:
parent
5b343f5ae8
commit
a966dba9da
3 changed files with 13 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-09-06 Alan Modra <alan@linuxcare.com.au>
|
||||||
|
|
||||||
|
* section.c (bfd_get_unique_section_name): Avoid c++ reserved
|
||||||
|
word for variable name.
|
||||||
|
* bfd-in2.h: Regenerate.
|
||||||
|
|
||||||
2000-09-05 Nick Clifton <nickc@redhat.com>
|
2000-09-05 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* config.in: Regenerate.
|
* config.in: Regenerate.
|
||||||
|
|
|
@ -1284,7 +1284,7 @@ bfd_get_section_by_name PARAMS ((bfd *abfd, const char *name));
|
||||||
|
|
||||||
char *
|
char *
|
||||||
bfd_get_unique_section_name PARAMS ((bfd *abfd,
|
bfd_get_unique_section_name PARAMS ((bfd *abfd,
|
||||||
const char *template,
|
const char *templat,
|
||||||
int *count));
|
int *count));
|
||||||
|
|
||||||
asection *
|
asection *
|
||||||
|
|
|
@ -649,30 +649,30 @@ FUNCTION
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
char *bfd_get_unique_section_name(bfd *abfd,
|
char *bfd_get_unique_section_name(bfd *abfd,
|
||||||
const char *template,
|
const char *templat,
|
||||||
int *count);
|
int *count);
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Invent a section name that is unique in @var{abfd} by tacking
|
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
|
is non-NULL, then it specifies the first number tried as a
|
||||||
suffix to generate a unique name. The value pointed to by
|
suffix to generate a unique name. The value pointed to by
|
||||||
@var{count} will be incremented in this case.
|
@var{count} will be incremented in this case.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *
|
char *
|
||||||
bfd_get_unique_section_name (abfd, template, count)
|
bfd_get_unique_section_name (abfd, templat, count)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
const char *template;
|
const char *templat;
|
||||||
int *count;
|
int *count;
|
||||||
{
|
{
|
||||||
int num;
|
int num;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
char *sname;
|
char *sname;
|
||||||
|
|
||||||
len = strlen (template);
|
len = strlen (templat);
|
||||||
sname = bfd_malloc (len + 7);
|
sname = bfd_malloc (len + 7);
|
||||||
strcpy (sname, template);
|
strcpy (sname, templat);
|
||||||
num = 1;
|
num = 1;
|
||||||
if (count != NULL)
|
if (count != NULL)
|
||||||
num = *count;
|
num = *count;
|
||||||
|
|
Loading…
Add table
Reference in a new issue