From: cuz Date: Tue, 3 Jun 2003 11:53:51 +0000 (+0000) Subject: isblank() is an official function in the C99 standard X-Git-Tag: V2.12.0~1526 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f34da26dce32d7a6127b4b50016e956503bf2b22;p=cc65 isblank() is an official function in the C99 standard git-svn-id: svn://svn.cc65.org/cc65/trunk@2192 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/ctype.h b/include/ctype.h index 38308f41c..42e2be790 100644 --- a/include/ctype.h +++ b/include/ctype.h @@ -70,9 +70,7 @@ int __fastcall__ ispunct (int c); int __fastcall__ isspace (int c); int __fastcall__ isupper (int c); int __fastcall__ isxdigit (int c); -#ifndef __STRICT_ANSI__ -int __fastcall__ isblank (int c); /* cc65 (and GNU) extension */ -#endif +int __fastcall__ isblank (int c); /* New in C99 */ int __fastcall__ toupper (int c); /* Always external */ int __fastcall__ tolower (int c); /* Always external */ @@ -100,13 +98,11 @@ int __fastcall__ tolower (int c); /* Always external */ __asm__ ("and #%b", _CT_ALPHA), \ __AX__) -#ifndef STRICT_ANSI #define isblank(c) (__AX__ = (c), \ __asm__ ("tay"), \ __asm__ ("lda %v,y", _ctype), \ __asm__ ("and #%b", _CT_SPACE_TAB), \ __AX__) -#endif #define iscntrl(c) (__AX__ = (c), \ __asm__ ("tay"), \