From 026c75e91c59932afd99006c90bdd53397469c4f Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Thu, 9 Oct 2008 14:58:45 +0000 Subject: [PATCH] add ctype-extn.c to the build. It contains the function versions of the is*** defines. Without this, bash 3 refuses to compile on haiku git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27946 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/glibc/ctype/Jamfile | 1 + src/system/libroot/posix/glibc/ctype/ctype-extn.c | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/system/libroot/posix/glibc/ctype/Jamfile b/src/system/libroot/posix/glibc/ctype/Jamfile index 7ad7c9ef12..01c42e7b8d 100644 --- a/src/system/libroot/posix/glibc/ctype/Jamfile +++ b/src/system/libroot/posix/glibc/ctype/Jamfile @@ -10,5 +10,6 @@ SubDirSysHdrs $(HAIKU_TOP) src system libroot posix glibc ; MergeObject posix_gnu_ctype.o : ctype.c + ctype-extn.c ctype-info.c ; diff --git a/src/system/libroot/posix/glibc/ctype/ctype-extn.c b/src/system/libroot/posix/glibc/ctype/ctype-extn.c index b54080d7ac..0732fb1b1a 100644 --- a/src/system/libroot/posix/glibc/ctype/ctype-extn.c +++ b/src/system/libroot/posix/glibc/ctype/ctype-extn.c @@ -18,12 +18,12 @@ #define __NO_CTYPE #include - +/* #define __ctype_tolower \ ((uint32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOLOWER) + 128) #define __ctype_toupper \ ((uint32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128) - +*/ /* Real function versions of the non-ANSI ctype functions. isblank is now in ISO C99 but we leave it here. */ @@ -58,10 +58,11 @@ isascii (int c) } weak_alias (isascii, __isascii_l) - +/* int __isblank_l (int c, __locale_t l) { return __isctype_l (c, _ISblank, l); } weak_alias (__isblank_l, isblank_l) +*/