Changes in libcfa/src/enum.cfa [5eb3f65:259012e]
- File:
-
- 1 edited
-
libcfa/src/enum.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/enum.cfa
r5eb3f65 r259012e 4 4 #pragma GCC visibility push(default) 5 5 6 forall(ostype & | basic_ostream(ostype), E, V| CfaEnum(E, V)) 7 ostype & ?|?(ostype& os, E e) { 8 return os | type_name(e) | "." | label(e); 6 forall( ostype & | basic_ostream(ostype), E, V | CfaEnum(E, V) ) { 7 ostype & ?|?( ostype& os, E e ) { 8 return os | label( e ); 9 } 10 OSTYPE_VOID_IMPL( E ) 9 11 } 10 12 11 forall( ostype & | basic_ostream(ostype), E| CfaEnum(E, quasi_void))12 ostype & ?|?( ostype& os, E e) {13 return os | type_name(e) | "." | label(e);13 forall( ostype & | basic_ostream(ostype), E | CfaEnum(E, quasi_void) ) 14 ostype & ?|?( ostype & os, E e ) { 15 return os | label( e ); 14 16 } 15 17 16 forall( ostype & | basic_ostream(ostype), E, V| CfaEnum(E, V)) {18 forall( E, V | CfaEnum(E, V) ) { // relational operators 17 19 int ?==?(E l, E r) { return posn(l) == posn(r); } 20 int ?!=?(E l, E r) { return posn(l) != posn(r); } 21 int ?<?(E l, E r) { return posn(l) < posn(r); } 18 22 int ?<=?(E l, E r) { return posn(l) <= posn(r); } 23 int ?>?(E l, E r) { return posn(l) > posn(r); } 19 24 int ?>=?(E l, E r) { return posn(l) >= posn(r); } 20 int ?<?(E l, E r) { return posn(l) < posn(r); }21 int ?>?(E l, E r) { return posn(l) > posn(r); }22 25 }
Note:
See TracChangeset
for help on using the changeset viewer.