1 /*-------------------------------------------------------------------------
2 ctype.h - ANSI functions forward declarations
4 Written By - Sandeep Dutta . sandeep.dutta@usa.net (1998)
6 This program is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 In other words, you are welcome to use, share and improve this program.
21 You are forbidden to forbid anyone else to use, share and improve
22 what you give them. Help stamp out software-hoarding!
23 -------------------------------------------------------------------------*/
25 #ifndef __SDC51_CTYPE_H
26 #define __SDC51_CTYPE_H 1
28 #define isalnum(x) (isalpha(x) || isdigit(x))
29 #define isalpha(x) (isupper(x) || islower(c))
31 #ifdef SDCC_STACK_AUTO
32 #warning Make sure you recompile _is*.c files as 'reentrant'
34 extern char iscntrl (unsigned char ) reentrant ;
35 extern char isdigit (unsigned char ) reentrant ;
36 extern char isgraph (unsigned char ) reentrant ;
37 extern char islower (unsigned char ) reentrant ;
38 extern char isupper (unsigned char ) reentrant ;
39 extern char isprint (unsigned char ) reentrant ;
40 extern char ispunct (unsigned char ) reentrant ;
41 extern char isspace (unsigned char ) reentrant ;
42 extern char isxdigit (unsigned char ) reentrant ;
46 extern char iscntrl (unsigned char ) ;
47 extern char isdigit (unsigned char ) ;
48 extern char isgraph (unsigned char ) ;
49 extern char islower (unsigned char ) ;
50 extern char isupper (unsigned char ) ;
51 extern char isprint (unsigned char ) ;
52 extern char ispunct (unsigned char ) ;
53 extern char isspace (unsigned char ) ;
54 extern char isxdigit (unsigned char ) ;