Przeglądaj źródła

Remove unused isascii(3) support

Bryan Drewery 10 lat temu
rodzic
commit
4f5b665a7a
4 zmienionych plików z 2 dodań i 6 usunięć
  1. 1 1
      build/autotools/configure.ac
  2. 1 1
      configure
  3. 0 1
      src/compat/compat.h
  4. 0 3
      src/config.h.in

+ 1 - 1
build/autotools/configure.ac

@@ -209,7 +209,7 @@ AC_FUNC_STRFTIME
 
 #checkpoint
 AC_CACHE_SAVE
-AC_CHECK_FUNCS([clock fsync getrusage isascii getpassphrase posix_madvise madvise])
+AC_CHECK_FUNCS([clock fsync getrusage getpassphrase posix_madvise madvise])
 AC_CHECK_FUNCS([memcpy memmem memset random rename snprintf srandom gettime])
 #checkpoint
 AC_CACHE_SAVE

+ 1 - 1
configure

@@ -8608,7 +8608,7 @@ $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
   fi
 fi
 rm -f confcache
-for ac_func in clock fsync getrusage isascii getpassphrase posix_madvise madvise
+for ac_func in clock fsync getrusage getpassphrase posix_madvise madvise
 do :
   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
 ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"

+ 0 - 1
src/compat/compat.h

@@ -37,7 +37,6 @@ void *memmem(const void *l, size_t l_len, const void *s, size_t s_len);
 /* These apparently are unsafe without recasting. */
 #define egg_isdigit(x)  isdigit((int)  (unsigned char) (x))
 #define egg_isxdigit(x) isxdigit((int) (unsigned char) (x))
-#define egg_isascii(x)  isascii((int)  (unsigned char) (x))
 #define egg_isspace(x)  isspace((int)  (unsigned char) (x))
 #define egg_islower(x)  islower((int)  (unsigned char) (x))
 #define egg_isupper(x)  isupper((int)  (unsigned char) (x))

+ 0 - 3
src/config.h.in

@@ -69,9 +69,6 @@
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
 
-/* Define to 1 if you have the `isascii' function. */
-#undef HAVE_ISASCII
-
 /* Define to 1 if you have the `dl' library (-ldl). */
 #undef HAVE_LIBDL