18#ifndef DT_COMMON_GLIB_UTILS_H
19#define DT_COMMON_GLIB_UTILS_H
33#define g_list_is_singleton(list) ((list) && (!(list)->next))
40 if (!list)
return TRUE;
static gchar * dt_string_replace(const char *string, const char *to_replace)
static const GList * g_list_next_wraparound(const GList *list, const GList *head)
static const GList * g_list_prev_wraparound(const GList *list)
static GList * g_list_next_bounded(GList *list)
static gboolean g_list_shorter_than(const GList *list, unsigned len)
#define IS_NULL_PTR(p)
C is way too permissive with !=, == and if(var) checks, which can mean too many things depending on w...