mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-27 01:14:16 +08:00
* 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.
This commit is contained in:
@ -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
|
2007-04-11 Thomas Neumann tneumann@users.sourceforge.net
|
||||||
|
|
||||||
* argv.c: Use ANSI C declarations.
|
* argv.c: Use ANSI C declarations.
|
||||||
|
@ -651,7 +651,8 @@ $(CONFIGURED_OFILES): stamp-picdir
|
|||||||
else true; fi
|
else true; fi
|
||||||
$(COMPILE.c) $(srcdir)/fibheap.c $(OUTPUT_OPTION)
|
$(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 \
|
if [ x"$(PICFLAG)" != x ]; then \
|
||||||
$(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
|
$(COMPILE.c) $(PICFLAG) $(srcdir)/filename_cmp.c -o pic/$@; \
|
||||||
else true; fi
|
else true; fi
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
#include "filenames.h"
|
#include "filenames.h"
|
||||||
|
#include "safe-ctype.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
@ -55,8 +55,8 @@ filename_cmp (const char *s1, const char *s2)
|
|||||||
#else
|
#else
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
int c1 = tolower (*s1);
|
int c1 = TOLOWER (*s1);
|
||||||
int c2 = tolower (*s2);
|
int c2 = TOLOWER (*s2);
|
||||||
|
|
||||||
/* On DOS-based file systems, the '/' and the '\' are equivalent. */
|
/* On DOS-based file systems, the '/' and the '\' are equivalent. */
|
||||||
if (c1 == '/')
|
if (c1 == '/')
|
||||||
|
Reference in New Issue
Block a user