aewl

annotate util.h @ 9:d567f430a81d

fixed several stuff (gridwm gets better and better)
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 12:52:57 +0200
parents e5018cae273f
children ea9c08ec4b48
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@6 17 void pipe_spawn(char *buf, unsigned int len, Display *dpy, const char *cmd);
garbeam@6 18 extern void spawn(Display *dpy, const char *cmd);
garbeam@5 19 extern void swap(void **p1, void **p2);