Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2195

Show
Ignore:
Timestamp:
05/11/07 13:57:11 (2 years ago)
Author:
kris
Message:

removed the isHalting() function, and placed the functionality inside Exception (as a static bool) since that's the relevant environment.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/compiler/dmd/dmain2.d

    r2032 r2195  
    7474} 
    7575 
    76 bool isHalting = false; 
    77  
    78 extern (C) bool cr_isHalting() 
    79 { 
    80     return isHalting; 
    81 } 
    82  
    8376extern (C) bool cr_trapExceptions = true; 
    8477 
     
    159152        _moduleUnitTests(); 
    160153        result = main(args); 
    161         isHalting = true; 
    162154        _moduleDtor(); 
    163155        gc_term(); 
  • trunk/lib/compiler/dmd/genobj.d

    r2148 r2195  
    893893    size_t      line; 
    894894    Exception   next; 
     895    static bool halting; 
    895896 
    896897    this(char[] msg, Exception next = null) 
     
    10641065{ 
    10651066    debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 
     1067    Exception.halting = true; 
    10661068    for (uint i = _moduleinfo_dtors_i; i-- != 0;) 
    10671069    { 
  • trunk/lib/compiler/gdc/dgccmain2.d

    r2032 r2195  
    7272} 
    7373 
    74 bool isHalting = false; 
    75  
    76 extern (C) bool cr_isHalting() 
    77 { 
    78     return isHalting; 
    79 } 
    80  
    8174extern (C) bool cr_trapExceptions = true; 
    8275 
     
    144137        _moduleUnitTests(); 
    145138        result = main_func(args); 
    146         isHalting = true; 
    147139        _moduleDtor(); 
    148140        gc_term(); 
  • trunk/lib/compiler/gdc/genobj.d

    r2148 r2195  
    907907    size_t      line; 
    908908    Exception   next; 
     909    static bool halting; 
    909910 
    910911    this(char[] msg, Exception next = null) 
     
    10851086{ 
    10861087    debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 
     1088    Exception.halting = true; 
    10871089    for (uint i = _moduleinfo_dtors_i; i-- != 0;) 
    10881090    { 
  • trunk/object.di

    r2148 r2195  
    168168    size_t      line; 
    169169    Exception   next; 
     170    static bool halting; 
    170171 
    171172    this(char[] msg, Exception next = null);