| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Fixes #67
|
|\
| |
| |
| |
| | |
Document behaviour for deserializing `construct-only` properties
See merge request GNOME/json-glib!48
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
The test suite for JSON-GLib was written back when we only had
gtester-report and freeform verbose test output. These days, we expect
everything to conform to the Test Anything Protocol (TAP), which has
specific constraints on the output format.
|
|\ \
| | |
| | |
| | |
| | | |
fix deserialize data memory leak
See merge request GNOME/json-glib!51
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
builder: Don't leak memory if json_builder_get_root fails sanity check
See merge request GNOME/json-glib!46
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Coverity noticed a leak in json_builder_get_root that can't happen
in practice. Namely, if internal state gets screwed up and runtime checks
are enabled, json_builder_get_root may return NULL without freeing a copy of the
builder root it just made.
This is because of a g_return_val_if_fail call to bail early if an
internal consistency sanity check fails.
This commit addresses the coverity complaint by using g_assert instead
of g_return_val_if_fail for this sanity check, and other similar
sanity checks, in the code.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This can be useful to extract a sub json structure
during parsing of another (for example when we don't
know in advance the format of this sub json and just
want to pass it to another consumer).
Closes #9
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
|
| | |
| | |
| | |
| | | |
Avoid compiler warnings.
|
| | |
| | |
| | |
| | | |
Avoid compiler warnings when running with `-Wunused-parameter`.
|
| | |
| | |
| | |
| | |
| | | |
When running with `-Wsign-compare` we're raising a lot of
signed/unsigned comparison warnings.
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| | |
This will give more informative message in case of fail assertions.
Moreover GLib (when compiling with G_DISABLE_ASSERT) disable g_assert
totally, that would make these tests no-op
Signed-off-by: Frederic Martinsons <frederic.martinsons@sigfox.com>
|
|/
|
|
|
|
| |
Delete an extra word
Line: 55
Word: root
|
|\
| |
| |
| |
| | |
set node->data pointer to null when unset
See merge request GNOME/json-glib!37
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
Use gi-docgen links, and drop gtk-doc'isms.
|
|\ \
| | |
| | |
| | |
| | | |
Use gi-docgen to build the API reference
See merge request GNOME/json-glib!41
|
| | |
| | |
| | |
| | | |
The `volatile` was dropped from the GLib API, as it's useless.
|
| | |
| | |
| | |
| | | |
We want all warnings, and we want warnings to be fatal.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Drop `SECTION` blurbs.
Use gi-docgen syntax for internal links.
Use summary lines for gi-docgen indices.
Use Markdown syntax for code fragments.
|
|/ |
|
|
|
|
| |
Fixes https://gitlab.gnome.org/GNOME/json-glib/-/issues/58
|
|
|
|
|
|
|
|
|
| |
According to JSON spec BOM shouldn't be part of the JSON data, but
also recommends to tolerate files with a BOM marker. As this is common
in several Windows JSON generators, handle it graceful in json-glib and
skip it for UTF-8 BOM.
Fixes: https://gitlab.gnome.org/GNOME/json-glib/-/issues/56
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
JSON-GLib would crash when trying to decode escaped Unicode characters, if
a character of a surrogate pair was detected but it was in the wrong range, or
if the following character was not in the correct range.
Fixed by emitting an error ("Parse error: scanner: malformed surrogate pair")
before the assertion is run.
Fixes #26.
|
|
|
|
|
|
|
|
|
| |
Changes the comment and include to reference the file basename
instead of the full path. This ensures that the generated file is
reproducible when it is included in source packages meant for debugging.
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
|
|
|
|
|
|
| |
Don't pretty print newlines. This requires a change in the generator
test, but the pretty printing format is not stable anyway, so we can get
away with it.
|