- Timestamp:
- Dec 24, 2017, 8:04:57 AM (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:
- e672372
- Parents:
- b9be000b
- Location:
- src/libcfa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/iostream
rb9be000b r1e6e08de 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 6 23:03:30201713 // Update Count : 14 412 // Last Modified On : Thu Dec 21 13:55:41 2017 13 // Update Count : 145 14 14 // 15 15 … … 55 55 56 56 // implement writable for intrinsic types 57 58 forall( dtype ostype | ostream( ostype ) ) ostype & ?|?( ostype &, _Bool ); 57 59 58 60 forall( dtype ostype | ostream( ostype ) ) ostype & ?|?( ostype &, char ); -
src/libcfa/iostream.c
rb9be000b r1e6e08de 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Dec 6 23:03:43201713 // Update Count : 42 612 // Last Modified On : Thu Dec 21 13:55:09 2017 13 // Update Count : 427 14 14 // 15 15 … … 23 23 #include <complex.h> // creal, cimag 24 24 } 25 26 forall( dtype ostype | ostream( ostype ) ) 27 ostype & ?|?( ostype & os, _Bool b ) { 28 if ( sepPrt( os ) ) fmt( os, "%s", sepGetCur( os ) ); 29 fmt( os, "%s", b ? "true" : "false" ); 30 return os; 31 } // ?|? 25 32 26 33 forall( dtype ostype | ostream( ostype ) )
Note: See TracChangeset
for help on using the changeset viewer.