Menu

Code Commit Log


Commit Date  
[r278] by christopherdunn

Comment reading/write improvements

This patch fixes some aspects of reading and writing comments:
- Multiple C++-style comments before a Json value had extra newlines appended to them. This patch removes the addition of those newlines.
- Comments written before Json values in the StyledWriter were not indented to match the indentation level of the value. This patch adds indentation to comments.
- Fixed inconsistency in newlines following C- and C++-style comments being saved as part of the comment. All newlines at the end of a comment are now removed.
- Added an additional test of comments.

https://sourceforge.net/p/jsoncpp/patches/25/

2014-04-19 21:19:24 Tree
[r277] by christopherdunn

JSON_ASSERT -> JSON_ASSERT_MESSAGE

This way, assertions can produce exceptions.
https://sourceforge.net/p/jsoncpp/bugs/67/

2014-04-19 06:37:23 Tree
[r276] by aaronjacobs

Added missing includes for std::istream.

Thanks to Quentin Fiard for the report.

2014-01-29 00:13:38 Tree
[r275] by blep

Fixed broken build on VS 2012

2013-09-23 14:10:39 Tree
[r274] by aaronjacobs

Fixed some snprintf-related build breakages in Visual Studio.

2013-08-08 23:08:28 Tree
[r273] by aaronjacobs

Updated two calls to sprintf that I missed in r269.

2013-08-08 00:39:32 Tree
[r272] by aaronjacobs

Replaced the complex implementation of valueToString(double).

The previous one was confusing and prone to buffer overflows, and didn't
work correctly with 16-decimal-digit numbers. The new one simply uses
snprintf with a standard format string.

The major change is that we don't always print a decimal point now.
Fortunately, JSON doesn't distinguish between integers and reals.

2013-08-08 00:39:12 Tree
[r271] by aaronjacobs

Added more floating point tests.

The first demonstrates a bug that I will soon fix.

2013-08-08 00:37:39 Tree
[r270] by aaronjacobs

Added further floating point tests.

2013-08-08 00:13:10 Tree
[r269] by aaronjacobs

Switched away from sprintf, which is prone to buffer overflows.

Most reasonable platforms have this function. If you're here because
this broke the build for you, consider adding an ifdef for your platform
and using sprintf there (but not on other platforms).

2013-08-06 23:12:56 Tree
Older >
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.