]> Savannah Git Hosting - gnulib.git/commitdiff
Remove unused macros from !_LIBC code in glibc-borrowed files.
authorBruno Haible <bruno@clisp.org>
Mon, 28 Nov 2011 00:09:32 +0000 (01:09 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 28 Nov 2011 00:09:32 +0000 (01:09 +0100)
* lib/fnmatch.c (STRCOLL): Remove macro.
* lib/fnmatch_loop.c (STRCOLL): Remove undef.
* lib/glob.c (__stat, __readdir64): Remove macros.
* lib/tempname.c (__open64, __xstat64): Remove macros.
Suggested by Paul Eggert.

ChangeLog
lib/fnmatch.c
lib/fnmatch_loop.c
lib/glob.c
lib/tempname.c

index 9f8b30bc7d60893bcf193637a698e833f7aeeb74..cdc32a770e1537b76e265aa75827eb89b5b02500 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-11-27  Bruno Haible  <bruno@clisp.org>
+
+       Remove unused macros from !_LIBC code in glibc-borrowed files.
+       * lib/fnmatch.c (STRCOLL): Remove macro.
+       * lib/fnmatch_loop.c (STRCOLL): Remove undef.
+       * lib/glob.c (__stat, __readdir64): Remove macros.
+       * lib/tempname.c (__open64, __xstat64): Remove macros.
+       Suggested by Paul Eggert.
+
 2011-11-27  Bruno Haible  <bruno@clisp.org>
 
        getcwd: Fix link error on MSVC 9.
index 346e1c6b267ba7194ac2e827abf55cb22efa11c6..bd25b4ca327ede61ed2107aca1bf6874ebb22f39 100644 (file)
@@ -168,7 +168,6 @@ static int posixly_correct;
 #  endif
 # endif
 # define MEMCHR(S, C, N) memchr (S, C, N)
-# define STRCOLL(S1, S2) strcoll (S1, S2)
 # include "fnmatch_loop.c"
 
 
@@ -196,7 +195,6 @@ static int posixly_correct;
 #   endif
 #  endif
 #  define MEMCHR(S, C, N) wmemchr (S, C, N)
-#  define STRCOLL(S1, S2) wcscoll (S1, S2)
 #  define WIDE_CHAR_VERSION 1
 
 #  undef IS_CHAR_CLASS
index 8334491d4037fc12dc31e244af1f6be989320dfd..f35c10f9edf222be330f197540509123f4880c63 100644 (file)
@@ -1214,7 +1214,6 @@ EXT (INT opt, const CHAR *pattern, const CHAR *string, const CHAR *string_end,
 #undef END
 #undef MEMPCPY
 #undef MEMCHR
-#undef STRCOLL
 #undef STRLEN
 #undef STRCAT
 #undef L_
index 85419ccfaea8619a1b60f054cc890fefc848ca21..fddd02d1e954f6db2b2994cfdc9f18adc0a50dea 100644 (file)
 # define __stat64(fname, buf)   stat (fname, buf)
 # define __fxstatat64(_, d, f, st, flag) fstatat (d, f, st, flag)
 # define struct_stat64          struct stat
-# define __stat(fname, buf)     stat (fname, buf)
 # define __alloca               alloca
 # define __readdir              readdir
-# define __readdir64            readdir64
 # define __glob_pattern_p       glob_pattern_p
 #endif /* _LIBC */
 
index 139e0c3441f679586e17d683109d24b3bbf3de07..130ae97f8fcfa2a75173061258fa846af9dfd51f 100644 (file)
@@ -67,9 +67,7 @@
 # define __gettimeofday gettimeofday
 # define __mkdir mkdir
 # define __open open
-# define __open64 open
 # define __lxstat64(version, file, buf) lstat (file, buf)
-# define __xstat64(version, file, buf) stat (file, buf)
 #endif
 
 #if ! (HAVE___SECURE_GETENV || _LIBC)