diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/libc/stdarg_e.h --- a/epoc32/include/libc/stdarg_e.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/libc/stdarg_e.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,47 @@ -stdarg_e.h +/* +* Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members +* which accompanies this distribution, and is available +* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* This is all somewhat tortured because ANSI C says that stdio.h is not supposed +* to define va_list: it needs to have access to that data type, but must not use that name. +* Instead stdio.h should use an __ name, which is safe because it is reserved for +* the implementation. Hence __e32_va_list. +* +* +*/ + + + + + + + +/** + @file + @publishedAll + @released +*/ + +#ifndef _STDARG_E_H +#define _STDARG_E_H + +/** +EPOC32 definitions, extracted from E32DEFS.H +*/ +typedef char* __e32_va_list; + +#define va_start(ap,pn) (ap=(__e32_va_list)&pn+((sizeof(pn)+sizeof(int)-1)&~(sizeof(int)-1)),(void)0) +#define va_arg(ap,type) (ap+=((sizeof(type)+sizeof(int)-1)&~(sizeof(int)-1)),(*(type *)(ap-((sizeof(type)+sizeof(int)-1)&~(sizeof(int)-1))))) +#define va_end(ap) (ap=0,(void)0) + +#endif