Clean up process of calling g_debug_init()
authorRyan Lortie <desrt@desrt.ca>
Thu, 22 Sep 2011 01:20:07 +0000 (21:20 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 4 Oct 2011 19:31:49 +0000 (15:31 -0400)
commit310c3ed4cc733f47b88b44fb03757bd7213a4f9a
tree9afc650e53e36fc6c85a8a4e90e4db4bbdfe9687
parent1481b7bca3c24149a2970758bc8762e1318f361e
Clean up process of calling g_debug_init()

Make sure that it calls absolutely nothing that may ever recurse back
into GLib again:

  - g_ascii_strcasecmp() is unsafe because it has g_return_if_fail() at
    the top.  As far as I know, the only ASCII character letter that
    would get special treatment here is "i" and that appears in neither
    "help" nor "all".

  - g_getenv() is very complicated on Windows, so use a simple version
    that is sufficient for our purposes.

Now that it's completely safe, we can just call it from g_logv() in the
usual way without all of the hacks.

https://bugzilla.gnome.org/show_bug.cgi?id=660744
glib/gmessages.c
glib/gutils.c