sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* This is all somewhat tortured because ANSI C says that stdio.h is not supposed
|
sl@0
|
16 |
* to define va_list: it needs to have access to that data type, but must not use that name.
|
sl@0
|
17 |
* Instead stdio.h should use an __ name, which is safe because it is reserved for
|
sl@0
|
18 |
* the implementation. Hence __e32_va_list.
|
sl@0
|
19 |
*
|
sl@0
|
20 |
*
|
sl@0
|
21 |
*/
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
|
sl@0
|
25 |
/**
|
sl@0
|
26 |
@file
|
sl@0
|
27 |
@publishedAll
|
sl@0
|
28 |
@released
|
sl@0
|
29 |
*/
|
sl@0
|
30 |
|
sl@0
|
31 |
#ifndef _STDARG_E_H
|
sl@0
|
32 |
#define _STDARG_E_H
|
sl@0
|
33 |
|
sl@0
|
34 |
/**
|
sl@0
|
35 |
EPOC32 definitions, extracted from E32DEFS.H
|
sl@0
|
36 |
*/
|
sl@0
|
37 |
typedef char* __e32_va_list;
|
sl@0
|
38 |
|
sl@0
|
39 |
#define va_start(ap,pn) (ap=(__e32_va_list)&pn+((sizeof(pn)+sizeof(int)-1)&~(sizeof(int)-1)),(void)0)
|
sl@0
|
40 |
#define va_arg(ap,type) (ap+=((sizeof(type)+sizeof(int)-1)&~(sizeof(int)-1)),(*(type *)(ap-((sizeof(type)+sizeof(int)-1)&~(sizeof(int)-1)))))
|
sl@0
|
41 |
#define va_end(ap) (ap=0,(void)0)
|
sl@0
|
42 |
|
sl@0
|
43 |
#endif
|