gvalue: Add explicitly signed g_value_get_schar() and g_value_set_schar()
authorColin Walters <walters@verbum.org>
Thu, 22 Sep 2011 20:08:35 +0000 (16:08 -0400)
committerColin Walters <walters@verbum.org>
Fri, 23 Sep 2011 00:05:38 +0000 (20:05 -0400)
commitf42fe6cdc056b77f74ff6e332389d444c50ae7dc
treeb0b6d6bb1bd548a748041351a9c58ae1d3f88a9a
parent1df8160fa675b225809eed2f86d2489133e5e54d
gvalue: Add explicitly signed g_value_get_schar() and g_value_set_schar()

The documentation for G_TYPE_CHAR says:

"The type designated by G_TYPE_CHAR is unconditionally an 8-bit signed
 integer."

However the return value for g_value_get_char() was just "char" which
in C has an unspecified signedness; on e.g. x86 it's signed (which
matches the GType), but on e.g. PowerPC or ARM, it's not.

We can't break the old API, so we need to suck it up and add new API.
Port most internal users, but keep some tests of the old API too.

https://bugzilla.gnome.org/show_bug.cgi?id=659870
gio/gsettings-mapping.c
gio/tests/gsettings.c
gobject/gclosure.c
gobject/glib-genmarshal.c
gobject/gmarshal.c
gobject/gobject.symbols
gobject/gvaluetypes.c
gobject/gvaluetypes.h
gobject/tests/param.c
tests/gobject/gvalue-test.c
tests/gobject/paramspec-test.c