This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: Use ISDIGIT
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Cc: nathan at codesourcery dot com
- Date: Thu, 9 Oct 2003 10:06:52 -0700
- Subject: PATCH: Use ISDIGIT
I'd like to check in this patch to fix isdigit.
H.J.
----
2003-10-09 H.J. Lu <hongjiu.lu@intel.com>
* cofflink.c: Include "safe-ctype.h".
(coff_link_add_symbols): Use ISDIGIT instead of isdigit.
--- bfd/cofflink.c.ctype 2003-10-09 09:24:48.000000000 -0700
+++ bfd/cofflink.c 2003-10-09 10:03:52.000000000 -0700
@@ -27,6 +27,7 @@
#include "libbfd.h"
#include "coff/internal.h"
#include "libcoff.h"
+#include "safe-ctype.h"
static bfd_boolean coff_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info);
static bfd_boolean coff_link_check_archive_element (bfd *abfd, struct bfd_link_info *info, bfd_boolean *pneeded);
@@ -582,7 +583,7 @@ coff_link_add_symbols (bfd *abfd,
for (stab = abfd->sections; stab; stab = stab->next)
if (strncmp (".stab", stab->name, 5) == 0
&& (!stab->name[5]
- || (stab->name[5] == '.' && isdigit (stab->name[6]))))
+ || (stab->name[5] == '.' && ISDIGIT (stab->name[6]))))
{
struct coff_link_hash_table *table;
struct coff_section_tdata *secdata