os/kernelhwsrv/kernel/eka/compsupp/rvct2_0/rvct2_0.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/kernelhwsrv/kernel/eka/compsupp/rvct2_0/rvct2_0.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,264 @@
     1.4 +// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of the License "ARM EABI LICENCE.txt"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// in kernel/eka/compsupp.
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// e32\compsupp\rvct2_0\rvct2_0.h
    1.18 +// This is the preinclude file for the rvct 2.0 compiler
    1.19 +// It contains all the compiler specific definitions required by the SOS source
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +
    1.24 +#if defined(__PRODUCT_INCLUDE__)
    1.25 +#include __PRODUCT_INCLUDE__
    1.26 +#endif
    1.27 +
    1.28 +
    1.29 +// stuff from e32def.h
    1.30 +/**
    1.31 +@publishedAll
    1.32 +@released
    1.33 +*/
    1.34 +#define __NO_CLASS_CONSTS__
    1.35 +
    1.36 +/**
    1.37 +@publishedAll
    1.38 +@released
    1.39 +*/
    1.40 +#define __NORETURN__
    1.41 +
    1.42 +/**
    1.43 +@publishedAll
    1.44 +@released
    1.45 +*/
    1.46 +#define __NORETURN_TERMINATOR()
    1.47 +
    1.48 +/**
    1.49 +@publishedAll
    1.50 +@released
    1.51 +*/
    1.52 +#define IMPORT_C __declspec(dllimport) 
    1.53 +
    1.54 +/**
    1.55 +@publishedAll
    1.56 +@released
    1.57 +*/
    1.58 +#define EXPORT_C __declspec(dllexport)
    1.59 +
    1.60 +/**
    1.61 +@publishedAll
    1.62 +@released
    1.63 +*/
    1.64 +#define IMPORT_VT __declspec(dllimport) 
    1.65 +
    1.66 +/**
    1.67 +@publishedAll
    1.68 +@released
    1.69 +*/
    1.70 +#define __NO_THROW throw ()
    1.71 +
    1.72 +/**
    1.73 +@publishedAll
    1.74 +@released
    1.75 +*/
    1.76 +#define __THROW(t) throw (t)
    1.77 +
    1.78 +/**
    1.79 +@publishedAll
    1.80 +@released
    1.81 +*/
    1.82 +#define TEMPLATE_SPECIALIZATION template<>
    1.83 +
    1.84 +#ifndef __int64
    1.85 +/**
    1.86 +@internalComponent
    1.87 +*/
    1.88 +#define __int64  long long
    1.89 +#endif
    1.90 +
    1.91 +/**
    1.92 +@internalComponent
    1.93 +*/
    1.94 +#define __VALUE_IN_REGS__ __value_in_regs
    1.95 +
    1.96 +/**
    1.97 +@publishedAll
    1.98 +@released
    1.99 +*/
   1.100 +#define	I64LIT(x)	x##LL
   1.101 +
   1.102 +/**
   1.103 +@publishedAll
   1.104 +@released
   1.105 +*/
   1.106 +#define	UI64LIT(x)	x##ULL
   1.107 +
   1.108 +// __TText from e32cmn.h also e32des16.h
   1.109 +#ifdef __cplusplus
   1.110 +/**
   1.111 +@internalComponent
   1.112 +*/
   1.113 +typedef wchar_t __TText;	// Only ISO C++ has wchar_t as a primitive type
   1.114 +
   1.115 +/**
   1.116 +@internalComponent
   1.117 +*/
   1.118 +#define __wchar_t_defined
   1.119 +#else
   1.120 +/**
   1.121 +@internalComponent
   1.122 +*/
   1.123 +typedef unsigned short __TText;	
   1.124 +#endif
   1.125 +
   1.126 +/**
   1.127 +@internalComponent
   1.128 +*/
   1.129 +#define __TText_defined
   1.130 +
   1.131 +// __NAKED__ from cpudefs.h
   1.132 +/**
   1.133 +@publishedAll
   1.134 +@released
   1.135 +*/
   1.136 +#define __NAKED__ __asm
   1.137 +
   1.138 +/**
   1.139 +@internalComponent
   1.140 +*/
   1.141 +#define ____ONLY_USE_NAKED_IN_CIA____ __asm
   1.142 +
   1.143 +// Int64 and Uint64 from nkern\nklib.h
   1.144 +/**
   1.145 +@publishedAll
   1.146 +@released
   1.147 +*/
   1.148 +typedef long long Int64;
   1.149 +
   1.150 +/**
   1.151 +@publishedAll
   1.152 +@released
   1.153 +*/
   1.154 +typedef unsigned long long Uint64;
   1.155 +
   1.156 +// Here are RVCT 2.0's definitions for stdarg.h
   1.157 +// These should be used by e.g. stdlib
   1.158 +
   1.159 +// see if we're using the BETA B compiler
   1.160 +#if (__ARMCC_VERSION == 200022)
   1.161 +#define RVCTBETA
   1.162 +#endif
   1.163 +
   1.164 +#ifdef __cplusplus
   1.165 +    namespace std {
   1.166 +        extern "C" {
   1.167 +#endif  /* __cplusplus */
   1.168 +
   1.169 +#ifdef RVCTBETA
   1.170 +/**
   1.171 +@internalComponent
   1.172 +*/
   1.173 +	  typedef int *va_list[1];
   1.174 +#else
   1.175 +/**
   1.176 +@internalComponent
   1.177 +*/
   1.178 +	  typedef struct __va_list { void *__ap; } va_list;
   1.179 +#endif
   1.180 +
   1.181 +#ifdef __cplusplus
   1.182 +	}  /* extern "C" */
   1.183 +    }  /* namespace std */
   1.184 +
   1.185 +    using ::std::va_list;
   1.186 +#endif
   1.187 +
   1.188 +/**
   1.189 +@internalComponent
   1.190 +*/
   1.191 +#define va_start(ap, parmN) __va_start(ap, parmN)
   1.192 +
   1.193 +/**
   1.194 +@internalComponent
   1.195 +*/
   1.196 +#define va_arg(ap, type) __va_arg(ap, type)
   1.197 +
   1.198 +/**
   1.199 +@internalComponent
   1.200 +*/
   1.201 +#define va_end(ap) ((void)0)
   1.202 +
   1.203 +// These are for Symbian OS C++ code
   1.204 +/**
   1.205 +@publishedAll
   1.206 +@released
   1.207 +*/
   1.208 +#define VA_START(ap,pn) va_start(ap, pn)
   1.209 +
   1.210 +/**
   1.211 +@publishedAll
   1.212 +@released
   1.213 +*/
   1.214 +#define VA_ARG(ap,type) va_arg(ap,type)
   1.215 +
   1.216 +/**
   1.217 +@publishedAll
   1.218 +@released
   1.219 +*/
   1.220 +#define VA_END(ap)      va_end(ap)
   1.221 +
   1.222 +/**
   1.223 +@publishedAll
   1.224 +@released
   1.225 +*/
   1.226 +#define VA_LIST va_list
   1.227 +
   1.228 +/**
   1.229 +@internalComponent
   1.230 +*/
   1.231 +#define __VA_LIST_defined
   1.232 +// This should prevent /stdlib/linc/stdarg.h from doing damage.
   1.233 +#define _STDARG_H
   1.234 +
   1.235 +// now deal with stdarg_e.h
   1.236 +/**
   1.237 +@internalComponent
   1.238 +*/
   1.239 +typedef va_list __e32_va_list;
   1.240 +
   1.241 +/**
   1.242 +@internalComponent
   1.243 +*/
   1.244 +#define _STDARG_E_H
   1.245 +
   1.246 +// This is an EABI compliant compiler
   1.247 +#ifndef __EABI__
   1.248 +/**
   1.249 +@publishedAll
   1.250 +@released
   1.251 +*/
   1.252 +#define __EABI__
   1.253 +#endif
   1.254 +
   1.255 +// these are hopefully temporary
   1.256 +
   1.257 +// defining this means we don't get __NAKED__ ctors
   1.258 +#ifndef __EABI_CTORS__
   1.259 +/**
   1.260 +@publishedAll
   1.261 +@released
   1.262 +*/
   1.263 +#define __EABI_CTORS__
   1.264 +#endif
   1.265 +
   1.266 +//#define __EARLY_DEBUG__
   1.267 +