GOptionContext: add memory-friendly parse mode

Desktop / GNOME / GLib - Ryan Lortie [desrt.ca] - 10 January 2014 11:32 UTC

Add g_option_context_parse_strv() that obeys the normal memory conventions for dealing with a strv instead of assuming that we're dealing with the 'argv' parameter to main().

This will help for using GOptionContext with GApplication.

https://bugzilla.gnome.org/show_bug.cgi?id=721947

f062fae GOptionContext: add memory-friendly parse mode
docs/reference/glib/glib-sections.txt | 1 +
glib/goption.c | 43 +++++++++++++++++++++++++++++++++
glib/goption.h | 4 +++
3 files changed, 48 insertions(+)

Upstream: git.gnome.org


  • Share