Ignore:
Timestamp:
Jun 18, 2020, 7:03:55 PM (18 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast, new-ast-unique-expr
Children:
6026628
Parents:
030653a
Message:

raise exception IO_OPEN_FAILURE for open failure with input/output fstreams, ignore attempt to close unopen file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.hfa

    r030653a r91e52be  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Feb 17 08:29:23 2020
    13 // Update Count     : 175
     12// Last Modified On : Tue Jun 16 20:41:21 2020
     13// Update Count     : 184
    1414//
    1515
     
    1717
    1818#include "iostream.hfa"
     19#include <exception.hfa>
    1920
    2021
     
    106107extern ifstream & sin, & stdin;                                                 // aliases
    107108
     109
     110//*********************************** exceptions ***********************************
     111
     112
     113DATA_EXCEPTION(IO_OPEN_FAILURE)(
     114        union {
     115                ofstream * ostream;
     116                ifstream * istream;
     117        };
     118);
     119
     120void ?{}( IO_OPEN_FAILURE & this, ofstream & ostream );
     121void ?{}( IO_OPEN_FAILURE & this, ifstream & istream );
     122
    108123// Local Variables: //
    109124// mode: c //
Note: See TracChangeset for help on using the changeset viewer.