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

Changeset 2241

Show
Ignore:
Timestamp:
05/22/07 22:13:58 (2 years ago)
Author:
sean
Message:

Reverted the change of cr_isHalting to Exception.halting. At some point we may get an Application singleton which contains an isHalting method, so I'd prefer if this not be bound to any particular object for now.

Files:

Legend:

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

    r2195 r2241  
    7474} 
    7575 
     76bool _d_isHalting = false; 
     77 
     78extern (C) bool cr_isHalting() 
     79{ 
     80    return _d_isHalting; 
     81} 
     82 
    7683extern (C) bool cr_trapExceptions = true; 
    7784 
     
    152159        _moduleUnitTests(); 
    153160        result = main(args); 
     161        _d_isHalting = true; 
    154162        _moduleDtor(); 
    155163        gc_term(); 
  • trunk/lib/compiler/dmd/genobj.d

    r2195 r2241  
    893893    size_t      line; 
    894894    Exception   next; 
    895     static bool halting; 
    896895 
    897896    this(char[] msg, Exception next = null) 
     
    10651064{ 
    10661065    debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 
    1067     Exception.halting = true; 
     1066 
    10681067    for (uint i = _moduleinfo_dtors_i; i-- != 0;) 
    10691068    { 
  • trunk/lib/compiler/gdc/dgccmain2.d

    r2195 r2241  
    7272} 
    7373 
     74bool _d_isHalting = false; 
     75 
     76extern (C) bool cr_isHalting() 
     77{ 
     78    return _d_isHalting; 
     79} 
     80 
    7481extern (C) bool cr_trapExceptions = true; 
    7582 
     
    137144        _moduleUnitTests(); 
    138145        result = main_func(args); 
     146        _d_isHalting = true; 
    139147        _moduleDtor(); 
    140148        gc_term(); 
  • trunk/lib/compiler/gdc/genobj.d

    r2195 r2241  
    907907    size_t      line; 
    908908    Exception   next; 
    909     static bool halting; 
    910909 
    911910    this(char[] msg, Exception next = null) 
     
    10861085{ 
    10871086    debug(PRINTF) printf("_moduleDtor(): %d modules\n", _moduleinfo_dtors_i); 
    1088     Exception.halting = true; 
     1087 
    10891088    for (uint i = _moduleinfo_dtors_i; i-- != 0;) 
    10901089    { 
  • trunk/object.di

    r2195 r2241  
    168168    size_t      line; 
    169169    Exception   next; 
    170     static bool halting; 
    171170 
    172171    this(char[] msg, Exception next = null);