From 0c7b6e66e84a1246d35367b2c81191710d37a8f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 27 Oct 2005 22:34:12 +0000 Subject: [PATCH] added ctype.c, from glibc version 2.2.5 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14548 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/libroot/posix/glibc/ctype/Jamfile | 1 + src/system/libroot/posix/glibc/ctype/ctype.c | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/system/libroot/posix/glibc/ctype/Jamfile b/src/system/libroot/posix/glibc/ctype/Jamfile index b51366aa7c..13465d770e 100644 --- a/src/system/libroot/posix/glibc/ctype/Jamfile +++ b/src/system/libroot/posix/glibc/ctype/Jamfile @@ -6,6 +6,7 @@ SubDirHdrs $(OBOS_TOP) src system libroot posix glibc locale ; SubDirHdrs $(OBOS_TOP) src system libroot posix glibc ; KernelMergeObject posix_gnu_ctype.o : + ctype.c ctype-info.c : -fPIC -DPIC ; diff --git a/src/system/libroot/posix/glibc/ctype/ctype.c b/src/system/libroot/posix/glibc/ctype/ctype.c index 1b606c5b2d..4bcbd30ef7 100644 --- a/src/system/libroot/posix/glibc/ctype/ctype.c +++ b/src/system/libroot/posix/glibc/ctype/ctype.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,92,97,99,2002 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1992, 1997, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -36,11 +36,6 @@ func (isspace, _ISspace) func (isupper, _ISupper) func (isxdigit, _ISxdigit) -#define __ctype_tolower \ - ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOLOWER) + 128) -#define __ctype_toupper \ - ((int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_TOUPPER) + 128) - int tolower (int c) {