Changes in / [d2260ad:6acd020]


Ignore:
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/fstream.hfa

    rd2260ad r6acd020  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 20 21:18:03 2021
    13 // Update Count     : 232
     12// Last Modified On : Wed Apr 28 20:37:57 2021
     13// Update Count     : 230
    1414//
    1515
     
    148148
    149149
    150 exception Open_Failure {
     150EHM_EXCEPTION(Open_Failure)(
    151151        union {
    152152                ofstream * ostream;
     
    155155        // TEMPORARY: need polymorphic exceptions
    156156        int tag;                                                                                        // 1 => ostream; 0 => istream
    157 };
     157);
    158158
    159159void ?{}( Open_Failure & this, ofstream & );
  • tests/counter.cfa

    rd2260ad r6acd020  
    1010// Created On       : Thu Feb 22 15:27:00 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Tue Jul 20 21:25:30 2021
    13 // Update Count     : 4
     12// Last Modified On : Tue Nov  6 17:50:23 2018
     13// Update Count     : 2
    1414//
    15 
    16 #include <fstream.hfa>
    1715
    1816// Tests unified increment/decrement builtin functions.
     
    2119struct counter { int x; };
    2220
    23 counter ?+=?( counter & c, one_t ) { ++c.x; return c; }
    24 counter ?-=?( counter & c, one_t ) { --c.x; return c; }
     21counter& ?+=?( counter& c, one_t ) { ++c.x; return c; }
     22
     23counter& ?-=?( counter& c, one_t ) { --c.x; return c; }
    2524
    2625int main() {
     
    2928    ++c;
    3029    c++;
    31     sout | "inc" | c.x;
     30    printf("%d\n", c.x);
    3231    c -= 1;
    3332    --c;
    3433    c--;
    35     sout | "dec" | c.x;
     34    printf("%d\n", c.x);
    3635}
    3736
Note: See TracChangeset for help on using the changeset viewer.