0ad/source/lib
Ykkrosh 85e2e72eb7 Fix TestHeaderless failure on GCC 4.9.
Once 'delete' is called on an object, that object no longer exists, and
accessing its member variables is undefined behaviour. GCC 4.9's
optimiser recognises this, and eliminates any writes to member variables
inside the destructor, since it knows they cannot legally be read later.

BoundaryTagManager relied on ~FreedBlock resetting its memory to 0, so
this optimisation broke it. Replace the placement new/delete with plain
non-magic Setup/Reset functions, to avoid the optimisation.

Fixes #2481.

This was SVN commit r15334.
2014-06-11 19:50:38 +00:00
..
adts Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
allocators Fix TestHeaderless failure on GCC 4.9. 2014-06-11 19:50:38 +00:00
external_libraries Made tinygettext’s debug output optional 2014-04-26 15:32:18 +00:00
file Stop VFS from causing a crash when the AI player isn't found. Patch by Itms. Fixes #2558 2014-05-31 14:55:09 +00:00
pch Remove unused includes of tr1/unordered_map etc. 2013-11-14 20:47:59 +00:00
posix Add support for OpenBSD. Fixes #1463. 2012-06-13 20:43:56 +00:00
res Cleanup tex_codec, fixes #2456, patch by IronNerd. 2014-03-13 04:16:20 +00:00
sysdep Disables checks in os_cpu_LargePageSize Windows implementation, since they failed on Vista SP2 with old Xeon CPU, fixes #2346 2014-02-04 22:30:29 +00:00
tests Fix handling of non-ASCII paths on Unix 2012-05-11 14:30:15 +00:00
tex Fix Valgrind complaint about delete vs delete[]. 2014-06-01 18:46:14 +00:00
alignment.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
app_hooks.cpp split debug_assert into ENSURE and ASSERT as discussed in a previous meeting. 2011-04-30 13:01:45 +00:00
app_hooks.h refactoring: 2011-03-23 16:14:47 +00:00
base32.cpp Fix use of undefined behaviour (shifting by >= size of left operand) 2010-07-30 21:33:26 +00:00
base32.h Fix #423 (Switch from CppDoc to Doxygen), based on patch from anr. 2010-07-29 15:55:41 +00:00
bits.cpp needed to split lib into separate headers and source files, which requires lots of drudgery to specify paths for each include filename (no longer relying on same-directory lookups) 2010-03-01 14:52:58 +00:00
bits.h Fixes compile error introduced in 3787f17e4d 2012-12-01 20:34:35 +00:00
byte_order.cpp Avoid potential aliasing violation in endian functions 2011-10-25 14:02:50 +00:00
byte_order.h Vague start at hypothetical Android support 2012-01-17 22:05:43 +00:00
code_annotation.h Added API documentation to ‘source/i18n/’ 2014-04-26 12:10:15 +00:00
code_generation.h Catch exceptions by reference (by convention), based on patch from Markus, refs #1852 2013-05-22 22:27:53 +00:00
config2.h Add compile time flag to disable use of miniupnpc. 2013-12-18 16:08:56 +00:00
config.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
debug_stl.cpp post-alpha sync with work. 2011-07-18 09:21:56 +00:00
debug_stl.h post-alpha sync with work. 2011-07-18 09:21:56 +00:00
debug.cpp sync with work - minor fixes 2011-12-19 11:55:30 +00:00
debug.h New Year's clean-up. 2013-01-01 18:33:53 +00:00
fnv_hash.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
fnv_hash.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
frequency_filter.cpp Improves frame rate counter to give smoother results, patch by sbte. Fixes #1016 2013-02-26 21:50:38 +00:00
frequency_filter.h Avoid -Wnon-virtual-dtor warnings 2010-03-31 08:36:46 +00:00
input.cpp Improve correctness of hotkeys at low framerates. 2013-10-30 01:38:32 +00:00
input.h Improve correctness of hotkeys at low framerates. 2013-10-30 01:38:32 +00:00
lib_api.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
lib.cpp ENSURE(0) -> DEBUG_WARN_ERR(ERR::LOGIC) (a bit smaller, and more descriptive) 2011-05-04 12:10:17 +00:00
lib.h Fix compatibility with LLVM libc++ (used on OS X). 2014-05-26 16:48:28 +00:00
module_init.cpp fix self-test and map load on Windows (avoid mixing dir separators). 2011-05-06 18:45:30 +00:00
module_init.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
ogl.cpp Adds comment about xorg-x11's glXGetProcAddress not returning NULL for unsupported functions, closes #171 2013-06-14 23:49:20 +00:00
ogl.h Fix build with old versions of Mesa 2012-01-19 18:23:54 +00:00
os_path.h Fix handling of non-ASCII paths on Unix 2012-05-11 14:30:15 +00:00
path.cpp refactor status code definitions: allow modules to define an array of them (more convenient+efficient). 2011-05-05 13:03:34 +00:00
path.h Include mod path in the cache path. 2013-07-10 00:08:01 +00:00
pointer_typedefs.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
precompiled.h make explicit that both iterator debugging and _SECURE_SCL (which is less than iterator debugging) are disabled in release builds 2011-05-07 16:46:28 +00:00
ps_stl.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
rand.cpp cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
rand.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
regex.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
regex.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
secure_crt.cpp Add support for OpenBSD. Fixes #1463. 2012-06-13 20:43:56 +00:00
secure_crt.h Add support for OpenBSD. Fixes #1463. 2012-06-13 20:43:56 +00:00
self_test.cpp needed to split lib into separate headers and source files, which requires lots of drudgery to specify paths for each include filename (no longer relying on same-directory lookups) 2010-03-01 14:52:58 +00:00
self_test.h Wall placement. Closes #786. 2012-05-05 19:22:22 +00:00
status.cpp Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
status.h Set svn:eol-style=native, fix some inconsistent line endings 2013-12-06 00:42:50 +00:00
svn_revision.cpp license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
svn_revision.h license change to the more permissible Expat/MIT license for lib/ (see forum thread) 2010-02-08 16:23:39 +00:00
timer.cpp Fixes race condition in EnsureMonotonic on 32-bit builds, which was causing unreliable timer behavior, fixes #1729 2012-12-03 13:24:12 +00:00
timer.h sync with work: 2011-12-27 14:12:31 +00:00
types.h Second (main) commit for the SpiderMonkey upgrade. 2014-03-28 20:26:32 +00:00
utf8.cpp refactor status code definitions: allow modules to define an array of them (more convenient+efficient). 2011-05-05 13:03:34 +00:00
utf8.h cleanup (requires update-workspaces) 2011-05-03 12:38:42 +00:00
wsecure_crt.cpp Misc. unity fixes (missing includes, undefs, and other things that could be considered generic cleanup) 2010-02-18 00:06:50 +00:00