Age | Commit message (Collapse) | Author |
|
cross-compiling, and strndup is available in the binary for more exotic platforms
|
|
destructor
|
|
|
|
|
|
|
|
PoolItem::CanAllocateItem() before actually allocating it
|
|
|
|
more likely to be updated [n].
|
|
|
|
is enabled (fonsinchen)
|
|
|
|
result before shifting.
|
|
causing invalid memory reads / double free
|
|
|
|
|
|
|
|
|
|
new items like operator[].
|
|
DEBUG() output. It was triggered on exceptions, especially when aborting world generation.
|
|
of _current_company to ensure proper restoration.
|
|
|
|
|
|
passed bit variable, i.e. allow expressions as parameter
|
|
|
|
divisions with rounding.
|
|
generally extent it to handle 32 bits.
|
|
lots of industry types.
|
|
|
|
|
|
compiling (planetmaker)
|
|
|
|
instead of CountBits() where possible
|
|
about
|
|
with one call.
|
|
if a header require a header make it include that header
|
|
it's used quite often in the code
-Revert (r18637): it's not needed any more
|
|
|
|
capacity it would try to set a negative position
|
|
min(int, int) is a better match for min(uint64, uint) than uint64 min(uint64, uint64). As such we need to cast the UINT16_MAX to prevent MSVC from displaying it's infinite wisdom with loads of warnings.
|
|
(fonsinchen) and reuse template functions in their non-template counterparts.
|
|
"non-placement deallocation function [is] selected for placement delete", or in other words delete(void *, size_t) is 'magic'.
We implemented these delete(void *, size_t) operator functions because MSVC warned that "no matching operator delete found; memory will not be freed if initialization throws an exception" for new(size_t, size_t).
This disables MSVC warning about this because we do not use exceptions in the (constructors that use the) overridden allocation functions, as such they will never be called; delete(void *) remains necessary though.
|
|
|
|
needed for the delete operator
|
|
pools, that is instead of 'free' push the unused items in a linked list and use them on 'malloc'. Also add the concept of zeroing, or actually not zeroing, on new for pool items.
|
|
|
|
|
|
|
|
@param to @tparam if necessary
|
|
which were sometimes missing and sometimes just typos
|
|
|