Changeset 570


Ignore:
Timestamp:
Aug 10, 2003, 11:40:53 PM (22 years ago)
Author:
bird
Message:

#577: Removed eh stuff + little cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/startup/dllinit.c

    • Property cvs2svn:cvs-rev changed from 1.8 to 1.9
    r569 r570  
    55
    66#include <emx/startup.h>
    7 extern int _CRT_init (void);
    8 extern void __ctordtorInit (void);
    9 extern void __ctordtorTerm (void);
    10 extern void __ehInit (void);
    11 #pragma weak __ehInit
    12 extern void __ehTerm (void);
    13 #pragma weak __ehTerm
    14 
    15 #ifndef _System
    16 # define _System
    17 #endif
    187
    198/**
    20  * This is the typical DLL startup code. __ehInit and __ehTerm is called
    21  * are for exception handler stuff in gcc, the two functions will be linked if
    22  * there is exception handler info in the module. (Btw. if these calls wasn't
    23  * made we would fail to catch exceptions in C++ code.)
     9 * This is the typical DLL startup code.
     10 *
    2411 * @returns 1 on success.
    2512 * @returns 0 on failure.
     
    2815 *                  1 term.
    2916 * @remark  This function is called from dll0.asm.
     17 * @todo    _CRT_term() needs a checkup, it used to be called from here too..
    3018 */
    3119unsigned _System _DLL_InitTerm (unsigned hmod, unsigned flag)
     
    3624      if (_CRT_init () != 0)
    3725        break;
    38 #if 0 /** @todo Weaks aren't working too well with ld at the moment.
    39        * Andy added the calls to the static constructor and destructor lists
    40        * which means we don't guarantee that throw/catch works during init
    41        * and destruction of static objects. Don't belive it'll cause any
    42        * trouble. Before too long we should put back this code.
    43        */
    44       if (__ehInit)
    45         __ehInit ();
    46 #endif
    4726      __ctordtorInit ();
    4827      return 1;
    4928    case 1:
    5029      __ctordtorTerm ();
    51 #if 0 /* weaks aren't working at the moment */
    52       if (__ehTerm)
    53         __ehTerm ();
    54 #endif
    5530      return 1;
    5631  }
    5732  return 0;
    5833}
     34
Note: See TracChangeset for help on using the changeset viewer.