diff options
Diffstat (limited to 'extra')
-rw-r--r-- | extra/symbian.cpp | 14 | ||||
-rw-r--r-- | extra/symbian/global_end.cpp | 8 | ||||
-rw-r--r-- | extra/symbian/global_start.cpp | 8 | ||||
-rw-r--r-- | extra/symbian/init_global_static_roots.cpp | 31 |
4 files changed, 20 insertions, 41 deletions
diff --git a/extra/symbian.cpp b/extra/symbian.cpp index 94dd4de4..1716c887 100644 --- a/extra/symbian.cpp +++ b/extra/symbian.cpp @@ -6,12 +6,10 @@ #include <stdlib.h> #include <string.h> -#ifdef __cplusplus extern "C" { -#endif int GC_get_main_symbian_stack_base() - { +{ TThreadStackInfo aInfo; TInt err = RThread().StackInfo(aInfo); if ( !err ) @@ -22,10 +20,10 @@ int GC_get_main_symbian_stack_base() { return 0; } - } +} char* GC_get_private_path_and_zero_file() - { +{ // always on c: drive RFs fs; fs.Connect(); @@ -48,8 +46,6 @@ char* GC_get_private_path_and_zero_file() memcpy( copyChar, path8.PtrZ(), size ); return copyChar; // ownership passed - } +} -#ifdef __cplusplus - } -#endif +} /* extern "C" */ diff --git a/extra/symbian/global_end.cpp b/extra/symbian/global_end.cpp index 3e2e6d59..14c7710d 100644 --- a/extra/symbian/global_end.cpp +++ b/extra/symbian/global_end.cpp @@ -3,14 +3,8 @@ // INCLUDE FILES #include "private/gcconfig.h" -#ifdef __cplusplus extern "C" { -#endif int winscw_data_end; -#ifdef __cplusplus - } -#endif - -// End Of File +} /* extern "C" */ diff --git a/extra/symbian/global_start.cpp b/extra/symbian/global_start.cpp index c6d67c3c..1b030bc4 100644 --- a/extra/symbian/global_start.cpp +++ b/extra/symbian/global_start.cpp @@ -3,14 +3,8 @@ // INCLUDE FILES #include "private/gcconfig.h" -#ifdef __cplusplus extern "C" { -#endif int winscw_data_start; -#ifdef __cplusplus - } -#endif - -// End Of File +} /* extern "C" */ diff --git a/extra/symbian/init_global_static_roots.cpp b/extra/symbian/init_global_static_roots.cpp index 092d3415..683d4ada 100644 --- a/extra/symbian/init_global_static_roots.cpp +++ b/extra/symbian/init_global_static_roots.cpp @@ -6,28 +6,23 @@ #include "private/gcconfig.h" #include "gc.h" -#ifdef __cplusplus extern "C" { -#endif void GC_init_global_static_roots() { - ptr_t dataStart = NULL; - ptr_t dataEnd = NULL; -# if defined (__WINS__) - extern int winscw_data_start, winscw_data_end; - dataStart = ((ptr_t)&winscw_data_start); - dataEnd = ((ptr_t)&winscw_data_end); -# else - extern int Image$$RW$$Limit[], Image$$RW$$Base[]; - dataStart = ((ptr_t)Image$$RW$$Base); - dataEnd = ((ptr_t)Image$$RW$$Limit); -# endif - - GC_add_roots(dataStart, dataEnd); + ptr_t dataStart = NULL; + ptr_t dataEnd = NULL; +# if defined (__WINS__) + extern int winscw_data_start, winscw_data_end; + dataStart = ((ptr_t)&winscw_data_start); + dataEnd = ((ptr_t)&winscw_data_end); +# else + extern int Image$$RW$$Limit[], Image$$RW$$Base[]; + dataStart = ((ptr_t)Image$$RW$$Base); + dataEnd = ((ptr_t)Image$$RW$$Limit); +# endif + GC_add_roots(dataStart, dataEnd); } -#ifdef __cplusplus - } -#endif +} /* extern "C" */ |