dwm-meillo
annotate util.h @ 5:e5018cae273f
added several other stuff
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Mon, 10 Jul 2006 22:16:48 +0200 |
parents | e969f3575b7a |
children | e0cefb3981c8 |
rev | line source |
---|---|
garbeam@2 | 1 /* |
garbeam@2 | 2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> |
garbeam@2 | 3 * See LICENSE file for license details. |
garbeam@2 | 4 */ |
garbeam@5 | 5 #include <X11/Xlib.h> |
garbeam@2 | 6 |
garbeam@3 | 7 extern void error(char *errstr, ...); |
garbeam@3 | 8 extern void *emallocz(unsigned int size); |
garbeam@3 | 9 extern void *emalloc(unsigned int size); |
garbeam@3 | 10 extern void *erealloc(void *ptr, unsigned int size); |
garbeam@3 | 11 extern char *estrdup(const char *str); |
garbeam@3 | 12 #define eassert(a) do { \ |
garbeam@3 | 13 if(!(a)) \ |
garbeam@3 | 14 failed_assert(#a, __FILE__, __LINE__); \ |
garbeam@3 | 15 } while (0) |
garbeam@5 | 16 extern void failed_assert(char *a, char *file, int line); |
garbeam@5 | 17 extern void swap(void **p1, void **p2); |
garbeam@5 | 18 extern void spawn(Display *dpy, const char *shell, const char *cmd); |