- Timestamp:
- Aug 28, 2023, 7:03:20 PM (12 months ago)
- Branches:
- master
- Children:
- 7e1dbd7
- Parents:
- 4aaac8a
- Location:
- libcfa/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r4aaac8a r0926487 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 25 12:04:27202313 // Update Count : 152 612 // Last Modified On : Mon Aug 28 13:36:16 2023 13 // Update Count : 1527 14 14 // 15 15 … … 1015 1015 if ( ! f.flags.rwd ) f.s[check] = '\0'; // insert sentinel 1016 1016 len = fmt( is, fmtstr, f.s ); 1017 //fprintf( stderr, "KK %s %zd %d %c \n", fmtstr, len, check, f.s[check]);1017 //fprintf( stderr, "KK %s %zd %d %c %s\n", fmtstr, len, check, f.s[check], f.s ); 1018 1018 if ( ! f.flags.rwd && f.s[check] != '\0' ) // sentinel overwritten ? 1019 1019 throw (cstring_length){ &cstring_length_vt }; -
libcfa/src/iostream.hfa
r4aaac8a r0926487 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 25 1 1:55:46 202313 // Update Count : 53 312 // Last Modified On : Fri Aug 25 14:55:06 2023 13 // Update Count : 535 14 14 // 15 15 … … 432 432 return (_Istream_Cstr)@{ s, {0p}, rwd, {.flags.rwd : true} }; 433 433 } 434 _Istream_Cstr skip( const char scanset[] ) { return (_Istream_Cstr) { 0p, {scanset}, -1, {.all : 0} }; }435 _Istream_Cstr skip( unsigned int wd ) { return (_Istream_Cstr) { 0p, {0p}, wd, {.all : 0} }; }434 _Istream_Cstr skip( const char scanset[] ) { return (_Istream_Cstr)@{ 0p, {scanset}, -1, {.all : 0} }; } 435 _Istream_Cstr skip( unsigned int wd ) { return (_Istream_Cstr)@{ 0p, {0p}, wd, {.all : 0} }; } 436 436 _Istream_Cstr & getline( _Istream_Cstr & fmt, const char delimit = '\n' ) { 437 437 fmt.delimit[0] = delimit; fmt.delimit[1] = '\0'; fmt.flags.delimit = true; fmt.flags.inex = true; return fmt; }
Note: See TracChangeset
for help on using the changeset viewer.