971 Commits

Author SHA1 Message Date
Guo Xiao
8f891403bc Fix warnings when visited via https 2015-04-26 20:54:50 +08:00
Milo Yip
d2269f65f6 Update CHANGELOG.md v1.0.1 2015-04-25 16:01:10 +08:00
Milo Yip
a592e199e7 Update CHANGELOG.md 2015-04-25 15:53:51 +08:00
Milo Yip
b55fe077b6 Merge pull request #318 from miloyip/release1.0.1
Release1.0.1
2015-04-25 15:50:26 +08:00
Milo Yip
2e913bfea6 Update readme badge to version 1.0.1 also 2015-04-25 10:18:30 +08:00
Milo Yip
316292d518 Change version to 1.0.1 2015-04-25 09:52:59 +08:00
Milo Yip
4f20541339 Add change log 2015-04-25 09:49:31 +08:00
Milo Yip
d38558ffd7 Merge pull request #314 from miloyip/issue313_exponentoverflow
Fix #313 Assertion In `Pow10.h` is triggered in Document::Parse
2015-04-25 08:54:45 +08:00
Milo Yip
1a2d99df50 Merge pull request #317 from mitza-oci/patch-1
Fixed to build on older versions of 32-bit MSVC
2015-04-25 08:54:38 +08:00
Adam Mitz
a9250d170d Fixed to build on older versions of 32-bit MSVC 2015-04-24 13:32:00 -05:00
Milo Yip
7708215b60 Try to fix #313 again 2015-04-25 00:13:09 +08:00
Milo Yip
735354efd3 Separate handling for pos/neg exp and improve pos exp overflow 2015-04-24 22:50:42 +08:00
Milo Yip
93d13ad2ac Fix #313 Assertion In Pow10.h is triggered in Document::Parse 2015-04-24 21:44:42 +08:00
Milo Yip
7f43373a12 Merge pull request #311 from miloyip/issue310_versionmacro
RapidJSON v1.0.0
v1.0.0
2015-04-22 10:26:03 +08:00
miloyip
b2e53523bf Change version in appveyor 2015-04-22 09:24:56 +08:00
miloyip
5ab3f69910 Simplify RAPIDJSON_VERSION_STRING 2015-04-22 09:19:18 +08:00
Milo Yip
de137a2567 Merge pull request #312 from jollyroger/find_gtest
Introduce option to select default gtest installation
2015-04-21 18:37:43 +08:00
Andrii Senkovych
04b673686a Introduce option to select default gtest installation. Refs #309
This will introduce RAPIDJSON_BUILD_THIRDPARTY_GTEST option. If it is set to
TRUE, cmake will look for GTest installation in `thirdparty/gtest` before
looking in other places.

Current default value (OFF) for RAPIDJSON_BUILD_THIRDPARTY_GTEST represents
previous behaviour when system-wide gtest installation is used whenever
possible.

This commit will as well eliminate problem described in #309 when source
directory found is `thirdparty/gtest` while include files are found
system-wide. This however won't give the user possibility to select gtest
installation to use.
2015-04-21 13:33:44 +03:00
miloyip
95c6ec97c4 Add release badge to readmes 2015-04-21 17:28:31 +08:00
miloyip
5ab1e9361d Add version macros for RapidJSON 2015-04-21 16:38:49 +08:00
miloyip
8d39282af5 Update license headers for tests 2015-04-18 21:41:38 +08:00
miloyip
aa61b08d11 Fix warnings for misctest 2015-04-18 21:31:56 +08:00
Milo Yip
0e8bbe5e3e Standardize behavior of CrtAllocator::Malloc() 2015-04-17 13:01:14 +08:00
Milo Yip
4cd14b7c0e Merge pull request #305 from pah/fix/strict-memcpy
Avoid calling memcpy with NULL pointers
2015-04-17 12:28:37 +08:00
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
miloyip
30ace6fa95 Fix mistake in perftest 2015-04-16 10:55:42 +08:00
miloyip
556d154bed Search sample data in more folders for perftest 2015-04-16 10:34:45 +08:00
miloyip
22021d6622 Converts tabs to spaces 2015-04-16 10:15:23 +08:00
miloyip
a7763cbeca Fix allocator test 2015-04-16 09:42:22 +08:00
miloyip
67a3ee39b5 Fix coveralls 2015-04-16 00:29:28 +08:00
Milo Yip
b1fd2f18e1 Update readme.zh-cn.md
Add build status
2015-04-16 00:16:34 +08:00
Milo Yip
e857b082fb Update readme.md
Add coverall badges
2015-04-16 00:11:41 +08:00
Milo Yip
75ee552f49 Merge pull request #304 from miloyip/issue298_coverage
100% line of code coverage
2015-04-15 23:58:59 +08:00
miloyip
0edf27fa0c Only do coverage on gcc/debug 2015-04-15 22:55:35 +08:00
Milo Yip
0571a211bd Cover SkipWhiteSpace for InsituStringStream 2015-04-15 22:36:00 +08:00
Milo Yip
8f2add7527 Not enforce force inline for debug configuration 2015-04-15 22:23:00 +08:00
Milo Yip
4d3c64acee Improves SkipWhitespace test 2015-04-15 21:07:30 +08:00
Milo Yip
a81585b5e2 Further improve SkipWhitespace coverage 2015-04-15 20:51:36 +08:00
Milo Yip
998e76fecc Improves SkipWhitespace coverage 2015-04-15 20:38:46 +08:00
miloyip
ee505261c1 Try to use another namespace for SIMD version 2015-04-15 18:34:18 +08:00
miloyip
a32d8b7650 Add SIMD SkipWhitespace() unit test which don't run in Valgrind 2015-04-15 18:18:57 +08:00
Milo Yip
fa32ec8991 Merge pull request #302 from thebusytypist/issue298_coverage
Improve code coverage for iterative parsing
2015-04-15 16:32:22 +08:00
thebusytypist
6ef29ff431 Fix warning about unused argument. 2015-04-15 16:09:29 +08:00
thebusytypist
0d28bb13c7 Add a missing error handling check(a single number as JSON root). 2015-04-15 15:46:31 +08:00
thebusytypist
5ae48a0380 Assert on impossible state transition in Transit(); Put the last case and all non-enumerated cases(also supply assertion for them) in for code coverage. 2015-04-15 15:21:42 +08:00
miloyip
3f562e118f Fix "SSE 4.1 -> SSE 4.2" typo and add some comments about SIMD in internals and FAQ 2015-04-15 14:57:29 +08:00
thebusytypist
399333226b Use assertion for impossible case(The Predict() can ensure the token is ColonToken, otherwise it would be marked as Error state. So there is no need to check ColonToken again). 2015-04-15 14:54:44 +08:00
thebusytypist
8576747373 Add unittest for state transition to IterativeParsingMemberKeyState. 2015-04-15 14:51:48 +08:00
thebusytypist
7cb031cc03 Add unittests for parsing root JSON value other than array and object. 2015-04-15 14:45:07 +08:00
miloyip
631302e68e Reduce random test iterations to speedup travis 2015-04-15 14:41:33 +08:00