Changeset f5a77a00 in mainline
- Timestamp:
- 2018-07-05T21:41:19Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bed3d11
- Parents:
- 2e0256b
- git-author:
- Dzejrou <dzejrou@…> (2017-12-17 14:57:48)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:19)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/include/internal/streambufs.hpp
r2e0256b rf5a77a00 82 82 auto c = fgetc(in_); 83 83 putchar(c); // TODO: Temporary source of feedback. 84 auto ic = traits_type::to_int_type(c); 85 if (traits_type::eq_int_type(ic, traits_type::eof())) 84 if (c == traits_type::eof()) 86 85 break; 87 86 88 buffer_[i] = c;87 buffer_[i] = static_cast<char_type>(c); 89 88 90 if (c == '\n') 89 if (buffer_[i] == '\n') 90 { 91 ++i; 91 92 break; 93 } 92 94 } 93 95 … … 103 105 int_type uflow() override 104 106 { 105 // TODO: what is the difference between uflow and underflow?106 107 auto res = underflow(); 107 ++ *input_next_;108 ++input_next_; 108 109 109 110 return res;
Note:
See TracChangeset
for help on using the changeset viewer.