Ignore:
Timestamp:
Jun 19, 2020, 5:46:38 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
6c4bd02
Parents:
1d2314f
Message:

adjust / comments, change exception name from IO_OPEN_FAILURE to Open_Failure, add temporary Open_Failure tag in lieu of polymorphic exceptions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.hfa

    r1d2314f r8d321f9  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jun 16 20:41:21 2020
    13 // Update Count     : 184
     12// Last Modified On : Fri Jun 19 16:29:17 2020
     13// Update Count     : 189
    1414//
    1515
     
    2020
    2121
    22 //*********************************** ofstream ***********************************
     22// *********************************** ofstream ***********************************
    2323
    2424
     
    7979
    8080
    81 //*********************************** ifstream ***********************************
     81// *********************************** ifstream ***********************************
    8282
    8383
     
    108108
    109109
    110 //*********************************** exceptions ***********************************
     110// *********************************** exceptions ***********************************
    111111
    112112
    113 DATA_EXCEPTION(IO_OPEN_FAILURE)(
     113DATA_EXCEPTION(Open_Failure)(
    114114        union {
    115115                ofstream * ostream;
    116116                ifstream * istream;
    117117        };
     118        // TEMPORARY: need polymorphic exceptions
     119        int tag;                                                                                        // 1 => ostream; 0 => istream
    118120);
    119121
    120 void ?{}( IO_OPEN_FAILURE & this, ofstream & ostream );
    121 void ?{}( IO_OPEN_FAILURE & this, ifstream & istream );
     122void ?{}( Open_Failure & this, ofstream & ostream );
     123void ?{}( Open_Failure & this, ifstream & istream );
    122124
    123125// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.