Changeset 259012e
- Timestamp:
- Jun 28, 2024, 12:10:13 PM (4 months ago)
- Branches:
- master
- Children:
- 3c55fcd
- Parents:
- 01afd8d
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r01afd8d r259012e 6 6 forall( ostype & | basic_ostream(ostype), E, V | CfaEnum(E, V) ) { 7 7 ostype & ?|?( ostype& os, E e ) { 8 // if ( scoped( e ) ) os | type_name( e ) | '.' | nonl;9 8 return os | label( e ); 10 9 } … … 12 11 } 13 12 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 // } 13 forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) ) 14 ostype & ?|?( ostype & os, E e ) { 15 return os | label( e ); 16 } 19 17 20 18 forall( E, V | CfaEnum(E, V) ) { // relational operators -
libcfa/src/enum.hfa
r01afd8d r259012e 20 20 unsigned int posn( E e ); 21 21 V value( E e ); 22 char * type_name( E e );23 // bool scoped( E e );24 22 }; 25 23 … … 31 29 } 32 30 33 //forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) )34 //ostype & ?|?( ostype &, E );31 forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) ) 32 ostype & ?|?( ostype &, E ); 35 33 36 34 // Design two <- should go for this if we have change the cost model
Note: See TracChangeset
for help on using the changeset viewer.