summaryrefslogtreecommitdiff
path: root/bfd/libbfd.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2002-01-30 16:07:28 +0000
committerNick Clifton <nickc@redhat.com>2002-01-30 16:07:28 +0000
commitaf90712369bc524fb0b533dcfcccd405065ce77b (patch)
tree7ba45722b59d83a04c82597e9a0c89cdf1467686 /bfd/libbfd.c
parent8e047d40cfff2da749564bb6ed4f7b7921ba120b (diff)
downloadbinutils-redhat-af90712369bc524fb0b533dcfcccd405065ce77b.tar.gz
Fixes for better translation into other languages
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r--bfd/libbfd.c35
1 files changed, 19 insertions, 16 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c
index 5aa51aee27..8560d2f5ff 100644
--- a/bfd/libbfd.c
+++ b/bfd/libbfd.c
@@ -1,24 +1,24 @@
/* Assorted BFD support routines, only used internally.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001
+ 2000, 2001, 2002
Free Software Foundation, Inc.
Written by Cygnus Support.
-This file is part of BFD, the Binary File Descriptor library.
+ This file is part of BFD, the Binary File Descriptor library.
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "bfd.h"
#include "sysdep.h"
@@ -1448,6 +1448,7 @@ _bfd_generic_verify_endian_match (ibfd, obfd)
/* Give a warning at runtime if someone compiles code which calls
old routines. */
+
void
warn_deprecated (what, file, line, func)
const char *what;
@@ -1460,11 +1461,13 @@ warn_deprecated (what, file, line, func)
if (~(size_t) func & ~mask)
{
- fprintf (stderr, _("Deprecated %s called"), what);
+ /* Note: seperate sentances in order to allow
+ for translation into other languages. */
if (func)
- fprintf (stderr, _(" at %s line %d in %s\n"), file, line, func);
+ fprintf (stderr, _("Deprecated %s called at %s line %d in %s\n"),
+ what, file, line, func);
else
- fprintf (stderr, "\n");
+ fprintf (stderr, _("Deprecated %s called\n"), what);
mask |= ~(size_t) func;
}
}