projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* alpha-opc.c (unop): Encode with RB as $sp.
[deliverable/binutils-gdb.git]
/
binutils
/
sysdump.c
diff --git
a/binutils/sysdump.c
b/binutils/sysdump.c
index 28fafeabf8d23e11563240479043c5a29b788a82..0b0d49524ffd14b695ac0e7c205b7d237d733dc4 100644
(file)
--- a/
binutils/sysdump.c
+++ b/
binutils/sysdump.c
@@
-26,15
+26,13
@@
#include "bfd.h"
#include "bucomm.h"
#include "bfd.h"
#include "bucomm.h"
+#include "safe-ctype.h"
#include <stdio.h>
#include <stdio.h>
-#include <ctype.h>
#include <libiberty.h>
#include <getopt.h>
#include "sysroff.h"
#include <libiberty.h>
#include <getopt.h>
#include "sysroff.h"
-#define PROGRAM_VERSION "1.0"
-
static int dump = 1;
static int segmented_p;
static int code;
static int dump = 1;
static int segmented_p;
static int code;
@@
-260,7
+258,8
@@
pbarray (y)
printf ("%d (", y->len);
for (x = 0; x < y->len; x++)
{
printf ("%d (", y->len);
for (x = 0; x < y->len; x++)
{
- printf ("(%02x %c)", y->data[x], isprint (y->data[x]) ? y->data[x] : '.');
+ printf ("(%02x %c)", y->data[x],
+ ISPRINT (y->data[x]) ? y->data[x] : '.');
}
printf (")\n");
}
}
printf (")\n");
}
@@
-759,6
+758,9
@@
main (ac, av)
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
#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);
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
@@
-774,7
+776,7
@@
main (ac, av)
show_help ();
/*NOTREACHED*/
case 'V':
show_help ();
/*NOTREACHED*/
case 'V':
- print
f (_("GNU %s version %s\n"), program_name, PROGRAM_VERSION
);
+ print
_version ("sysdump"
);
exit (0);
/*NOTREACHED*/
case 0:
exit (0);
/*NOTREACHED*/
case 0:
This page took
0.023996 seconds
and
4
git commands to generate.