Changeset d13b67a in mainline for uspace/lib/cpp/src/ios.cpp
- Timestamp:
- 2018-07-05T21:41:18Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9400dbe
- Parents:
- 00d9778
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-11-08 23:49:39)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/ios.cpp
r00d9778 rd13b67a 31 31 namespace std 32 32 { 33 int ios_base::index_{}; 34 bool ios_base::sync_{true}; 35 long ios_base::ierror_{0}; 36 void* ios_base::perror_{nullptr}; 37 33 38 ios_base::ios_base() 34 39 : iarray_{}, parray_{}, iarray_size_{}, parray_size_{}, … … 37 42 { /* DUMMY BODY */ } 38 43 39 ~ios_base::ios_base()44 ios_base::~ios_base() 40 45 { 41 46 for (auto& callback: callbacks_) … … 43 48 } 44 49 45 auto ios_base::flags() -> fmtflags const50 auto ios_base::flags() const -> fmtflags 46 51 { 47 52 return flags_; … … 75 80 void ios_base::unsetf(fmtflags fmtfl) 76 81 { 77 flags_ &= ~fmtfl ags;82 flags_ &= ~fmtfl; 78 83 } 79 84 … … 115 120 } 116 121 117 locale ios_base::get _loc() const122 locale ios_base::getloc() const 118 123 { 119 124 return locale_; … … 156 161 if (!parray_) 157 162 { 158 parray_ = new long[initial_size_];163 parray_ = new void*[initial_size_]; 159 164 parray_size_ = initial_size_; 160 165 } … … 165 170 // and return perror_. 166 171 size_t new_size = max(parray_size_ * 2, idx + 1); 167 auto tmp = new long[new_size];172 auto tmp = new void*[new_size]; 168 173 169 174 for (size_t i = 0; i < parray_size_; ++i) … … 186 191 void ios_base::register_callback(event_callback fn, int index) 187 192 { 188 callbacks .emplace_back(fn, index);193 callbacks_.emplace_back(fn, index); 189 194 } 190 195
Note:
See TracChangeset
for help on using the changeset viewer.