| 2875 |
dpurdie |
1 |
#pragma force_top_level
|
|
|
2 |
#pragma include_only_once
|
|
|
3 |
|
|
|
4 |
/* varargs.h: PCC 'C' library header - support for variadic function
|
|
|
5 |
* Copyright (C) Advanced Risc Machines Ltd., 1995
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
/*
|
|
|
9 |
* RCS $Revision: 1.1 $
|
|
|
10 |
* Checkin $Date: 1995/03/07 10:25:33 $
|
|
|
11 |
* Revising $Author: enevill $
|
|
|
12 |
*/
|
|
|
13 |
|
|
|
14 |
/* Defines a set of macros for handling variable length argument list
|
|
|
15 |
* in PCC style C. These macros rely on the compiler being able to
|
|
|
16 |
* accept the ... denotation.
|
|
|
17 |
*/
|
|
|
18 |
|
|
|
19 |
typedef char *va_list;
|
|
|
20 |
#define va_alist int __va_alist, ...
|
|
|
21 |
#define va_dcl
|
|
|
22 |
#define va_start(list) list = (char *)&__va_alist
|
|
|
23 |
#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
|
|
|
24 |
#define va_end(list)
|
|
|
25 |
|
|
|
26 |
/* end of varargs.h */
|