2017-10-21 23:40:19 +00:00
|
|
|
/****************************************************************
|
|
|
|
*
|
|
|
|
* stdarg.h - variable length parameter list handling
|
|
|
|
*
|
|
|
|
* February 1989
|
|
|
|
* Mike Westerfield
|
|
|
|
*
|
|
|
|
* Copyright 1989
|
|
|
|
* Byte Works, Inc.
|
|
|
|
*
|
|
|
|
*****************************************************************
|
|
|
|
*
|
|
|
|
* Modified July 1994
|
|
|
|
*
|
|
|
|
* Thanks to Doug Gwyn for the new va_start & va_arg declarations.
|
|
|
|
*
|
|
|
|
****************************************************************/
|
|
|
|
|
|
|
|
#ifndef __stdarg__
|
|
|
|
#define __stdarg__
|
|
|
|
|
|
|
|
#ifndef __va_list__
|
|
|
|
#define __va_list__
|
|
|
|
typedef char *__va_list[2];
|
|
|
|
#endif
|
|
|
|
|
2018-08-28 23:58:27 +00:00
|
|
|
typedef __va_list va_list;
|
2017-10-21 23:40:19 +00:00
|
|
|
#define va_end(a) __va_end(a)
|
2018-08-28 23:58:27 +00:00
|
|
|
#define va_start(ap,LastFixedParm) ((void) ((ap)[0] = (ap)[1] = (char *) (&LastFixedParm + 1)))
|
2017-10-21 23:40:19 +00:00
|
|
|
#define va_arg(ap,type) ((type *)((ap)[0] += sizeof(type)))[-1]
|
|
|
|
|
|
|
|
void __va_end(va_list);
|
|
|
|
|
|
|
|
#endif
|