Changeset dc5072f for libcfa/src
- Timestamp:
- Jun 13, 2019, 8:39:28 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6a1dfda
- Parents:
- d60780c
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
rd60780c rdc5072f 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 12 15:00:31201913 // Update Count : 81 912 // Last Modified On : Thu Jun 13 17:21:10 2019 13 // Update Count : 812 14 14 // 15 15 … … 740 740 } // ?|? 741 741 742 istype & ?|?( istype & is, const char * fmt ) {743 fmt( is, fmt, "" );744 return is;745 } // ?|?742 // istype & ?|?( istype & is, const char * fmt ) { 743 // fmt( is, fmt, "" ); 744 // return is; 745 // } // ?|? 746 746 747 747 istype & ?|?( istype & is, char * s ) { … … 777 777 // skip xxx 778 778 if ( ! f.s ) { 779 // printf( "skip %s %d\n", f.scanset, f.wd );780 if ( f.wd != -1 ) for ( f.wd ) fmt( is, "%*c" ); // no input arguments781 else f mt( is, f.scanset, "" );779 // printf( "skip %s %d\n", f.scanset, f.wd ); 780 if ( f.wd == -1 ) fmt( is, f.scanset, "" ); // no input arguments 781 else for ( f.wd ) fmt( is, "%*c" ); 782 782 return is; 783 783 } // if -
libcfa/src/iostream.hfa
rd60780c rdc5072f 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed Jun 12 13:35:42201913 // Update Count : 3 3112 // Last Modified On : Thu Jun 13 17:20:21 2019 13 // Update Count : 325 14 14 // 15 15 … … 316 316 istype & ?|?( istype &, long double _Complex & ); 317 317 318 istype & ?|?( istype &, const char * );318 // istype & ?|?( istype &, const char * ); 319 319 istype & ?|?( istype &, char * ); 320 320 … … 350 350 _Istream_Cstr ignore( const char * s ) { return (_Istream_Cstr)@{ s, 0p, -1, { .flags.ignore : true } }; } 351 351 _Istream_Cstr & ignore( _Istream_Cstr & fmt ) { fmt.flags.ignore = true; return fmt; } 352 _Istream_Cstr wd ( unsigned int w, char * s ) { return (_Istream_Cstr)@{ s, 0p, w, { .all : 0 } }; }353 _Istream_Cstr & wd ( unsigned int w, _Istream_Cstr & fmt ) { fmt.wd = w; return fmt; }352 _Istream_Cstr wdi( unsigned int w, char * s ) { return (_Istream_Cstr)@{ s, 0p, w, { .all : 0 } }; } 353 _Istream_Cstr & wdi( unsigned int w, _Istream_Cstr & fmt ) { fmt.wd = w; return fmt; } 354 354 } // distribution 355 355 forall( dtype istype | istream( istype ) ) istype & ?|?( istype & is, _Istream_Cstr f ); … … 377 377 _Istream_Manip(T) & ignore( _Istream_Manip(T) & fmt ) { fmt.ignore = true; return fmt; } \ 378 378 _Istream_Manip(T) wdi( unsigned int w, T & val ) { return (_Istream_Manip(T))@{ val, w, false }; } \ 379 _Istream_Manip(T) & wd ( unsigned int w, _Istream_Manip(T) & fmt ) { fmt.wd = w; return fmt; } \379 _Istream_Manip(T) & wdi( unsigned int w, _Istream_Manip(T) & fmt ) { fmt.wd = w; return fmt; } \ 380 380 } /* distribution */ \ 381 381 forall( dtype istype | istream( istype ) ) { \
Note:
See TracChangeset
for help on using the changeset viewer.