Changeset 259012e


Ignore:
Timestamp:
Jun 28, 2024, 12:10:13 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
3c55fcd
Parents:
01afd8d
Message:

put back quasi_void print

Location:
libcfa/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/enum.cfa

    r01afd8d r259012e  
    66forall( ostype & | basic_ostream(ostype), E, V | CfaEnum(E, V) ) {
    77        ostype & ?|?( ostype& os, E e ) {
    8 //              if ( scoped( e ) ) os | type_name( e ) | '.' | nonl;
    98                return os | label( e );
    109        }
     
    1211}
    1312
    14 // forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) )
    15 // ostype & ?|?( ostype & os, E e ) {
    16 // //    return os | type_name(e) | "." | label(e);
    17 //     return os | label( e );
    18 // }
     13forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) )
     14ostype & ?|?( ostype & os, E e ) {
     15    return os | label( e );
     16}
    1917
    2018forall( E, V | CfaEnum(E, V) ) {                                                // relational operators
  • libcfa/src/enum.hfa

    r01afd8d r259012e  
    2020    unsigned int posn( E e );
    2121    V value( E e );
    22     char * type_name( E e );
    23 //    bool scoped( E e );
    2422};
    2523
     
    3129}
    3230
    33 //forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) )
    34 //ostype & ?|?( ostype &, E );
     31forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) )
     32ostype & ?|?( ostype &, E );
    3533
    3634// Design two <- should go for this if we have change the cost model
Note: See TracChangeset for help on using the changeset viewer.