Changeset 547 for trunk/src


Ignore:
Timestamp:
Aug 8, 2003, 1:21:41 AM (22 years ago)
Author:
bird
Message:

Commented out the ehInitDLL() and ehTermDLL() calls.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r546 r547  
    1 /*  */
     1/* $Id$ */
     2/** @file
     3 * Default DLL init and termination code.
     4 */
     5
    26#include <emx/startup.h>
    37extern int _CRT_init (void);
    48extern void __ctordtorInit (void);
    59extern void __ctordtorTerm (void);
    6 extern void __ehInitDLL (void);
    7 #pragma weak __ehInitDLL
    8 extern void __ehTermDLL (void);
    9 #pragma weak __ehTermDLL
    1010
    1111/**
    1212 * This is the typical DLL startup code. __ehInitDLL and __ehTermDLL is called
    13  * are for exception handler stuff in gcc, the two functions will be linked if 
    14  * there is exception handler info in the module. (Btw. if these calls wasn't 
     13 * are for exception handler stuff in gcc, the two functions will be linked if
     14 * there is exception handler info in the module. (Btw. if these calls wasn't
    1515 * made we would fail to catch exceptions in C++ code.)
    1616 * @returns 1 on success.
     
    2828      if (_CRT_init () != 0)
    2929        break;
     30#if 0 /** @todo Weaks aren't working too well with ld at the moment.
     31       * Andy added the calls to the static constructor and destructor lists
     32       * which means we don't guarantee that throw/catch works during init
     33       * and destruction of static objects. Don't belive it'll cause any
     34       * trouble. Before too long we should put back this code.
     35       */
    3036      if (__ehInitDLL)
    3137        __ehInitDLL ();
     38#endif
    3239      __ctordtorInit ();
    3340      return 1;
    3441    case 1:
    3542      __ctordtorTerm ();
     43#if 0 /* weaks aren't working at the moment */
    3644      if (__ehTermDLL)
    3745        __ehTermDLL ();
     46#endif
    3847      return 1;
    3948  }
Note: See TracChangeset for help on using the changeset viewer.