diff options
author | rubidium <rubidium@openttd.org> | 2006-09-04 20:40:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-09-04 20:40:33 +0000 |
commit | 63687763e9680663e68754b47ee9f1511641faf8 (patch) | |
tree | b1e52d993ce60e919358d998b36ea08adfe26cba /yapf/blob.hpp | |
parent | a7cfb80c40d9a4c544ece10872fd3808f9f59f8d (diff) | |
download | openttd-63687763e9680663e68754b47ee9f1511641faf8.tar.xz |
(svn r6381) -Cleanup: make the '/* */' comments that span multiple lines more uniform.
-Cleanup: whitespace alignment of a few tables.
Diffstat (limited to 'yapf/blob.hpp')
-rw-r--r-- | yapf/blob.hpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/yapf/blob.hpp b/yapf/blob.hpp index 6cc460e41..8c2da84a4 100644 --- a/yapf/blob.hpp +++ b/yapf/blob.hpp @@ -11,14 +11,14 @@ FORCEINLINE void MemCpyT(Titem_* d, const Titem_* s, int num_items = 1) /** Base class for simple binary blobs. - Item is byte. - The word 'simple' means: - - no configurable allocator type (always made from heap) - - no smart deallocation - deallocation must be called from the same - module (DLL) where the blob was allocated - - no configurable allocation policy (how big blocks should be allocated) - - no extra ownership policy (i.e. 'copy on write') when blob is copied - - no thread synchronization at all */ + * Item is byte. + * The word 'simple' means: + * - no configurable allocator type (always made from heap) + * - no smart deallocation - deallocation must be called from the same + * module (DLL) where the blob was allocated + * - no configurable allocation policy (how big blocks should be allocated) + * - no extra ownership policy (i.e. 'copy on write') when blob is copied + * - no thread synchronization at all */ class CBlobBaseSimple { protected: struct CHdr { @@ -78,7 +78,7 @@ public: } /** Reallocate if there is no free space for num_bytes bytes. - @return pointer to the new data to be added */ + * @return pointer to the new data to be added */ FORCEINLINE int8* MakeRawFreeSpace(int num_bytes) { assert(num_bytes >= 0); @@ -89,7 +89,7 @@ public: } /** Increase RawSize() by num_bytes. - @return pointer to the new data added */ + * @return pointer to the new data added */ FORCEINLINE int8* GrowRawSize(int num_bytes) { int8* pNewData = MakeRawFreeSpace(num_bytes); |