dwm-meillo

view util.h @ 3:e969f3575b7a

several new changes, made gridmenu working
author Anselm R. Garbe <garbeam@wmii.de>
date Mon, 10 Jul 2006 19:46:24 +0200
parents a79188fe4a40
children e5018cae273f
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 extern void error(char *errstr, ...);
7 extern void *emallocz(unsigned int size);
8 extern void *emalloc(unsigned int size);
9 extern void *erealloc(void *ptr, unsigned int size);
10 extern char *estrdup(const char *str);
11 #define eassert(a) do { \
12 if(!(a)) \
13 failed_assert(#a, __FILE__, __LINE__); \
14 } while (0)
15 void failed_assert(char *a, char *file, int line);
16 void swap(void **p1, void **p2);