/*-----------------------------------------------------------------------------+
|                                                                              |
|       Copyright (c), Raisonance S.A.S., 1987-2007                            |
|                                                                              |
+------------------------------------------------------------------------------+
|                                                                              |
|       File: CTYPE.H                                                          |
|                                                                              |
+--------------+-------+----------------------------------------------+--------+
|     DATE     |VERSION| HISTORY/CHANGES                              |   BY   |
|  (MM/DD/YY)  | VX.Y  |                                              |        |
+--------------+-------+----------------------------------------------+--------+
|   ??/??/??   |  1.0  | Initial implementation                       |   XX   |
|   11/07/02   |  1.1  | Reimplementation                             |   JR   |
+--------------+-------+----------------------------------------------+--------+
|Purpose    :                                                                  |
|   Several functions useful for testing and mapping characters                |
+-----------------------------------------------------------------------------*/

#ifndef _CTYPE_H_
#define _CTYPE_H_

#define _IS_HEX 1               /* Mask for isxdigit */
#define _IS_DIG 2               /* Mask for isdigit  */
#define _IS_UPP 4               /* Mask for isupper  */
#define _IS_LOW 8               /* Mask for islower  */

#define _IS_SPA 1               /* Mask for isspace  */
#define _IS_CNT 2               /* Mask for iscntrl  */
#define _IS_PUN 4               /* Mask for ispunct  */

#pragma SAVE

/* include particular files at this point */
#if defined(__RC51__)
   #include <51\MAIN_C51.h>
#elif defined(__RCMX__)
   #include <MX\MAIN_MX.h>
#elif defined(__RCXA__)
   #include <XA\MAIN_XA.h>
#elif defined(__RCST5__)
   #include <ST5\MAIN_ST5.h>
#elif defined(__RCST6__)
   #include <ST6\MAIN_ST6.h>
#elif defined(__RCST7__)
   #include <ST7\MAIN_ST7.h>
#elif defined(__RCMP__)
   #include <MP\MAIN_MP.h>
#endif

#pragma RESTORE

#endif
