summaryrefslogtreecommitdiff
path: root/src/buffer.cc
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2019-11-13 09:54:17 +0100
committerFrank LENORMAND <lenormf@gmail.com>2019-11-17 09:27:46 +0100
commit7cdbe1d3d24c1cc13bd7cbc3fe252f1e88747ffb (patch)
tree3d1bc2cb81cb4c9623bd18a0dcc9fc607fa8db53 /src/buffer.cc
parenta7d3976a1002a80c4e5a17c989921025ded89450 (diff)
src: Move JSON parsing code to its own file
The `json_ui.cc` file contained both data-parsing and UI-related code. This commit moves the JSON parsing code to its own `json.cc` file, to separate concerns, make compilation faster when changes are made to either UI or parsing code, and make the parsing code more accessible to fuzzers. The signature of the following function: ``` auto parse_json(StringView json); ``` was changed to: ``` JsonResult parse_json(StringView json); ``` to avoid `auto` deduction issues at compile-time.
Diffstat (limited to 'src/buffer.cc')
0 files changed, 0 insertions, 0 deletions