| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
json-gvariant: Stop string to GVariant conversion failing due to unrelated errno changes
See merge request GNOME/json-glib!24
|
|/
|
|
|
|
|
|
|
|
| |
errno changes
This was observed as failing due to some codepath inside g_variant_new_string
setting errno to EAGAIN. Json Glib was erroneously detecting this in the checks
designed to catch string to integer conversions.
Solved by making errno only checked after the integer conversions.
|
|
|
|
|
|
| |
All the build environments know how to build with Meson, now.
(cherry picked from commit c34dfe25fc56e6683e149e51849c137a31df8d8e)
|
|
|
|
|
| |
The `docs` option only controls the build of the API reference; for the
man pages, there's the `man` option.
|
| |
|
| |
|
|
|
|
|
| |
Instead of having a single option for both API reference and tools
documentation.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(cherry picked from commit 00f15c780ec4e126a33a5c526c071edb2699bc3c)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
| |
Meson doesn’t use it, and Damned Lies learned to read po/meson.build.
(cherry picked from commit 82d98e666d5dda511a35b601fd7bbbc095caada5)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
|
|
| |
We can’t do this by porting to g_autoptr(), because json-glib needs to
be buildable using MSVC. Sad panda.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/json-glib/issues/30
(cherry picked from commit 43b9703970a6d5f2fc53f828ab8d29195ab01583)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
|
|
| |
Small leak. With some additional fixes to the tests themselves, this
makes all the tests run valgrind-clean. (See the following commit.)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/json-glib/issues/30
(cherry picked from commit 96d591b5708ef9dfb4c02d2ae39b891f903d8a58)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If parsing an empty document, it’s allowed to return NULL from
json_parser_get_root(). This was broken for immutable parsers when
immutability support was added (an assertion fails). Fix that, and also
document that json_parser_get_root() may return NULL.
Do the same for json_parser_steal_root() too, which is another way that
the root node may be NULL.
Add a unit test.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
(cherry picked from commit ef5707cd0b8d1a1a4ab4edf9ae58c7b3176ef93b)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Despite my efforts in commit 011c1e424b7 (parts of which were completely
incorrect), the JsonNode documentation still wasn’t particularly helpful
about differentiating between methods which return NULL if the JsonNode
is not of the right type, and methods which emit a critical warning.
Try and improve that across the board, hopefully without saying
blatantly incorrect things this time.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
(cherry picked from commit acb22e9e18c2a5bf93ed82af4d8194341acfdc01)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
|
|
|
| |
json_node_unref was added after the autoptr macros were written.
This fixes an assertion failure if using autoptr and json_node_ref.
(cherry picked from commit 0df2466103ff706e980e82cd560232fdd2ba1baa)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
| |
(cherry picked from commit b577c363c501116bffa08af27090e38d74b430c6)
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
| |
|
|\
| |
| |
| |
| |
| |
| | |
Use fuzzy comparisons for floating point values
Closes #27 and #28
See merge request GNOME/json-glib!2
|
| |
| |
| |
| |
| |
| | |
Direct comparison should never be used for floating point values.
Fixes #27 and #28.
|
|/
|
|
|
| |
We do compare floating point values elsewhere in our code, so we should
ensure that we're doing that with a certain amount of fuzziness.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Literally no change, but the tarball generated for 1.4.0 and pushed to
download.gnome.org comes from a different commit because I jumped the
gun.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Changes since 1.3.2:
- Update the linker flags on macOS [#785053]
- Change the build configuration options to better fit with Meson
Translation updates:
Czech, Galician, Serbian, Catalan, Nepali, Italian, Latvian,
Brazilian Portuguese, Korean, Slovak, Turkish, Basque, Danish
|
|
|
|
|
| |
Drop the Autotool-isms, and use something more in line with what Meson
expects for configuration options.
|
| |
|
| |
|
| |
|
|
|
|
| |
Drop mentions of Bugzilla: we moved all our open bugs to GitLab.
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of using `disable_introspection=false`, flip the condition
around, and use `enable-introspection=true`. This avoids the double
negative.
Additionally, we should drop the cross-compilation check; it's entirely
possible to cross-compile introspection data for different platforms and
architectures; this allows the Yocto project to drop a patch for
JSON-GLib.
|
|
|
|
|
|
| |
Use the interface and binary ages to define the current version.
https://bugzilla.gnome.org/show_bug.cgi?id=785053
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Changes from 1.2.8:
• Use Meson as the only build system
• #773504 - Avoid extra allocations [Garrett Regier]
• #780550 - meson error looking for python3 [Daniele Forghieri]
• #769206 - docs: Clarify when NULL might be returned [Matthew Leeds]
• #766281 - utils/json_from_string: Don't reset user-provided error
argument [Heinrich Fink]
• #758580 - json_reader_is_value returns TRUE for null type but
json_reader_get_value throws an error [Robert Ancell]
• #768788 - Incorrect account of jsonPath syntax in doc [Allin Cottrell]
• #774688 - json_from_string() could be optimized to avoid copying the
root node [Ole André Vadla Ravnås]
|
|\
| |
| |
| |
| | |
Add minimal .gitlab-ci.yml file
See merge request !1
|