1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-22 06:30:38 +00:00

isblank() is an official function in the C99 standard

git-svn-id: svn://svn.cc65.org/cc65/trunk@2192 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-06-03 11:53:51 +00:00
parent 158d5a080f
commit f34da26dce

View File

@ -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"), \