OSDN Git Service

remove a few more empty #if/#endif pairs
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Sep 2009 00:09:48 +0000 (02:09 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Sep 2009 00:09:48 +0000 (02:09 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
libc/misc/fnmatch/fnmatch.c
libc/misc/time/time.c
libc/stdio/fseeko.c
libc/stdio/vasprintf.c
libc/stdio/vdprintf.c
libc/stdio/vsnprintf.c
libc/stdlib/stdlib.c
libc/string/_collate.c
libc/string/strncasecmp.c
libc/sysdeps/linux/common/setegid.c
libc/sysdeps/linux/common/seteuid.c

index f069e5c..d25619b 100644 (file)
@@ -340,10 +340,9 @@ is_char_class (const wchar_t *wcs)
 #  include "fnmatch_loop.c"
 # endif
 
-#ifdef __UCLIBC_HAS_WCHAR__
-#else
-#undef MB_CUR_MAX
-#define MB_CUR_MAX 1
+#ifndef __UCLIBC_HAS_WCHAR__
+# undef MB_CUR_MAX
+# define MB_CUR_MAX 1
 #endif
 
 int
index 0597138..583c17a 100644 (file)
@@ -1172,8 +1172,7 @@ LOOP:
 
                                        i = 16 + 6;     /* 0-fill, width = 4 */
                                }
-#ifdef __UCLIBC_HAS_TM_EXTENSIONS__
-#else
+#ifndef __UCLIBC_HAS_TM_EXTENSIONS__
                                __UCLIBC_MUTEX_UNLOCK(_time_tzlock);
                                if (*p == 'Z') {
                                        goto OUTPUT;
index 5f3bbbb..3caf1ac 100644 (file)
@@ -16,9 +16,6 @@
 # define OFFSET_TYPE   long int
 #endif
 
-#ifdef __UCLIBC_HAS_LFS__
-#endif
-
 int FSEEK(register FILE *stream, OFFSET_TYPE offset, int whence)
 {
 #if defined(__UCLIBC_HAS_LFS__) && !defined(__DO_LARGEFILE)
index 175c497..a901ee8 100644 (file)
 #warning Skipping vasprintf since no vsnprintf!
 #else
 
-#ifdef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
-#else
-#endif
-
 int vasprintf(char **__restrict buf, const char * __restrict format,
                         va_list arg)
 {
index 8e9926f..e3405e4 100644 (file)
@@ -11,8 +11,6 @@
 #include "_stdio.h"
 #include <stdarg.h>
 
-#ifdef __USE_OLD_VFPRINTF__
-#endif
 
 int vdprintf(int filedes, const char * __restrict format, va_list arg)
 {
@@ -42,10 +40,10 @@ int vdprintf(int filedes, const char * __restrict format, va_list arg)
 
 #ifdef __UCLIBC_HAS_WCHAR__
        f.__ungot_width[0] = 0;
-#endif /* __UCLIBC_HAS_WCHAR__ */
+#endif
 #ifdef __STDIO_MBSTATE
        __INIT_MBSTATE(&(f.__state));
-#endif /* __STDIO_MBSTATE */
+#endif
 
 /* _vfprintf_internal doesn't do any locking, locking init is here
  * only because of fflush_unlocked. TODO? */
index 7eb91ee..07cff34 100644 (file)
@@ -9,9 +9,6 @@
 #include <stdarg.h>
 
 
-#ifdef __USE_OLD_VFPRINTF__
-#endif
-
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning WISHLIST: Implement vsnprintf for non-buffered and no custom stream case.
 #endif /* __UCLIBC_MJN3_ONLY__ */
index eb34dfc..ad0c4aa 100644 (file)
@@ -635,8 +635,6 @@ unsigned long long attribute_hidden _stdlib_strto_ll(register const Wchar * __re
 
 #else  /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */
 
-#if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-#endif
 /* This is the main work fuction which handles both strtoll (sflag = 1) and
  * strtoull (sflag = 0). */
 
index eadbd6c..77d9eb6 100644 (file)
@@ -19,9 +19,6 @@
 #include <errno.h>
 #include <assert.h>
 
-#ifdef WANT_WIDE
-#endif
-
 #ifdef __UCLIBC_HAS_LOCALE__
 #if defined(L_strxfrm) || defined(L_strxfrm_l) || defined(L_wcsxfrm) || defined(L_wcsxfrm_l)
 
@@ -512,9 +509,9 @@ int __XL_NPP(wcscoll) (const Wchar *s0, const Wchar *s1   __LOCALE_PARAM )
        if (!CUR_COLLATE->num_weights) { /* C locale */
 #ifdef WANT_WIDE
                return wcscmp(s0, s1);
-#else  /* WANT_WIDE */
+#else
                return strcmp(s0, s1);
-#endif /* WANT_WIDE */
+#endif
        }
 
        pass = 0;
index b290e5a..2af305e 100644 (file)
@@ -21,8 +21,6 @@
 # ifdef __UCLIBC_DO_XLOCALE
 #  define TOLOWER(C) tolower_l((C), locale_arg)
 # else
-#if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-#endif
 #  define TOLOWER(C) tolower((C))
 # endif
 #endif
index d1daf31..30329bc 100644 (file)
@@ -11,9 +11,6 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 
-#if (defined __NR_setresgid || defined __NR_setresgid32) && defined __USE_GNU
-#endif
-
 int setegid(gid_t gid)
 {
     int result;
index 44f0854..3e1611d 100644 (file)
 #undef __NR_setresuid32
 #endif
 
-
-#if (defined __NR_setresuid || defined __NR_setresuid32) && defined __USE_GNU
-#endif
-
 int seteuid(uid_t uid)
 {
     int result;