1 /* -------------------------------- Arctic Core ------------------------------
\r
2 * Arctic Core - the open source AUTOSAR platform http://arccore.com
\r
4 * Copyright (C) 2009 ArcCore AB <contact@arccore.com>
\r
6 * This source code is free software; you can redistribute it and/or modify it
\r
7 * under the terms of the GNU General Public License version 2 as published by the
\r
8 * Free Software Foundation; See <http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt>.
\r
10 * This program is distributed in the hope that it will be useful, but
\r
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
\r
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
\r
14 * -------------------------------- Arctic Core ------------------------------*/
\r
24 /* See CopmpilerAbstraction.pdf */
\r
28 /* REQ:COMPILER040,049,051 */
\r
30 #define STATIC static
\r
31 #define NULL_PTR ((void *)0)
\r
33 #if defined(__GNUC__)
\r
34 #define CC_EXTENSION __extension__
\r
35 #elif defined(__CWCC__)
\r
36 #define CC_EXTENSION
\r
39 /* REQ:COMPILER005 */
\r
40 /* TODO: skip the memclass for now */
\r
41 #define FUNC(rettype,memclass) rettype
\r
43 /* REQ:COMPILER006 */
\r
44 #define P2VAR(ptrtype, memclass, ptrclass) ptrtype
\r
46 /* TODO: memclass and more */
\r
47 #define P2CONST(ptrtype, memclass, ptrclass) ptrtype
\r
49 /* TODO: memclass and more */
\r
50 #define CONSTP2VAR(ptrtype,memclass,ptrclass) ptrclass ptrtype * const
\r
53 #define P2FUNC(rettype,ptrclass,fctname) retype (*ptrclass,fctname)
\r
56 #define CONST(consttype,memclass) const consttype
\r
59 #define VAR(vartype,memclass) vartype
\r
63 #endif /* COMPILER_H */
\r