summaryrefslogtreecommitdiff
path: root/binutils/bin2c.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2010-11-05 10:50:59 +0000
committerAlan Modra <amodra@bigpond.net.au>2010-11-05 10:50:59 +0000
commitc9d0b7809d271007f5e9d7dc84539670184b8681 (patch)
treed4de47e6a4044e42ecbaf0f38bd733bd13377591 /binutils/bin2c.c
parent75ad9510009df508d162bf088dfc2071ff8a37c9 (diff)
downloadbinutils-redhat-c9d0b7809d271007f5e9d7dc84539670184b8681.tar.gz
* bin2c.c: Remove internationalization and version report.
* Makefile.am: Update bin2c rule. * Makefile.in: Regenerate.
Diffstat (limited to 'binutils/bin2c.c')
-rw-r--r--binutils/bin2c.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/binutils/bin2c.c b/binutils/bin2c.c
index a1f0ef51d4..0719fb9138 100644
--- a/binutils/bin2c.c
+++ b/binutils/bin2c.c
@@ -18,9 +18,9 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-#include "sysdep.h"
-#include "bfd.h"
-#include "bucomm.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include "binary-io.h"
int
main (int argc, char *argv[])
@@ -28,19 +28,9 @@ main (int argc, char *argv[])
int c;
int i;
-#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
- setlocale (LC_MESSAGES, "");
-#endif
-#if defined (HAVE_SETLOCALE)
- setlocale (LC_CTYPE, "");
-#endif
- bindtextdomain (PACKAGE, LOCALEDIR);
- textdomain (PACKAGE);
-
if (argc != 1)
{
int ishelp = 0;
- int isvers = 0;
FILE *stream;
if (argc == 2 && argv[1][0] == '-')
@@ -49,15 +39,11 @@ main (int argc, char *argv[])
if (*opt == '-')
++opt;
ishelp = *opt == 'h' || *opt == 'H';
- isvers = *opt == 'v' || *opt == 'V';
}
- if (isvers)
- print_version ("bin2c");
-
stream = ishelp ? stdout : stderr;
- fprintf (stream, _("Usage: %s < input_file > output_file\n"), argv[0]);
- fprintf (stream, _("Prints bytes from stdin in hex format.\n"));
+ fprintf (stream, "Usage: %s < input_file > output_file\n", argv[0]);
+ fprintf (stream, "Prints bytes from stdin in hex format.\n");
exit (!ishelp);
}