diff options
author | brobecke <brobecke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-03 23:39:35 +0000 |
---|---|---|
committer | brobecke <brobecke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-03 23:39:35 +0000 |
commit | c13d1306162c01181ee5ce120b34d0a57accd0ba (patch) | |
tree | 4587f778a15ca884252ff9bbd613b273a5c9344b /libiberty | |
parent | ead4b22fec75a4652c231dd6793f49d854b3f1c5 (diff) | |
download | gcc-c13d1306162c01181ee5ce120b34d0a57accd0ba.tar.gz |
* filename_cmp.c: Replace include of ctype.h by include of
safe-ctype.h.
(filename_cmp): Use TOLOWER instead of tolower for conversions
that are locale-independent.
* Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124399 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 8 | ||||
-rw-r--r-- | libiberty/Makefile.in | 3 | ||||
-rw-r--r-- | libiberty/filename_cmp.c | 6 |
3 files changed, 13 insertions, 4 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 9e218b59fb4..431ef1db2ff 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,11 @@ +2007-05-03 Joel Brobecker <brobecker@adacore.com> + + * filename_cmp.c: Replace include of ctype.h by include of + safe-ctype.h. + (filename_cmp): Use TOLOWER instead of tolower for conversions + that are locale-independent. + * Makefile.in (filename_cmp.o): Add dependency on safe-ctype.h. + 2007-04-11 Thomas Neumann tneumann@users.sourceforge.net * argv.c: Use ANSI C declarations. diff --git a/libiberty/Makefile.in b/libiberty/Makefile.in index 4f5e2152783..735f1e632d9 100644 --- a/libiberty/Makefile.in +++ b/libiberty/Makefile.in @@ -651,7 +651,8 @@ $(CONFIGURED_OFILES): stamp-picdir else true; fi $(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION) -./filename_cmp.o: $(srcdir)/filename_cmp.c $(INCDIR)/filenames.h +./filename_cmp.o: $(srcdir)/filename_cmp.c $(INCDIR)/filenames.h \ + $(INCDIR)/safe-ctype.h if [ x"$(PICFLAG)" != x ]; then \ $(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \ else true; fi diff --git a/libiberty/filename_cmp.c b/libiberty/filename_cmp.c index 59bb726b90e..0a4d0d85091 100644 --- a/libiberty/filename_cmp.c +++ b/libiberty/filename_cmp.c @@ -24,8 +24,8 @@ #include <string.h> #endif -#include <ctype.h> #include "filenames.h" +#include "safe-ctype.h" /* @@ -55,8 +55,8 @@ filename_cmp (const char *s1, const char *s2) #else for (;;) { - int c1 = tolower (*s1); - int c2 = tolower (*s2); + int c1 = TOLOWER (*s1); + int c2 = TOLOWER (*s2); /* On DOS-based file systems, the '/' and the '\' are equivalent. */ if (c1 == '/') |