Changeset 09687aa for src/libcfa/rational.c
- Timestamp:
- Dec 7, 2017, 1:10:51 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 5e1adb5
- Parents:
- 92494fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/rational.c
r92494fd r09687aa 10 10 // Created On : Wed Apr 6 17:54:28 2016 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Aug 23 22:38:48 201713 // Update Count : 15 412 // Last Modified On : Wed Dec 6 23:13:58 2017 13 // Update Count : 156 14 14 // 15 15 … … 228 228 229 229 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 230 forall( dtype istype | istream( istype ) | { istype * ?|?( istype *, RationalImpl & ); } )231 istype * ?|?( istype *is, Rational(RationalImpl) & r ) {230 forall( dtype istype | istream( istype ) | { istype & ?|?( istype &, RationalImpl & ); } ) 231 istype & ?|?( istype & is, Rational(RationalImpl) & r ) { 232 232 RationalImpl t; 233 233 is | r.numerator | r.denominator; … … 239 239 240 240 forall( otype RationalImpl | arithmetic( RationalImpl ) ) 241 forall( dtype ostype | ostream( ostype ) | { ostype * ?|?( ostype *, RationalImpl ); } )242 ostype * ?|?( ostype *os, Rational(RationalImpl ) r ) {241 forall( dtype ostype | ostream( ostype ) | { ostype & ?|?( ostype &, RationalImpl ); } ) 242 ostype & ?|?( ostype & os, Rational(RationalImpl ) r ) { 243 243 return os | r.numerator | '/' | r.denominator; 244 244 } // ?|?
Note: See TracChangeset
for help on using the changeset viewer.