/* Various utility functions */
/* Misc macros */
+#if !defined(MAX) && !defined(MIN)
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
+#endif
#define new0(type) (calloc(1, sizeof(type)))
list_t *list_find(list_t *list, void *data);
+list_t *list_sort(list_t *list, int rev, int (*func)(void*,void*));
+
/* Misc */
+int str2num(char *str, int def);
+
int error(char *fmt, ...);