Philipp A. Hartmann
0c5c1538dc
Avoid calling memcpy with NULL pointers
...
According to the C/C++ standards, calling `memcpy(NULL, NULL, 0)` is
undefined behaviour. Recent GCC versions may rely on this by optimizing
NULL pointer checks more aggressively, see [1].
This patch tries to avoid calling std::memcpy with zero elements.
As a side effect, explicitly return NULL when requesting an empty block
from MemoryPoolAllocator::Malloc.
This may be related to #301 .
[1] https://gcc.gnu.org/gcc-4.9/porting_to.html
2015-04-16 21:05:08 +02:00
Milo Yip
94c0082e38
Merge pull request #300 from miloyip/RemoveFileStream
...
Remove deprecated FileStream
2015-04-14 11:29:34 +08:00
miloyip
9dcc1f44f5
Remove deprecated test
2015-04-14 11:09:45 +08:00
miloyip
67be9ed2cb
Remove depreciated FileStream
2015-04-14 11:08:47 +08:00
miloyip
2d07198863
Fix compilation
2015-04-13 18:24:10 +08:00
miloyip
e7f1c6dd08
Remove an invalid Document::ParseInsitu() API
2015-04-13 18:21:15 +08:00
miloyip
35d0577e80
Try to fix doxygen problem
2015-04-13 00:44:52 +08:00
miloyip
d05801901a
Activate coveralls/gcov for code coverage analysis
2015-04-13 00:32:24 +08:00
Milo Yip
519a899fa1
Merge pull request #296 from miloyip/issue294_WriteIntSegFault
...
Try to fix a potential seg fault on some compiler
2015-04-11 12:25:45 +08:00
miloyip
e346b93325
Try to fix a potential set fault on some compiler
...
Merge the fix from https://github.com/miloyip/itoa-benchmark/issues/8
2015-04-11 12:10:44 +08:00
Milo Yip
6f4337c555
Merge pull request #295 from miloyip/issue287_WarningFloatEqual
...
Fix several -Wfloat-equal related comments in #293
2015-04-11 11:52:45 +08:00
miloyip
cb59a5a9a2
Correct the Value::operator==() for double.
2015-04-11 11:34:44 +08:00
miloyip
55f8339a0a
Compare exact binary representation for full precision test
...
Conflicts:
doc/diagram/simpledom.png
2015-04-11 11:26:47 +08:00
Milo Yip
7e24024f51
Merge pull request #293 from miloyip/issue287_WarningFloatEqual
...
Add -Wfloat-equal and fix all derived warnings
2015-04-11 01:06:47 +08:00
Milo Yip
a0a361d2b5
Merge pull request #292 from shindo/pull-FindPackageHandleStandardArgs
...
fixed 'Unknown CMake command "find_package_handle_standard_args"'
2015-04-11 01:05:26 +08:00
Milo Yip
5ae85e67f6
Yet two more warnings
2015-04-11 00:41:09 +08:00
Danil Osherov
2e0a2f61f4
CMake: fixed 'Unknown CMake command "find_package_handle_standard_args"'.
...
Added INCLUDE(FindPackageHandleStandardArgs) before using find_package_handle_standard_args().
2015-04-10 19:34:55 +03:00
Milo Yip
d7ad55f49e
Another two warnings
2015-04-11 00:20:10 +08:00
Milo Yip
09448e980b
Another warning in valuetest
2015-04-11 00:12:15 +08:00
Milo Yip
2452afbf3c
Fix -Wfloat-equal warnings in Value::operator== and valuetest
2015-04-11 00:02:17 +08:00
Milo Yip
e04d66bdd8
Try to use EXPECT_NEAR
2015-04-10 23:47:53 +08:00
Milo Yip
c18812a36a
Fix yet another -Wfloat-equal warning
2015-04-10 23:37:20 +08:00
Milo Yip
2524693cfd
Suppress float-equal in readertest.cpp
2015-04-10 23:24:33 +08:00
Milo Yip
fb4f321d82
Fix another -Wfloat-equal warning
2015-04-10 23:10:08 +08:00
Milo Yip
dfba62e143
Fixed two -Wfloat-equal warnings
2015-04-10 22:57:41 +08:00
Milo Yip
53ed550a5e
Merge remote-tracking branch 'origin/master' into issue287_WarningFloatEqual
2015-04-10 22:50:24 +08:00
Milo Yip
02aa12a29e
Merge pull request #291 from miloyip/issue289_NegativeZeroRoundtrip
...
Fix #289 negative zero roundtrip (double only)
2015-04-10 21:53:58 +08:00
Milo Yip
f73ec57241
Add -Wfloat-equal to reproduce warnings
2015-04-10 21:30:42 +08:00
Milo Yip
928d3421b4
Merge pull request #290 from miloyip/issue288_QuoteInUnicodeEscape
...
Fix #288 double quote in unicode escape
2015-04-10 21:25:04 +08:00
Milo Yip
e5cf3b85f3
Fix #289 negative zero roundtrip (double only)
2015-04-10 21:24:29 +08:00
Milo Yip
b7e34100ed
Fix #288 double quote in unicode escape
2015-04-10 20:36:27 +08:00
miloyip
79e81fe36f
Typo
2015-04-08 14:50:27 +08:00
miloyip
a31eb8962e
Add missing \" in simpledom diagram
2015-04-08 14:31:08 +08:00
miloyip
3b9676f722
Add Gitbook links
2015-04-08 14:28:46 +08:00
miloyip
eb53791411
Try to fix side-nav not reaching bottom issue
2015-04-07 17:48:52 +08:00
Milo Yip
afa317674a
Merge pull request #283 from miloyip/license
...
Changing copyright holders, and details in license
2015-04-07 17:31:59 +08:00
miloyip
a24322f2c7
Try adding disqus for documentation
2015-04-07 17:15:56 +08:00
miloyip
a02ed75e8b
Use smaller font for title of class reference
2015-04-07 16:37:47 +08:00
miloyip
4b6bf04623
Try fixing vertical gap in old doxygen with CSS
2015-04-07 15:35:08 +08:00
miloyip
3ca69693bd
Fix another set of dead links
2015-04-07 15:18:05 +08:00
miloyip
8d76b402ea
Fix dead links
2015-04-07 14:11:34 +08:00
Milo Yip
a6f102472b
Copyright text for zh-cn readme
2015-04-03 15:24:41 +08:00
Milo Yip
dd28719aae
Minor doc fixes
2015-04-03 15:01:01 +08:00
Milo Yip
d882fa6d82
Update links to people in FAQ
2015-04-03 14:48:41 +08:00
Milo Yip
25e408dbe5
Typo
2015-04-03 12:58:23 +08:00
Milo Yip
d1959ba6e3
Change copyright owner and related changes.
2015-04-03 12:57:16 +08:00
Milo Yip
b8cc02e0aa
Try to fix a compilation error on gcc/clang
2015-04-03 11:35:32 +08:00
Milo Yip
fc18b12880
Minor dom doc modifications
2015-04-03 11:33:55 +08:00
Milo Yip
2d920e7e0f
Add user buffer unit test
2015-04-03 11:25:19 +08:00
Milo Yip
51f439eddb
Fix internals document doxygen table issue and typos
2015-04-03 11:06:15 +08:00