Browse Source

- make isascii visible again
TODO: *_l() should go

Bernhard Reutner-Fischer 15 years ago
parent
commit
28075836bd
2 changed files with 11 additions and 2 deletions
  1. 9 0
      include/ctype.h
  2. 2 2
      libc/misc/ctype/ctype.c

+ 9 - 0
include/ctype.h

@@ -345,6 +345,15 @@ libc_hidden_proto(isxdigit_l)
 __exctype_l (isblank_l);
 libc_hidden_proto(isblank_l)
 
+#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN
+
+/* Return nonzero iff C is in the ASCII set
+   (i.e., is no more than 7 bits wide).  */
+extern int isascii_l (int __c) __THROW;
+libc_hidden_proto(isascii_l)
+
+#endif
+
 /* Return the lowercase version of C in locale L.  */
 extern int __tolower_l (int __c, __locale_t __l) __THROW;
 extern int tolower_l (int __c, __locale_t __l) __THROW;

+ 2 - 2
libc/misc/ctype/ctype.c

@@ -382,14 +382,14 @@ int __XL_NPP(isascii)(int c)
 
 #else  /* __UCLIBC_HAS_CTYPE_TABLES__ */
 
-/* libc_hidden_proto(isascii) */
 int isascii(int c)
 {
 	return __isascii(c);		/* locale-independent */
 }
-libc_hidden_def(isascii)
 
 #endif /* __UCLIBC_HAS_CTYPE_TABLES__ */
+CTYPE_DEF(ascii)
+
 
 #endif
 /**********************************************************************/