GVariant: add way to print context of parse errors

This was a feature intended from the very beginning that somehow never
got written.  It's a way to replace these sort of error messages out of
the GVariant parser:

  1-2,10-15:unable to find a common type

with something in the style of the Vala compiler:

  unable to find a common type:
    [1, 2, 3, 'str']
     ^        ^^^^^

https://bugzilla.gnome.org/show_bug.cgi?id=715028
This commit is contained in:
Ryan Lortie
2013-12-22 11:41:19 -05:00
parent 3f41e49285
commit 56fb675d86
3 changed files with 227 additions and 0 deletions

View File

@@ -3229,6 +3229,7 @@ G_VARIANT_PARSE_ERROR
g_variant_parse
g_variant_new_parsed_va
g_variant_new_parsed
g_variant_parse_error_print_context
<SUBSECTION Private>
g_variant_parse_error_quark