equal
deleted
inserted
replaced
|
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "ARM EABI LICENCE.txt" |
|
5 // which accompanies this distribution, and is available |
|
6 // in kernel/eka/compsupp. |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #ifndef _CPPINIT_H_ |
|
22 #define _CPPINIT_H_ |
|
23 extern "C" { |
|
24 |
|
25 // Doing it like this means no space is taken by the symbols |
|
26 #define NUKE_SYMBOL(sig) __asm void sig {} |
|
27 typedef void (*PFV)(); |
|
28 typedef void (DTOR)(void *); |
|
29 #define RELOCATE(loc, type) (type)((int)loc + (int)*loc) |
|
30 |
|
31 typedef struct dtd |
|
32 { |
|
33 // dtd * prev; |
|
34 void * obj; |
|
35 DTOR * dtor; |
|
36 } dtd; |
|
37 |
|
38 //extern void run_static_ctors (void); |
|
39 extern void run_static_dtors (void); |
|
40 |
|
41 } |
|
42 |
|
43 #endif |