Changeset 972540e for libcfa/src/iostream.cfa
- Timestamp:
- Mar 5, 2019, 3:08:55 PM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 61dbb54, b38433b
- Parents:
- c884f2d (diff), 97a1544 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
rc884f2d r972540e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 24 18:33:40 201813 // Update Count : 5 8912 // Last Modified On : Mon Mar 4 20:57:24 2019 13 // Update Count : 593 14 14 // 15 15 … … 27 27 28 28 forall( dtype ostype | ostream( ostype ) ) { 29 ostype & ?|?( ostype & os, zero_t ) { 30 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) ); 31 fmt( os, "%d", 0n ); 32 return os; 33 } // ?|? 34 void ?|?( ostype & os, zero_t z ) { 35 (ostype &)(os | z); nl( os ); 36 } // ?|? 37 38 ostype & ?|?( ostype & os, one_t ) { 39 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) ); 40 fmt( os, "%d", 1n ); 41 return os; 42 } // ?|? 43 void ?|?( ostype & os, one_t o ) { 44 (ostype &)(os | o); nl( os ); 45 } // ?|? 46 29 47 ostype & ?|?( ostype & os, bool b ) { 30 48 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) );
Note: See TracChangeset
for help on using the changeset viewer.