summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/json.cc
Commit message (Collapse)AuthorAgeFilesLines
* Chance function(void) to function()reaverb2014-05-241-3/+3
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-2/+2
|
* Fix lots of typosChris Oelmueller2013-07-231-1/+1
|
* ASSERT_RANGEs other than >= <.Adam Borowski2013-06-081-2/+1
| | | | | | Committing separately as I'm not sure whether checking, for example, ASSERT_RANGE(level, 1, 28) is that nice. Perhaps 27 + 1 could be better? Perhaps some other syntax?
* Refactor ASSERT(a && b) -> ASSERT(a); ASSERT(b);Brendan Hickey2013-04-281-1/+2
| | | | | | | Convert conjunctive assertions into separate assertions. This ought to be correctness preserving. I ran the stress tests and didn't notice anything unusual. While I have confidence in it, if you are the slightest bit suspicious of this, please roll it back. Found instances with `ASSERT(\([^(|]*\) && \([^)|]*\))` Manually inspected each instance.
* Unbreak Webtiles build.Florian Diebold2012-10-231-1/+1
|
* Remove unnecessary includes from header files.Jay3.14152012-10-231-1/+1
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Fatal conditions should be fatal.Adam Borowski2012-03-281-4/+5
| | | | Not that anyone builds Crawl with assertions off, though.
* Reformat json.cc to Crawl's standards, do backtraces on assert failures.Adam Borowski2012-03-281-926/+1017
|
* Add a JSON parser for Webtiles.Florian Diebold2011-12-081-0/+1381
It's from the CCAN at http://ccodearchive.net/info/json.html; I mainly chose this one because it's very simple (only one file) and has an acceptable API.