Changes in libcfa/src/iostream.cfa [86a8be5:b117e0c]
- File:
-
- 1 edited
-
libcfa/src/iostream.cfa (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r86a8be5 rb117e0c 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 10 18:06:16201913 // Update Count : 80 912 // Last Modified On : Sun Jun 9 20:54:05 2019 13 // Update Count : 804 14 14 // 15 15 … … 797 797 } // ?|? 798 798 799 forall( dtype istype | istream( istype ) )800 istype & ?|?( istype & is, _Istream_Char f ) {801 fmt( is, "%*c" ); // argument variable unused802 return is;803 } // ?|?804 805 799 #define InputFMTImpl( T, CODE ) \ 806 800 forall( dtype istype | istream( istype ) ) \ … … 808 802 enum { size = 16 }; \ 809 803 char fmtstr[size]; \ 810 if ( f.wd == -1 ) {\804 if ( f.wd == -1 || strcmp( CODE, "c" ) == 0 ) { /* ignore width with "c" */ \ 811 805 snprintf( fmtstr, size, "%%%s%s", f.ignore ? "*" : "", CODE ); \ 812 806 } else { \ … … 818 812 } // ?|? 819 813 814 InputFMTImpl( char, "c" ) 820 815 InputFMTImpl( signed char, "hhi" ) 821 816 InputFMTImpl( unsigned char, "hhi" )
Note:
See TracChangeset
for help on using the changeset viewer.