Changeset 7b93027e for libcfa/src
- Timestamp:
- Feb 11, 2024, 3:04:17 PM (13 months ago)
- Branches:
- master
- Children:
- 75e2286
- Parents:
- 0b6089f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/iostream.cfa
r0b6089f r7b93027e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : S at Feb 10 09:28:32202413 // Update Count : 19 4612 // Last Modified On : Sun Feb 11 09:16:19 2024 13 // Update Count : 1965 14 14 // 15 15 … … 1058 1058 if ( flags.ignore ) args = fmt( is, fmtstr, &len ); // no string argument for '*' 1059 1059 else args = fmt( is, fmtstr, s, &len ); 1060 // fprintf( stderr, "cstr %s %d %d %d %s\n", fmtstr, args, len, wd, s);1060 // fprintf( stderr, "cstr %s %d %d %d\n", fmtstr, args, len, f.cstr.wd ); 1061 1061 if ( check && len >= rwd && ! eof( is ) ) { // might not fit 1062 1062 char peek; … … 1069 1069 } // if 1070 1070 // FIX ME: CFA strings need to be modified to NOT change the argument for this case, then this can be removed. 1071 if ( ! flags.ignore && args == 0 ) s[0]= '\0'; // read failed => no pattern match => set string to null 1071 //fprintf( stderr, "cstr %d %d %d %d '%s'\n", flags.ignore, args, len, eof( is ), s ); 1072 //if ( ! flags.ignore && args == 0 ) s[0]= '\0'; // read failed => no pattern match => set string to null 1072 1073 } else { 1073 1074 if ( flags.delimiter ) { // getline … … 1080 1081 if ( flags.ignore ) args = fmt( is, fmtstr, &len ); // no string argument for '*' 1081 1082 else args = fmt( is, fmtstr, s, &len ); 1082 1083 // cannot have empty character constant ''1084 if ( delimiters[2] != '\0' && len != 1 ) throwResume ExceptionInst( missing_data );1085 1083 1086 1084 if ( check && len == rwd && ! eof( is ) ) { // might not fit
Note: See TracChangeset
for help on using the changeset viewer.