/*-----------------------------------------------------------------------------+
|                                                                              |
|       Copyright (c), Raisonance S.A.S., 1987-2007                            |
|                                                                              |
+------------------------------------------------------------------------------+
|                                                                              |
|       File: ERRNO.H                                                          |
|                                                                              |
+--------------+-------+----------------------------------------------+--------+
|     DATE     |VERSION| HISTORY/CHANGES                              |   BY   |
|  (MM/DD/YY)  | VX.Y  |                                              |        |
+--------------+-------+----------------------------------------------+--------+
|   ??/??/??   |  1.0  | Initial implementation                       |   XX   |
|   11/07/02   |  1.1  | Reimplementation                             |   JR   |
|   12/07/05   |  1.2  | ST7 compiler                                 |   SC   |
+--------------+-------+----------------------------------------------+--------+
|Purpose    :                                                                  |
|   Prototypes and macros for errors of some library routines.                 |
+-----------------------------------------------------------------------------*/
#ifndef _ERRNO_H
#define _ERRNO_H

#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

/* errors returned by printf/scanf */
#define  ERR_FORMAT  1  /* illegal format string for printf/scanf   */
#define  ERR_NOFLOAT 2  /* No floating point in this version of     */
            /* printf/scanf                             */
#define  ERR_NOLONG  3  /* No longs in this version of printf/scanf */
#define  ERR_NOPOINT 4  /* No pointers allowed in printf/scanf      */

/* Floating point errors */
#define  ERANGE      5  /* Value out of range                       */
#define  EDOM        6  /* Floating point domain error              */

/* errors returned by file positioning routiness */
#define ERR_POS      7  /* Positioning failure            */
#define _NERR        8  /* last error + 1                           */

#pragma RESTORE

#endif  /* _ERRNO_H */
