All pastes #940137 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-03-12 19:58 UTC
rendered paste body
#if GLIB_CHECK_VERSION (2,14,0)
        /* Nothing */
#else
inline static void
list_values (gpointer key, gpointer value, GList **values)
{
        *values = g_list_append (*values, value);
}

inline static GList*
g_hash_table_get_values (GHashTable *hash)
{
        GList *values = NULL;
        g_hash_table_foreach (hash, (GHFunc)list_values, &values);
        return values;
}
#endif