|
Last change
on this file since 21932 was 21916, checked in by dmik, 14 years ago |
|
Merge branch gcc-kmk to trunk.
|
-
Property svn:eol-style
set to
native
|
|
File size:
582 bytes
|
| Line | |
|---|
| 1 | /** @file
|
|---|
| 2 | *
|
|---|
| 3 | * INITDLL library implementation.
|
|---|
| 4 | *
|
|---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #include <os2wrap.h>
|
|---|
| 9 |
|
|---|
| 10 | #define MAYBE_WEAK __attribute__((weak))
|
|---|
| 11 | #include <initdll.h>
|
|---|
| 12 |
|
|---|
| 13 | ULONG SYSTEM DLL_Init(ULONG hModule)
|
|---|
| 14 | {
|
|---|
| 15 | return DLL_InitDefault(hModule);
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | void SYSTEM DLL_Term(ULONG hModule)
|
|---|
| 19 | {
|
|---|
| 20 | DLL_TermDefault(hModule);
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | ULONG SYSTEM DLL_InitDefault(ULONG hModule)
|
|---|
| 24 | {
|
|---|
| 25 | if (_CRT_init() != 0) // failure?
|
|---|
| 26 | return -1;
|
|---|
| 27 | __ctordtorInit();
|
|---|
| 28 |
|
|---|
| 29 | return 0;
|
|---|
| 30 | }
|
|---|
| 31 |
|
|---|
| 32 | void SYSTEM DLL_TermDefault(ULONG hModule)
|
|---|
| 33 | {
|
|---|
| 34 | __ctordtorTerm();
|
|---|
| 35 | _CRT_term();
|
|---|
| 36 | }
|
|---|
| 37 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.