platform/upstream/jsoncpp.git
9 years agohelp rebasing 1.4.2
Christopher Dunn [Sun, 15 Feb 2015 09:01:26 +0000 (03:01 -0600)]
help rebasing

9 years ago1.4.2 < 1.4.1
Christopher Dunn [Sun, 15 Feb 2015 08:49:30 +0000 (02:49 -0600)]
1.4.2 < 1.4.1

* Bug-fix for ValueIterator::operator-() (issue #169)

9 years agoMerge pull request #172 from cdunn2001/master
Christopher Dunn [Sun, 15 Feb 2015 08:44:17 +0000 (02:44 -0600)]
Merge pull request #172 from cdunn2001/master

Fix bug in ValueIteratorBase::operator-

Fixes #169.

9 years agoreverse sense for CPPTL too
Christopher Dunn [Sun, 15 Feb 2015 08:31:17 +0000 (02:31 -0600)]
reverse sense for CPPTL too

9 years agoFix bug in ValueIteratorBase::operator-
Kevin Grant [Sun, 15 Feb 2015 04:53:35 +0000 (20:53 -0800)]
Fix bug in ValueIteratorBase::operator-

9 years agoIteratorTest
Christopher Dunn [Sun, 15 Feb 2015 08:38:20 +0000 (02:38 -0600)]
IteratorTest

9 years agorules for signing and doc-generation
Christopher Dunn [Fri, 13 Feb 2015 17:24:35 +0000 (11:24 -0600)]
rules for signing and doc-generation

9 years ago1.4.1 <- 1.4.0 1.4.1
Christopher Dunn [Fri, 13 Feb 2015 16:00:38 +0000 (10:00 -0600)]
1.4.1 <- 1.4.0

9 years agoMerge pull request #167 from cdunn2001/fail-if-extra
Christopher Dunn [Fri, 13 Feb 2015 15:55:11 +0000 (09:55 -0600)]
Merge pull request #167 from cdunn2001/fail-if-extra

Add `failIfExtra` feature to `CharReaderBuilder`.

9 years agofailIfExtra
Christopher Dunn [Thu, 12 Feb 2015 18:34:23 +0000 (12:34 -0600)]
failIfExtra

1. failing regression tests, from #164 and #107
2. implemented; tests pass
3. allow trailing comments

9 years agocomments/minor typos
Christopher Dunn [Fri, 13 Feb 2015 15:37:39 +0000 (09:37 -0600)]
comments/minor typos

9 years agolink web docs
Christopher Dunn [Thu, 12 Feb 2015 17:18:23 +0000 (11:18 -0600)]
link web docs

9 years agostop calling validate() in newReader/Writer() 1.4.0
Christopher Dunn [Wed, 11 Feb 2015 17:15:32 +0000 (11:15 -0600)]
stop calling validate() in newReader/Writer()

By not calling validate(), we can add
non-invasive features which will be simply ignored when user-code
is compiled against an old version. That way, we can often
avoid a minor version-bump.

The user can call validate() himself if he prefers that behavior.

9 years agoMerge pull request #166 from cdunn2001/stackLimit
Christopher Dunn [Wed, 11 Feb 2015 16:35:16 +0000 (10:35 -0600)]
Merge pull request #166 from cdunn2001/stackLimit

Fixes #88 and #56.

9 years agolimit stackDepth for old (deprecated) Json::Reader too
Christopher Dunn [Wed, 11 Feb 2015 16:20:53 +0000 (10:20 -0600)]
limit stackDepth for old (deprecated) Json::Reader too

This is an improper solution. If multiple Readers exist,
then the effect stackLimit is reduced because of side-effects.
But our options are limited. We need to address the security
hole without breaking binary-compatibility.

However, this is not likely to cause any practical problems because:

* Anyone using `operator>>(istream, Json::Value)` will be using the
new code already
* Multiple Readers are uncommon.
* The stackLimit is quite high.
* Deeply nested JSON probably would have hit the system limits anyway.

9 years agolimit stackDepth
Christopher Dunn [Wed, 11 Feb 2015 15:44:02 +0000 (09:44 -0600)]
limit stackDepth

9 years agostackLimit
Christopher Dunn [Tue, 10 Feb 2015 18:16:03 +0000 (12:16 -0600)]
stackLimit

9 years agostackLimit_
Christopher Dunn [Wed, 11 Feb 2015 15:49:11 +0000 (09:49 -0600)]
stackLimit_

9 years agotest stackLimit
Christopher Dunn [Wed, 11 Feb 2015 16:01:47 +0000 (10:01 -0600)]
test stackLimit

9 years agoOld -> Our
Christopher Dunn [Wed, 11 Feb 2015 15:35:52 +0000 (09:35 -0600)]
Old -> Our

9 years ago1st StreamWriterTest
Christopher Dunn [Wed, 11 Feb 2015 05:29:14 +0000 (23:29 -0600)]
1st StreamWriterTest

9 years agoclarify comments
Christopher Dunn [Wed, 11 Feb 2015 05:03:27 +0000 (23:03 -0600)]
clarify comments

And throw instead of return null for invalid settings.

9 years agoMerge pull request #165 from cdunn2001/master
Christopher Dunn [Wed, 11 Feb 2015 04:45:32 +0000 (22:45 -0600)]
Merge pull request #165 from cdunn2001/master

Remove some experimental classes that are not needed for 1.4.0. This also helps 0.8.0 binary compatibility with 0.6.0-rc2.

9 years agodrop experimental OldCompressingStreamWriterBuilder
Christopher Dunn [Wed, 11 Feb 2015 03:29:35 +0000 (21:29 -0600)]
drop experimental OldCompressingStreamWriterBuilder

9 years agoenableYAMLCompatibility and dropNullPlaceholders for StreamWriterBuilder
Christopher Dunn [Wed, 11 Feb 2015 03:15:43 +0000 (21:15 -0600)]
enableYAMLCompatibility and dropNullPlaceholders for StreamWriterBuilder

9 years agonullRef, since we had to add that kludge to 0.8.0
Christopher Dunn [Wed, 11 Feb 2015 02:45:42 +0000 (20:45 -0600)]
nullRef, since we had to add that kludge to 0.8.0

9 years agocopy Features to OldFeatures
Christopher Dunn [Tue, 10 Feb 2015 23:00:34 +0000 (17:00 -0600)]
copy Features to OldFeatures

9 years agopasses
Christopher Dunn [Tue, 10 Feb 2015 22:56:49 +0000 (16:56 -0600)]
passes

9 years agocopy Reader impl to OldReader
Christopher Dunn [Tue, 10 Feb 2015 22:50:52 +0000 (16:50 -0600)]
copy Reader impl to OldReader

9 years agorenames for OldReader
Christopher Dunn [Tue, 10 Feb 2015 22:44:14 +0000 (16:44 -0600)]
renames for OldReader

9 years agoOldReader copied from Reader
Christopher Dunn [Tue, 10 Feb 2015 22:41:19 +0000 (16:41 -0600)]
OldReader copied from Reader

9 years agoMerge pull request #163 from cdunn2001/master
Christopher Dunn [Tue, 10 Feb 2015 00:55:55 +0000 (18:55 -0600)]
Merge pull request #163 from cdunn2001/master

Reimplement the new Builders.

Issue #131.

9 years agomv CommentStyle to .cpp
Christopher Dunn [Tue, 10 Feb 2015 00:48:45 +0000 (18:48 -0600)]
mv CommentStyle to .cpp

9 years agoset output stream in write(), not in builder
Christopher Dunn [Tue, 10 Feb 2015 00:44:53 +0000 (18:44 -0600)]
set output stream in write(), not in builder

9 years ago<stdexcept>
Christopher Dunn [Tue, 10 Feb 2015 00:29:11 +0000 (18:29 -0600)]
<stdexcept>

9 years agoadd all features
Christopher Dunn [Tue, 10 Feb 2015 00:24:56 +0000 (18:24 -0600)]
add all features

9 years agoremark defaults via doxygen snippet
Christopher Dunn [Tue, 10 Feb 2015 00:16:24 +0000 (18:16 -0600)]
remark defaults via doxygen snippet

9 years agoBuilder::settings_
Christopher Dunn [Mon, 9 Feb 2015 23:22:28 +0000 (17:22 -0600)]
Builder::settings_

We use Json::Value to configure the builders so we can maintain
binary-compatibility easily.

9 years agoupdate docs, writeString()
Christopher Dunn [Mon, 9 Feb 2015 21:25:57 +0000 (15:25 -0600)]
update docs, writeString()

9 years agoMerge pull request #162 from cdunn2001/master
Christopher Dunn [Mon, 9 Feb 2015 17:55:54 +0000 (11:55 -0600)]
Merge pull request #162 from cdunn2001/master

Deprecate the new Builders.

9 years agodeprecate current Builders
Christopher Dunn [Mon, 9 Feb 2015 17:51:06 +0000 (11:51 -0600)]
deprecate current Builders

9 years agodeprecate Builders
Christopher Dunn [Mon, 9 Feb 2015 17:46:25 +0000 (11:46 -0600)]
deprecate Builders

see issue #131

9 years agodeprecate old Reader; separate Advanced Usage section
Christopher Dunn [Mon, 9 Feb 2015 17:15:39 +0000 (11:15 -0600)]
deprecate old Reader; separate Advanced Usage section

9 years ago--in=doc/web_doxyfile.in
Christopher Dunn [Mon, 9 Feb 2015 17:15:11 +0000 (11:15 -0600)]
--in=doc/web_doxyfile.in

9 years agocopy doxyfile.in
Christopher Dunn [Mon, 9 Feb 2015 16:36:55 +0000 (10:36 -0600)]
copy doxyfile.in

9 years agodrop an old impl
Christopher Dunn [Mon, 9 Feb 2015 15:54:26 +0000 (09:54 -0600)]
drop an old impl

9 years agosimplify basic docs
Christopher Dunn [Mon, 9 Feb 2015 15:44:26 +0000 (09:44 -0600)]
simplify basic docs

9 years agoclarify Builders
Christopher Dunn [Mon, 9 Feb 2015 07:29:43 +0000 (01:29 -0600)]
clarify Builders

9 years agoput version into docs
Christopher Dunn [Mon, 9 Feb 2015 06:46:20 +0000 (00:46 -0600)]
put version into docs

9 years agoMerge pull request #161 from cdunn2001/master
Christopher Dunn [Sun, 8 Feb 2015 19:25:08 +0000 (13:25 -0600)]
Merge pull request #161 from cdunn2001/master

CharReader/Builder

I guess we should but the patch-level version. We will set the version properly soon...

9 years agoCharReader/Builder
Christopher Dunn [Thu, 29 Jan 2015 20:29:40 +0000 (14:29 -0600)]
CharReader/Builder

* CharReaderBuilder is similar to StreamWriterBuilder.
* use rdbuf(), since getline(string) is not required to handle EOF as delimiter

9 years agoMerge pull request #160 from cdunn2001/master
Christopher Dunn [Sun, 8 Feb 2015 19:10:18 +0000 (13:10 -0600)]
Merge pull request #160 from cdunn2001/master

rm unique_ptr<>/shared_ptr<>, for pre-C++11

9 years agorm unique_ptr<>/shared_ptr<>, for pre-C++11
Christopher Dunn [Sun, 8 Feb 2015 17:29:52 +0000 (11:29 -0600)]
rm unique_ptr<>/shared_ptr<>, for pre-C++11

9 years agoMerge pull request #158 from cdunn2001/travis-with-cmake-package
Christopher Dunn [Sat, 7 Feb 2015 18:24:58 +0000 (12:24 -0600)]
Merge pull request #158 from cdunn2001/travis-with-cmake-package

JSONCPP_WITH_CMAKE_PACKAGE in Travis

I guess we don't really need to shared and static separately either. Saves a little time, maybe?

9 years agoJSONCPP_WITH_CMAKE_PACKAGE in Travis
Christopher Dunn [Sat, 7 Feb 2015 18:18:20 +0000 (12:18 -0600)]
JSONCPP_WITH_CMAKE_PACKAGE in Travis

9 years agoMerge pull request #156 from cdunn2001/with-cmake-package
Christopher Dunn [Sat, 7 Feb 2015 17:44:24 +0000 (11:44 -0600)]
Merge pull request #156 from cdunn2001/with-cmake-package

fix JSONCPP_WITH_CMAKE_PACKAGE #155

9 years agofix JSONCPP_WITH_CMAKE_PACKAGE #155
Christopher Dunn [Sat, 7 Feb 2015 17:34:40 +0000 (11:34 -0600)]
fix JSONCPP_WITH_CMAKE_PACKAGE #155

mv JSONCPP_WITH_CMAKE_PACKAGE ahead of INSTALL def.

9 years agodrop nullptr
Christopher Dunn [Mon, 2 Feb 2015 21:32:33 +0000 (15:32 -0600)]
drop nullptr

See issue #153.

9 years agodrop scoped enum, for pre-C++11 compatibility
Christopher Dunn [Thu, 29 Jan 2015 18:57:02 +0000 (12:57 -0600)]
drop scoped enum, for pre-C++11 compatibility

9 years agoadded cmake option to build static and shared libraries at once
Peter Spiess-Knafl [Tue, 27 Jan 2015 20:01:42 +0000 (20:01 +0000)]
added cmake option to build static and shared libraries at once

See #147 and #149.

9 years agodocs
Christopher Dunn [Mon, 26 Jan 2015 17:23:31 +0000 (11:23 -0600)]
docs

9 years agoMerge pull request #145 from cdunn2001/simplify-builder
Christopher Dunn [Mon, 26 Jan 2015 17:33:16 +0000 (11:33 -0600)]
Merge pull request #145 from cdunn2001/simplify-builder

Simplify builder

9 years agogcc-4.6 (Travis CI) does not support
Christopher Dunn [Mon, 26 Jan 2015 17:17:42 +0000 (11:17 -0600)]
gcc-4.6 (Travis CI) does not support

9 years agodocs
Christopher Dunn [Mon, 26 Jan 2015 17:12:53 +0000 (11:12 -0600)]
docs

9 years agofix doc
Christopher Dunn [Mon, 26 Jan 2015 17:04:03 +0000 (11:04 -0600)]
fix doc

9 years agomake StreamWriterBuilder concrete
Christopher Dunn [Mon, 26 Jan 2015 17:01:15 +0000 (11:01 -0600)]
make StreamWriterBuilder concrete

9 years agoMove old FastWriter stuff out of new Builder
Christopher Dunn [Mon, 26 Jan 2015 16:43:39 +0000 (10:43 -0600)]
Move old FastWriter stuff out of new Builder

9 years agoOldCompressingStreamWriterBuilder
Christopher Dunn [Mon, 26 Jan 2015 16:35:54 +0000 (10:35 -0600)]
OldCompressingStreamWriterBuilder

9 years agoimprove docs
Christopher Dunn [Mon, 26 Jan 2015 01:20:43 +0000 (19:20 -0600)]
improve docs

including `writeString()`

9 years agoMerge pull request #132 from cdunn2001/builder
Christopher Dunn [Mon, 26 Jan 2015 00:52:09 +0000 (18:52 -0600)]
Merge pull request #132 from cdunn2001/builder

StreamWriter::Builder

Deprecate old Writers, but include them in tests.

This should still be binary-compatible with 1.3.0.

9 years agodeprecate old Writers
Christopher Dunn [Mon, 26 Jan 2015 00:45:59 +0000 (18:45 -0600)]
deprecate old Writers

also, use withers instead of setters, and update docs

9 years agoimplement strange setting from FastWriter
Christopher Dunn [Mon, 26 Jan 2015 00:15:54 +0000 (18:15 -0600)]
implement strange setting from FastWriter

9 years agoimplement CommentStyle::None/indentation_==""
Christopher Dunn [Sun, 25 Jan 2015 23:32:11 +0000 (17:32 -0600)]
implement CommentStyle::None/indentation_==""

9 years agodefault \t indentation, All comments
Christopher Dunn [Sun, 25 Jan 2015 22:01:59 +0000 (16:01 -0600)]
default \t indentation, All comments

9 years agoincorporate 'proper newlines for comments' into new StreamWriter
Christopher Dunn [Sun, 25 Jan 2015 21:46:33 +0000 (15:46 -0600)]
incorporate 'proper newlines for comments' into new StreamWriter

9 years agoclarify CommentStyle
Christopher Dunn [Sat, 24 Jan 2015 19:57:29 +0000 (13:57 -0600)]
clarify CommentStyle

9 years agodrop StreamWriterBuilderFactory, for now
Christopher Dunn [Sat, 24 Jan 2015 19:54:28 +0000 (13:54 -0600)]
drop StreamWriterBuilderFactory, for now

9 years agocopy fixes from StyledStreamWriter
Christopher Dunn [Fri, 23 Jan 2015 20:49:17 +0000 (14:49 -0600)]
copy fixes from StyledStreamWriter

9 years agotest BuiltStyledStreamWriter too
Christopher Dunn [Fri, 23 Jan 2015 20:39:57 +0000 (14:39 -0600)]
test BuiltStyledStreamWriter too

9 years agoconst stuff
Christopher Dunn [Fri, 23 Jan 2015 14:38:32 +0000 (08:38 -0600)]
const stuff

9 years agonon-const write
Christopher Dunn [Fri, 23 Jan 2015 13:51:40 +0000 (07:51 -0600)]
non-const write

9 years agocopied impl of StyledStreamWriter
Christopher Dunn [Fri, 23 Jan 2015 13:33:01 +0000 (07:33 -0600)]
copied impl of StyledStreamWriter

9 years agofix comment
Christopher Dunn [Fri, 23 Jan 2015 13:11:06 +0000 (07:11 -0600)]
fix comment

9 years agouse new BuiltStyledStreamWriter in operator<<()
Christopher Dunn [Thu, 22 Jan 2015 22:10:10 +0000 (16:10 -0600)]
use new BuiltStyledStreamWriter in operator<<()

9 years agosetIndentation()
Christopher Dunn [Thu, 22 Jan 2015 22:08:21 +0000 (16:08 -0600)]
setIndentation()

9 years agoStreamWriter::Builder
Christopher Dunn [Thu, 22 Jan 2015 21:25:30 +0000 (15:25 -0600)]
StreamWriter::Builder

9 years agoStreamWriter
Christopher Dunn [Thu, 22 Jan 2015 20:31:32 +0000 (14:31 -0600)]
StreamWriter

9 years agoupdate docs
Christopher Dunn [Sun, 25 Jan 2015 18:19:30 +0000 (12:19 -0600)]
update docs

9 years agoadd back space before trailing comment
Christopher Dunn [Sun, 25 Jan 2015 21:49:02 +0000 (15:49 -0600)]
add back space before trailing comment

9 years agoMerge pull request #144 from cdunn2001/proper-comment-lfs
Christopher Dunn [Sun, 25 Jan 2015 21:10:38 +0000 (15:10 -0600)]
Merge pull request #144 from cdunn2001/proper-comment-lfs

proper newlines for comments

This alters `StyledStreamWriter`, but not `StyledWriter`.

9 years agoproper newlines for comments
Christopher Dunn [Sun, 25 Jan 2015 19:25:58 +0000 (13:25 -0600)]
proper newlines for comments

The logic is still messy, but it seems to work.

9 years agoMerge pull request #143 from cdunn2001/rm-trailing-newlines
Christopher Dunn [Sun, 25 Jan 2015 20:35:24 +0000 (14:35 -0600)]
Merge pull request #143 from cdunn2001/rm-trailing-newlines

rm trailing newlines for *all* comments

9 years agorm trailing newlines for *all* comments
Christopher Dunn [Sun, 25 Jan 2015 20:16:13 +0000 (14:16 -0600)]
rm trailing newlines for *all* comments

This will make it easier to fix newlines consistently.

9 years agoMerge pull request #141 from cdunn2001/set-comment
Christopher Dunn [Sun, 25 Jan 2015 17:37:02 +0000 (11:37 -0600)]
Merge pull request #141 from cdunn2001/set-comment

Fix a border case which causes Value::CommentInfo::setComment() to crash

9 years agoFix a border case which causes Value::CommentInfo::setComment() to crash
datadiode [Sun, 25 Jan 2015 10:01:22 +0000 (11:01 +0100)]
Fix a border case which causes Value::CommentInfo::setComment() to crash

re: pull #140

9 years agoTravisCI gcc-4.6 does not yet support -Wpedantic
Christopher Dunn [Sun, 25 Jan 2015 16:34:49 +0000 (10:34 -0600)]
TravisCI gcc-4.6 does not yet support -Wpedantic

9 years agoMerge pull request #139 from cdunn2001/some-python-changes
Christopher Dunn [Sat, 24 Jan 2015 22:24:12 +0000 (16:24 -0600)]
Merge pull request #139 from cdunn2001/some-python-changes

Some python changes.

* Better messaging.
* Make `doxybuild.py` work with python3.4

9 years agoREADME.md
Christopher Dunn [Sat, 24 Jan 2015 21:43:23 +0000 (15:43 -0600)]
README.md

9 years agomake doxybuild.py work with python3.4
Christopher Dunn [Sat, 24 Jan 2015 22:20:25 +0000 (16:20 -0600)]
make doxybuild.py work with python3.4

9 years agoDoxybuild: Error message if doxygen not found
Florian Meier [Sat, 24 Jan 2015 21:48:38 +0000 (15:48 -0600)]
Doxybuild: Error message if doxygen not found

This patch introduces a better error message.

See discussion at pull #129.