diff options
author | Nick Clifton <nickc@redhat.com> | 2002-01-30 16:07:28 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2002-01-30 16:07:28 +0000 |
commit | ca09e32bb218843d120213458d387c84c185a187 (patch) | |
tree | f3fe9089d8559f0633dc49b67b95309681c84cae /bfd/libbfd.c | |
parent | ae1a89b7c442e5d7025309820c65c2d849870957 (diff) | |
download | gdb-ca09e32bb218843d120213458d387c84c185a187.zip gdb-ca09e32bb218843d120213458d387c84c185a187.tar.gz gdb-ca09e32bb218843d120213458d387c84c185a187.tar.bz2 |
Fixes for better translation into other languages
Diffstat (limited to 'bfd/libbfd.c')
-rw-r--r-- | bfd/libbfd.c | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/bfd/libbfd.c b/bfd/libbfd.c index 5aa51ae..8560d2f 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; } } |