Initial revision
[fw/sdcc] / device / include / ctype.h
1 /*-------------------------------------------------------------------------
2   ctype.h - ANSI functions forward declarations
3  
4              Written By -  Sandeep Dutta . sandeep.dutta@usa.net (1998)
5
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
9    later version.
10    
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.
15    
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.
19    
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 -------------------------------------------------------------------------*/
24
25 #ifndef __SDC51_CTYPE_H
26 #define __SDC51_CTYPE_H 1
27
28 #define isalnum(x)   (isalpha(x) || isdigit(x))
29 #define isalpha(x)   (isupper(x) || islower(c))
30
31 #ifdef SDCC_STACK_AUTO
32 #warning Make sure you recompile _is*.c files as 'reentrant'
33
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 ;
43
44 #else
45
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 )  ;
55
56 #endif
57 #endif
58
59
60
61
62
63