Milo Yip
563e3d9d69
Merge pull request #37 from miloyip/TravisSetting2
...
Adds Valgrind memcheck process to Tavis CI
2014-07-01 09:39:21 +08:00
Milo Yip
93e1488c7b
Run valgrind in second pass to get exit code correctly
2014-06-30 23:54:47 +08:00
Milo Yip
e3330d15c0
Install valgrind
2014-06-30 23:46:34 +08:00
Milo Yip
a2abe212a1
test Valgrind
2014-06-30 23:32:48 +08:00
Milo Yip
1acfc21684
Merge pull request #34 from miloyip/SmallFloatingPoint
...
Fixes parsing small floating point values underflow
2014-06-30 21:46:34 +08:00
Milo Yip
4843b790c0
Remove debug code
2014-06-30 21:28:57 +08:00
Milo Yip
10924e389c
Fixes parsing small floating point values underflow
...
https://code.google.com/p/rapidjson/issues/detail?id=75
The modification is slightly different from dlbattle123 to improve
speed.
2014-06-30 21:26:43 +08:00
Milo Yip
2e156ccacd
Merge pull request #33 from miloyip/MoveStructMember
...
Fixes IBM XL C/C++ for AIX issue
2014-06-30 19:13:03 +08:00
miloyip
a9356c09c0
Fixes IBM XL C/C++ for AIX issue
...
Move rapidjson::GenericValue::Member to rapidjson::GenericMember
https://code.google.com/p/rapidjson/issues/detail?id=64
2014-06-30 19:07:58 +08:00
Milo Yip
a2240e26ab
Fixes premake.sh
...
Add interpreter
Change line endings
Fixes https://code.google.com/p/rapidjson/issues/detail?id=54
2014-06-30 18:26:46 +08:00
Milo Yip
ba5e27a007
Update readme.md
2014-06-30 14:06:40 +08:00
Milo Yip
8e6da6bdff
Update readme.md
...
rapidjson -> RapidJSON
2014-06-30 14:02:30 +08:00
Milo Yip
9b8424a6b0
Update performance.md
2014-06-30 14:00:10 +08:00
Milo Yip
c2971cf953
Update performance.md
2014-06-30 13:58:58 +08:00
Milo Yip
177ba6e7f8
Create performance.md
2014-06-30 13:58:11 +08:00
miloyip
a1ce06a187
Fixes vs2010 warning about INT64_C()
2014-06-30 10:18:14 +08:00
Milo Yip
ba50fe7dc8
Merge pull request #27 from miloyip/issue23errorcode
...
Issue23errorcode
2014-06-30 09:58:40 +08:00
miloyip
389fe87cd8
Merge branch 'master' into issue23errorcode
...
Conflicts:
example/condense/condense.cpp
include/rapidjson/reader.h
test/unittest/readertest.cpp
2014-06-30 09:44:24 +08:00
Milo Yip
d8ed60956b
Merge pull request #32 from miloyip/issue30streamcopy
...
Make stream local copy optimization as trait option per stream type
2014-06-29 21:58:35 +08:00
Milo Yip
8e76a9dcce
Fixes compilation error
...
need ‘typename’ before
‘rapidjson::StreamTraits<InputStream>::StreamCopyType
2014-06-29 21:24:15 +08:00
Milo Yip
789761ae1b
Fixes compilation error
...
‘>>’ should be ‘> >’ within a nested template argument list
2014-06-29 21:18:31 +08:00
Milo Yip
bcf7cee788
Add stream copying optimization switch depending stream type.
...
An unit test is added
2014-06-29 20:59:01 +08:00
Milo Yip
6f7d6642ef
Turn off -Weverything for Travis.
2014-06-29 16:50:26 +08:00
Milo Yip
8bdf58a725
Let travis to build perftest and example, and run perftest.
2014-06-29 16:42:11 +08:00
Milo Yip
c4a4acc6c7
Merge pull request #29 from miloyip/DefaultFlag
...
Added overloaded functions for default parseFlags
2014-06-29 16:37:18 +08:00
Milo Yip
0f478f96cc
Update features.md
2014-06-29 16:35:16 +08:00
Milo Yip
718e9fe9d9
Update features.md
2014-06-29 16:34:53 +08:00
Milo Yip
21b8d22575
Update readme.md
2014-06-29 16:30:55 +08:00
Milo Yip
3ef2a6bbce
Update features.md
2014-06-29 16:25:08 +08:00
Milo Yip
a75c8f9b3a
Create features.md
2014-06-29 16:03:33 +08:00
Milo Yip
1d14748bc9
Added overloaded functions for default parseFlags
...
Can write d.Parse(...) instead of d.Parse<0>(...)
Hope to reduce strangeness and confusion for beginner.
2014-06-29 15:03:38 +08:00
Milo Yip
6f306755d5
Minor adjustment to simpledom example
...
Showing the type Value and preventing member lookup twice.
2014-06-29 14:18:33 +08:00
Milo Yip
8a959c3898
Fixes comment mistakes
2014-06-28 20:37:22 +08:00
Milo Yip
331c4cf500
Update readme.md
...
Fixes image path
2014-06-28 19:47:11 +08:00
Milo Yip
cd144c3cfd
Added a simple example and a diagram showing the process.
2014-06-28 19:44:11 +08:00
Milo Yip
c14c5ff236
Documentation on error related files and include dependent header.
2014-06-27 22:43:21 +08:00
Milo Yip
69ca7487bc
Manually merge the segfault fix from main branch and fix several unit tests about error code
2014-06-27 22:27:18 +08:00
Milo Yip
b0059483c8
Error can only be assigned once
2014-06-27 22:13:02 +08:00
Milo Yip
b2b12a6367
Merge pull request #26 from pah/fixes/errorreturn-castqual
...
Fix segfault and build error on Linux
2014-06-27 21:18:01 +08:00
Philipp A. Hartmann
0277ebdc3c
document.h: avoid casting away const
...
Another instance of casting away constness via C-style cast
has been missed (introduced by #20 ).
2014-06-27 10:27:35 +02:00
Philipp A. Hartmann
be01d3d7cc
fix build on travis-ci.org
...
Some early returns were missing after the removal of longjmp in #22 .
This has led to segfaults on Linux (confirmed locally).
2014-06-27 10:26:37 +02:00
Milo Yip
bb889b6ab6
Verify all error codes in unit tests of parsing.
2014-06-27 16:19:04 +08:00
Milo Yip
b4df717675
Fixes grammar mistakes in error messages.
2014-06-27 16:13:54 +08:00
Milo Yip
fbf29dfc52
Update readme.md
...
minor mistake
2014-06-27 14:02:20 +08:00
Milo Yip
b429a82a1a
Update readme.md
...
Added a paragraph about the unicode features
2014-06-27 13:55:45 +08:00
Milo Yip
3693d61f5a
Add parse error codes and API for converting error code to text.
...
Parse errors is represented as enum type `ParseErrorCode`.
Error texts are optional for user.
Added `GetParseError_En()` in `error/en.h`, user can localize this file
into other files. User may dynamically change the locale in runtime.
2014-06-27 01:53:56 +08:00
Milo Yip
813eaf4e03
Merge pull request #25 from miloyip/issue22setjmp
...
Removal of setjmp()/longjmp()
2014-06-26 23:48:29 +08:00
Milo Yip
a1a8abd0d9
Add safe checks in parsing compound types.
...
Compound types (object and array) call ParseString() and ParseValue()
for key and values. If there is parse errors inside those calls, it
should stop continue parsing. Otherwise, it may be possible to continue
parsing and calling handler incorrectly.
For example, in ["a\u,","b"], \u generates an error (it should follow
but 4 hex digits), the parser continues to treat the first comma as
element separator, and treat "," as a JSON string and call the handler.
It may be unacceptable in the application code.
2014-06-26 23:35:13 +08:00
Milo Yip
3d9dd745a1
Remove setjmp header and jmpbuf member variable
2014-06-26 23:24:16 +08:00
Milo Yip
188b99b471
Clear the stack after parsing and fixes indentation.
2014-06-26 23:14:05 +08:00