summaryrefslogtreecommitdiffstats
path: root/Bachelor/Mikroprozessorsysteme2/ARM202U/INCLUDE/VARARGS.H
blob: 24bca372eaa01b54d3849a2f79de05a3ef07cfd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma force_top_level
#pragma include_only_once

/* varargs.h: PCC 'C' library header - support for variadic function
 * Copyright (C) Advanced Risc Machines Ltd., 1995
 */

/*
 * RCS $Revision: 1.1 $
 * Checkin $Date: 1995/03/07 15:10:45 $
 * Revising $Author: amerritt $
 */

/* Defines a set of macros for handling variable length argument list
 * in PCC style C. These macros rely on the compiler being able to
 * accept the ... denotation.
 */

typedef char *va_list;
#define va_alist int __va_alist, ...
#define va_dcl
#define va_start(list) list = (char *)&__va_alist
#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
#define va_end(list)

/* end of varargs.h */