GVariant: add way to print context of parse errors
authorRyan Lortie <desrt@desrt.ca>
Sun, 22 Dec 2013 16:41:19 +0000 (11:41 -0500)
committerRyan Lortie <desrt@desrt.ca>
Sun, 22 Dec 2013 16:41:19 +0000 (11:41 -0500)
commit56fb675d865d4331037bd95f57ce6f381564fe27
treeaa3a36ab648776125c2c83c57789a68101ed5bda
parent3f41e492851b3e69ceb050986766fe3137cbb1fe
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
docs/reference/glib/glib-sections.txt
glib/gvariant-parser.c
glib/gvariant.h