aewl
view util.h @ 26:e8f627998d6f
simplified several portions of code through replacing rect structs with x,y,h,w counterparts (much more readable)
author | Anselm R. Garbe <garbeam@wmii.de> |
---|---|
date | Wed, 12 Jul 2006 15:17:22 +0200 |
parents | 5c078b66347b |
children |
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
5 #include <X11/Xlib.h>
7 extern void error(char *errstr, ...);
8 extern void *emallocz(unsigned int size);
9 extern void *emalloc(unsigned int size);
10 extern void *erealloc(void *ptr, unsigned int size);
11 extern char *estrdup(const char *str);
12 #define eassert(a) \
13 do { \
14 if(!(a)) \
15 failed_assert(#a, __FILE__, __LINE__); \
16 } while (0)
17 extern void failed_assert(char *a, char *file, int line);
18 extern void pipe_spawn(char *buf, unsigned int len, Display *dpy, char *argv[]);
19 extern void spawn(Display *dpy, char *argv[]);
20 extern void swap(void **p1, void **p2);
21 extern unsigned int tokenize(char **result, unsigned int reslen,
22 char *str, char delim);