/*-----------------------------------------------------------------------------+
|                                                                              |
|       Copyright (c), Raisonance S.A.S., 1987-2007                            |
|                                                                              |
+------------------------------------------------------------------------------+
|                                                                              |
|       File: STDARG.H                                                         |
|                                                                              |
+--------------+-------+----------------------------------------------+--------+
|     DATE     |VERSION| HISTORY/CHANGES                              |   BY   |
|  (DD.MM.YY)  | VX.Y  |                                              |        |
+--------------+-------+----------------------------------------------+--------+
|   ??.??.??   |  1.0  | Initial implementation                       |   XX   |
|   11.07.02   |  1.1  | Reimplementation			                      |   JR   |
|   05.07.05   |  1.2  | Added missing SAVE and RESTORE pragmas       |   SC   |
|   07.12.05   |  1.2  | ST6 and ST7 compilers                        |   SC   |
+--------------+-------+----------------------------------------------+--------+
|Purpose    :                                                                  |
|   Variable arguments.                       	                               |
+-----------------------------------------------------------------------------*/

#ifndef _STDARG_H_
#define _STDARG_H_

#pragma SAVE

#ifndef NULL
 #define NULL 0L
#endif

/* 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>
#else
	#define __Stack_Space__ 
#endif

#ifndef _VA_LIST_DEFINED
	typedef unsigned char __Stack_Space__ *va_list;
	#define _VA_LIST_DEFINED
#endif

#define va_end(ap)          ((void)0)

#pragma RESTORE

#endif
