summaryrefslogtreecommitdiff
path: root/gobject/gvaluearray.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-10-19 13:03:58 -0400
committerDan Winship <danw@gnome.org>2013-11-20 09:16:16 -0500
commit6e4a7fca431f53fdfd89afbe956212229cf52200 (patch)
tree8b492a3d5f272c3efbcd8e876c66819d020e9513 /gobject/gvaluearray.c
parent7f5b2901cf5bea290c11133dad16850176178dad (diff)
downloadglib-6e4a7fca431f53fdfd89afbe956212229cf52200.tar.gz
glib-6e4a7fca431f53fdfd89afbe956212229cf52200.tar.bz2
glib-6e4a7fca431f53fdfd89afbe956212229cf52200.zip
Require C90 compliance
Assume all supported platforms implement C90, and therefore they (correctly) implement atexit(), memmove(), setlocale(), strerror(), and vprintf(), and have <float.h> and <limits.h>. (Also remove the configure check testing that "do ... while (0)" works correctly; the non-do/while-based version of G_STMT_START and G_STMT_END was removed years ago, but the check remained. Also, remove some checks that configure.ac claimed were needed for libcharset, but aren't actually used.) Note that removing the g_memmove() function is not an ABI break even on systems where g_memmove() was previously not a macro, because it was never marked GLIB_AVAILABLE_IN_ALL or listed in glib.symbols, so it would have been glib-internal since 2004. https://bugzilla.gnome.org/show_bug.cgi?id=710519
Diffstat (limited to 'gobject/gvaluearray.c')
-rw-r--r--gobject/gvaluearray.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gobject/gvaluearray.c b/gobject/gvaluearray.c
index e3fe2554c..a3d2cb0d0 100644
--- a/gobject/gvaluearray.c
+++ b/gobject/gvaluearray.c
@@ -282,8 +282,8 @@ g_value_array_insert (GValueArray *value_array,
i = value_array->n_values;
value_array_grow (value_array, value_array->n_values + 1, FALSE);
if (index + 1 < value_array->n_values)
- g_memmove (value_array->values + index + 1, value_array->values + index,
- (i - index) * sizeof (value_array->values[0]));
+ memmove (value_array->values + index + 1, value_array->values + index,
+ (i - index) * sizeof (value_array->values[0]));
memset (value_array->values + index, 0, sizeof (value_array->values[0]));
if (value)
{
@@ -317,8 +317,8 @@ g_value_array_remove (GValueArray *value_array,
g_value_unset (value_array->values + index);
value_array->n_values--;
if (index < value_array->n_values)
- g_memmove (value_array->values + index, value_array->values + index + 1,
- (value_array->n_values - index) * sizeof (value_array->values[0]));
+ memmove (value_array->values + index, value_array->values + index + 1,
+ (value_array->n_values - index) * sizeof (value_array->values[0]));
value_array_shrink (value_array);
if (value_array->n_prealloced > value_array->n_values)
memset (value_array->values + value_array->n_values, 0, sizeof (value_array->values[0]));