From b42cb57bbaf518bcc945fa0c0ba368abfdf429b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 10 Aug 2004 12:19:23 +0000 Subject: [PATCH] Added some casts and removed the static *_internal variables. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8544 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/locale/ctype.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/kernel/libroot/posix/locale/ctype.c b/src/kernel/libroot/posix/locale/ctype.c index a5c38e41af..ef45e3ff7d 100644 --- a/src/kernel/libroot/posix/locale/ctype.c +++ b/src/kernel/libroot/posix/locale/ctype.c @@ -30,7 +30,7 @@ // ToDo: These should probably be revised for ISO-8859-1 // ToDo: change the tables depending on the current locale -static unsigned short int __ctype_b_internal[] = { +const unsigned short int *__ctype_b = (const unsigned short int[]) { /* 0 */ _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, /* 8 */ _IScntrl, _ISblank|_IScntrl|_ISspace, _IScntrl|_ISspace, _IScntrl|_ISspace, _IScntrl|_ISspace, _IScntrl|_ISspace, _IScntrl, _IScntrl, /* 16 */ _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, @@ -65,7 +65,7 @@ static unsigned short int __ctype_b_internal[] = { /* 248 */ _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, _IScntrl, }; -const int __ctype_tolower_internal[] = { +const int *__ctype_tolower = (const int[]) { /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, /* 8 */ 8, 9, 10, 11, 12, 13, 14, 15, /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, @@ -100,7 +100,7 @@ const int __ctype_tolower_internal[] = { /* 248 */ 248, 249, 250, 251, 252, 253, 254, 255, }; -const int __ctype_toupper_internal[] = { +const int *__ctype_toupper = (const int[]) { /* 0 */ 0, 1, 2, 3, 4, 5, 6, 7, /* 8 */ 8, 9, 10, 11, 12, 13, 14, 15, /* 16 */ 16, 17, 18, 19, 20, 21, 22, 23, @@ -136,11 +136,6 @@ const int __ctype_toupper_internal[] = { }; -const unsigned short int *__ctype_b = __ctype_b_internal; -const int *__ctype_tolower = __ctype_tolower_internal; -const int *__ctype_toupper = __ctype_toupper_internal; - - int isalnum(int c) {