summaryrefslogtreecommitdiff
path: root/json-glib/json-glib-format.c
Commit message (Collapse)AuthorAgeFilesLines
* Plug leaks in json-glib-formatEmmanuele Bassi2020-08-241-3/+14
| | | | | We're leaking a bunch of strings in error paths, as well as the stream for the input file.
* Add `--output` option to json-glib-formatEmmanuele Bassi2018-03-131-10/+39
| | | | | | We should allow redirecting the output of the format utility to a file, instead of dumping everything on the standard output. This makes it easier to use json-glib-format inside a build system or a CI pipeline.
* Use Unicode in translatable stringsPiotr Drąg2017-03-181-2/+2
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772753
* format: Silence a compiler warningEmmanuele Bassi2016-02-291-1/+2
|
* tools: Fix build on Visual StudioChun-wei Fan2014-02-071-1/+10
| | | | | | | | | As unistd.h is not universally available, don't include it unconditionally and include the corresponding Windows headers where necessary. Also, use gssize in place of ssize_t and define STDOUT_FILENO on Windows when we don't have unistd.h, which is a constant that is defined in unistd.h. https://bugzilla.gnome.org/show_bug.cgi?id=723813
* Improve consistency in error messagesEmmanuele Bassi2013-10-281-2/+2
| | | | Use the same spacing and formatting rules.
* Add format toolEmmanuele Bassi2013-10-271-0/+211
A simple command line utility to format JSON data; it allows prettifying and unprettifying JSON.