projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
PR c++/16597
[deliverable/binutils-gdb.git]
/
binutils
/
bin2c.c
diff --git
a/binutils/bin2c.c
b/binutils/bin2c.c
index a1f0ef51d4407aa3c19d4cf160f80e36f023e896..3c9c0941a82b905f59e0dc3fa822215ffc28901e 100644
(file)
--- a/
binutils/bin2c.c
+++ b/
binutils/bin2c.c
@@
-1,5
+1,5
@@
/* bin2c.c -- dump binary file in hex format
/* bin2c.c -- dump binary file in hex format
- Copyright
2007, 2008
Free Software Foundation, Inc.
+ Copyright
(C) 2007-2014
Free Software Foundation, Inc.
This file is part of GNU Binutils.
This file is part of GNU Binutils.
@@
-18,9
+18,9
@@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
-#include
"sysdep.h"
-#include
"bfd.h"
-#include "b
ucomm
.h"
+#include
<stdio.h>
+#include
<stdlib.h>
+#include "b
inary-io
.h"
int
main (int argc, char *argv[])
int
main (int argc, char *argv[])
@@
-28,19
+28,9
@@
main (int argc, char *argv[])
int c;
int i;
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;
if (argc != 1)
{
int ishelp = 0;
- int isvers = 0;
FILE *stream;
if (argc == 2 && argv[1][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';
if (*opt == '-')
++opt;
ishelp = *opt == 'h' || *opt == 'H';
- isvers = *opt == 'v' || *opt == 'V';
}
}
- if (isvers)
- print_version ("bin2c");
-
stream = ishelp ? stdout : stderr;
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);
}
exit (!ishelp);
}
This page took
0.02575 seconds
and
4
git commands to generate.