mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Minor corrections suggested by Chris' ever-watchful eye.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16651 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -48,16 +48,11 @@ namespace sys {
|
|||||||
/// system with the mapping \p options provided.
|
/// system with the mapping \p options provided.
|
||||||
/// @throws std::string if an error occurs
|
/// @throws std::string if an error occurs
|
||||||
MappedFile(const Path& path, int options = READ_ACCESS)
|
MappedFile(const Path& path, int options = READ_ACCESS)
|
||||||
: path_(path), options_(options), base_(0), info_(0) {
|
: path_(path), options_(options), base_(0), info_(0) { initialize(); }
|
||||||
initialize();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// Destruct a MappedFile and release all memory associated with it.
|
/// Destruct a MappedFile and release all memory associated with it.
|
||||||
/// @throws std::string if an error occurs
|
/// @throws std::string if an error occurs
|
||||||
~MappedFile() {
|
~MappedFile() { terminate(); }
|
||||||
terminate();
|
|
||||||
path_.clear();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Accessors
|
/// @name Accessors
|
||||||
@@ -123,7 +118,7 @@ namespace sys {
|
|||||||
/// map(), base(), or baseChar() members as they may point to invalid
|
/// map(), base(), or baseChar() members as they may point to invalid
|
||||||
/// areas of memory after this call.
|
/// areas of memory after this call.
|
||||||
/// @throws std::string if an error occurs
|
/// @throws std::string if an error occurs
|
||||||
/// @brief Set a full path from a std::string
|
/// @brief Set the size of the file and memory mapping.
|
||||||
void size(size_t new_size);
|
void size(size_t new_size);
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
@@ -143,7 +138,7 @@ namespace sys {
|
|||||||
MappedFileInfo* info_; ///< Platform specific info for the mapping
|
MappedFileInfo* info_; ///< Platform specific info for the mapping
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Deprecated
|
/// @name Disabled
|
||||||
/// @{
|
/// @{
|
||||||
private:
|
private:
|
||||||
///< Disallow assignment
|
///< Disallow assignment
|
||||||
|
Reference in New Issue
Block a user