aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada
diff options
context:
space:
mode:
authorRainer Orth <ro@TechFak.Uni-Bielefeld.DE>2003-11-24 16:38:39 +0000
committerRainer Orth <ro@gcc.gnu.org>2003-11-24 16:38:39 +0000
commit7677e9e06291274cb77681e899df0246e02f9f20 (patch)
tree44fb6b08d4169914116081654cd6b4e5cb4706ca /gcc/ada
parent33fe4596326d5341f0ae665f81d180e118447fc9 (diff)
downloadgcc-7677e9e06291274cb77681e899df0246e02f9f20.zip
gcc-7677e9e06291274cb77681e899df0246e02f9f20.tar.gz
gcc-7677e9e06291274cb77681e899df0246e02f9f20.tar.bz2
adadecode.c: Only include ctype.h if IN_GCC.
* adadecode.c: Only include ctype.h if IN_GCC. (__gnat_decode): Use ISDIGIT from safe-ctype.h. From-SVN: r73876
Diffstat (limited to 'gcc/ada')
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/adadecode.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index e40866c..464b690 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,8 @@
+2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
+
+ * adadecode.c: Only include ctype.h if IN_GCC.
+ (__gnat_decode): Use ISDIGIT from safe-ctype.h.
+
2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
* Makefile.in:
diff --git a/gcc/ada/adadecode.c b/gcc/ada/adadecode.c
index ef77c5f..fe0253e 100644
--- a/gcc/ada/adadecode.c
+++ b/gcc/ada/adadecode.c
@@ -35,10 +35,11 @@
#include "system.h"
#else
#include <stdio.h>
+#include <ctype.h>
+#define ISDIGIT(c) isdigit(c)
#define PARMS(ARGS) ARGS
#endif
-#include <ctype.h>
#include "adadecode.h"
static void add_verbose (const char *, char *);
@@ -207,7 +208,7 @@ __gnat_decode (const char *coded_name, char *ada_name, int verbose)
int n_digits = 0;
if (len > 1)
- while (isdigit ((int) ada_name[(int) len - 1 - n_digits]))
+ while (ISDIGIT ((int) ada_name[(int) len - 1 - n_digits]))
n_digits++;
/* Check if we have $ or __ before digits. */