814 Commits

Author SHA1 Message Date
miloyip
7b685da2df Merge remote-tracking branch 'origin/master' into zh-cn 2015-04-02 15:32:44 +08:00
miloyip
49aff94d8d Update zh-cn doxygen 2015-04-02 15:32:30 +08:00
miloyip
2c1598536e Update and localize performance 2015-04-02 15:12:50 +08:00
miloyip
fb60787990 Update internals 2015-04-02 15:01:06 +08:00
Milo Yip
f5b021d7cb Merge pull request #279 from pah/fix/pedantic
Fixes for GCC with -pedantic
2015-04-02 09:44:25 +08:00
Philipp A. Hartmann
cda34f0033 encodings.h: hide overflow warning 2015-04-01 22:39:42 +02:00
Philipp A. Hartmann
525e8c5770 biginteger/diyfp: mark __int128 as extension on GCC 2015-04-01 22:39:26 +02:00
Philipp A. Hartmann
3b8158086d messagereader.cpp: drop trailing comma 2015-04-01 22:39:01 +02:00
Milo Yip
362221d3ca Merge pull request #274 from pah/fixes/273
tutorial.cpp: fix insitu parsing (closes #273)
2015-04-01 09:30:50 +08:00
Philipp A. Hartmann
953cda14f7 tutorial.cpp: fix insitu parsing (closes #273)
The insitu parsing example in the tutorial is using a local char
buffer inside a nested scope.  After leaving the scope, the
resulting Document object still references this (now invalid)
memory locations.

Some compilers reuse this space on the stack for other local
variables later in the function, corrupting the original document.

Drop the local scope to extend the lifetime of the buffer.
2015-03-31 20:55:00 +02:00
Milo Yip
b484407999 Merge pull request #272 from pah/fix/std-string-inclusion
document.h: include <string>, iff RAPIDJSON_HAS_STDSTRING==1
2015-03-31 10:09:26 +08:00
Philipp A. Hartmann
2f010e6e4b document.h: include <string>, iff RAPIDJSON_HAS_STDSTRING==1
Reported-by: Janusz Chorko (@yachoor)
See: https://github.com/miloyip/rapidjson/commit/c1c9ba7c#commitcomment-10434694
2015-03-30 22:37:24 +02:00
miloyip
ff22713fd0 Localized FAQ 2015-03-26 14:37:30 +08:00
miloyip
d243e5c156 Edit FAQ 2015-03-26 14:37:21 +08:00
miloyip
017394e8a9 Update tutorial links 2015-03-26 14:36:46 +08:00
miloyip
27e8f7811d Update FAQ 2015-03-25 17:15:56 +08:00
Milo Yip
a36110e118 Merge pull request #270 from thebusytypist/RefineCXX11RValueRefDetection
Check libstdc++ version to decide if enable rvalue ref support.
2015-03-25 10:43:21 +08:00
Milo Yip
da98b6d50f Merge pull request #271 from pah/fixes/266-travis-valgrind-x86
.travis.yml: disable SSE4.2 on 32-bit (closes #266)
2015-03-25 09:48:35 +08:00
Philipp A. Hartmann
107aff0c28 .travis.yml: disable SSE4.2 on 32-bit (closes #266) 2015-03-24 21:04:38 +01:00
thebusytypist
92c7485be0 Check libstdc++ version to decide if enable rvalue ref support. 2015-03-24 17:03:24 +08:00
Milo Yip
1906bf1cc2 Merge pull request #269 from thebusytypist/CleanInSourceBuildInstall
Exclude intermediate files from install of in-source build. (Issue #259)
2015-03-24 14:09:09 +08:00
thebusytypist
58cd253f8f Exclude intermediate files from install. 2015-03-24 13:50:02 +08:00
Milo Yip
89655979da Merge pull request #268 from miloyip/issue267_appveyorfail
Fix VS2012 compilation fail in stringbuffertest
2015-03-24 11:18:08 +08:00
miloyip
978a3ab830 Fix VS2012 compilation fail in stringbuffertest 2015-03-23 17:30:25 +08:00
Milo Yip
3a4835e080 Merge pull request #258 from pah/fixes/ci-debug-noperftest
Skip running perftest on CI debug builds (Appveyer; Travis)
2015-03-13 09:56:33 -04:00
Milo Yip
9279e9eca3 Merge pull request #257 from pah/fixes/254-addmember
GenericValue::AddMember<T>: add missing overload (closes #254)
2015-03-13 09:56:16 -04:00
Philipp A. Hartmann
2b5654692c .travis.yml: properly pass $ARCH_FLAGS
RapidJSON is C++, need to set CMAKE_CXX_FLAGS instead
of CMAKE_C_FLAGS when configuring the build environment.
2015-03-10 21:53:46 +01:00
Philipp A. Hartmann
66a2ccdd1d .travis.yml: add missing semicolon 2015-03-10 21:15:41 +01:00
Philipp A. Hartmann
aae07f6238 .travis.yml: re-add missing "apt-get update" call
(Accidentally dropped in 40c03114)
2015-03-10 20:48:39 +01:00
Philipp A. Hartmann
0ed4cdfa46 appveyor.yml: skip perftest on debug builds 2015-03-10 20:32:39 +01:00
Philipp A. Hartmann
c26a2a64af .travis.yml: skip perftest on debug builds 2015-03-10 20:29:15 +01:00
Philipp A. Hartmann
429b3dcfab .travis.yml: move comment of workaround for #163 2015-03-10 20:29:15 +01:00
Philipp A. Hartmann
242b393aae .travis.yml: cleanup ARCH configuration 2015-03-10 20:29:15 +01:00
Philipp A. Hartmann
c14dff1675 Merge branch 'cmake-update' of @jollyroger (#244) 2015-03-10 20:28:30 +01:00
Philipp A. Hartmann
06c3ddbac5 GenericValue::AddMember<T>: add missing overload (closes #254)
As discovered by @felipegb94, there are missing overloads to the
`GenericValue::AddMember<T>` template function, taking an explicit
`GenericValue&` as a name and accepting arbitrary primitive values.

This patch adds the missing overloads. The `StringRefType` overload
is needed to disambiguate the addition of a string literal as
value.

Some tests are added to `TEST(Value, Object)` in `valuetest.cpp`.
2015-03-10 19:11:27 +01:00
Milo Yip
1a043e62bd Localized SAX 2015-02-25 20:56:29 +08:00
Milo Yip
ee6ebc4b0f Localized DOM 2015-02-25 13:37:40 +08:00
Milo Yip
c745c953ad Merge pull request #249 from chhitz/pkg-config
RapidJSON.pc.in: include dir not set
2015-02-25 10:28:30 +08:00
Christian Hitz
46554603fc RapidJSON.pc.in: include dir not set
Variable in wrong format is not replaced
2015-02-24 15:35:12 +01:00
Andrii Senkovych
122170b362 Fix definitions for VS compiler 2015-02-23 20:21:07 +02:00
Milo Yip
3804a06032 Merge pull request #241 from yachoor/compilation_fixes
Compilation fixes
2015-02-23 21:30:39 +08:00
Milo Yip
f699772504 Merge pull request #247 from pah/doc/doxygen-mainpage
readme.md: improve build status rendering by Doxygen
2015-02-23 21:29:25 +08:00
Milo Yip
6d7da5dfd7 Merge pull request #248 from pah/fixes/unittest-include-stdexcept
unittest.h: make sure to #include <stdexcept>
2015-02-23 21:29:14 +08:00
Philipp A. Hartmann
8341c413dd unittest.h: make sure to #include <stdexcept>
See https://github.com/miloyip/rapidjson/commit/a2a0d161#commitcomment-9838110
2015-02-20 20:29:31 +01:00
Philipp A. Hartmann
3735542cc2 readme.md: improve build status rendering by Doxygen
Doxygen currently does not support images with links, which breaks the
current rendering of the front page at https://miloyip.github.io/rapidjson.

Move the status badges to a table with the links in the top-row instead.

While at it, add a description below the logo and put the GitHub and
documentation links into in itemisation.
2015-02-20 19:38:52 +01:00
Milo Yip
bb84ff2ffe Merge pull request #245 from pah/fixes/trailing-comma
error.h: drop trailing comma in enum
2015-02-20 16:29:49 +08:00
Philipp A. Hartmann
a7319330cb error.h: drop trailing comma in enum
In C++'98/03, trailing commas in enumerations are not allowed, but have
been introduced in C++11. This patch drops the trailing commas in order
to avoid compiler warnings (e.g. GCC with -pedantic).

See #9 and http://code.google.com/p/rapidjson/issues/detail?id=49 for
previous instances of this issue.
2015-02-20 08:15:20 +01:00
Andrii Senkovych
553dc0a8b0 Add a workaround for valgrind bug. Refs: #171, #240 2015-02-19 18:27:52 +02:00
Andrii Senkovych
aa0fdd3b0d Cleaning up gitignore. Refs #240. 2015-02-19 18:27:52 +02:00
Andrii Senkovych
3ae2a29986 Backport compiler options from premake configuration. Refs #240. 2015-02-19 18:25:40 +02:00