diff -r 23a892ae0220 .hgignore
|
-
|
+
|
|
| | 1 | # This file supports two syntax types, glob and regexp. |
| | 2 | # In either case, the backslash is an escape and must be doubled to get a literal backslash |
| | 3 | |
| | 4 | syntax: glob |
| | 5 | |
| | 6 | # Exclude object files: |
| | 7 | bin.v2 |
| | 8 | BoostBuildLog.txt |
| | 9 | No newline at end of file |
diff -r 23a892ae0220 libs/iostreams/src/mapped_file.cpp
|
a
|
b
|
|
| 169 | 169 | #ifndef NDEBUG |
| 170 | 170 | msg += std::string(" (\"") + impl.path_ + "\")"; |
| 171 | 171 | #endif |
| 172 | | if (impl.mapped_handle_ != INVALID_HANDLE_VALUE) |
| | 172 | if (impl.mapped_handle_ != NULL) |
| 173 | 173 | ::CloseHandle(impl.mapped_handle_); |
| 174 | | if (impl.handle_ != NULL) |
| | 174 | if (impl.handle_ != INVALID_HANDLE_VALUE) |
| 175 | 175 | ::CloseHandle(impl.handle_); |
| 176 | 176 | impl.clear(true); |
| 177 | 177 | throw_system_failure(msg); |
| … |
… |
|
| 399 | 399 | return; |
| 400 | 400 | } |
| 401 | 401 | |
| | 402 | #ifdef BOOST_IOSTREAMS_WINDOWS |
| | 403 | bool mapped_file_source::is_open() const |
| | 404 | { return !!pimpl_ && pimpl_->handle_ != INVALID_HANDLE_VALUE; } |
| | 405 | #else |
| 402 | 406 | bool mapped_file_source::is_open() const |
| 403 | 407 | { return !!pimpl_ && pimpl_->handle_ != 0; } |
| | 408 | #endif |
| 404 | 409 | |
| 405 | 410 | int mapped_file_source::alignment() |
| 406 | 411 | { return static_cast<int>(sysconf(_SC_PAGESIZE)); } |