dwm-meillo

view util.h @ 12:a2b399582afe

new stuff
author Anselm R. Garbe <garbeam@wmii.de>
date Tue, 11 Jul 2006 14:53:22 +0200
parents e0cefb3981c8
children 5c078b66347b
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) do { \
13 if(!(a)) \
14 failed_assert(#a, __FILE__, __LINE__); \
15 } while (0)
16 extern void failed_assert(char *a, char *file, int line);
17 void pipe_spawn(char *buf, unsigned int len, Display *dpy, const char *cmd);
18 extern void spawn(Display *dpy, const char *cmd);
19 extern void swap(void **p1, void **p2);
20 unsigned char *getselection(unsigned long offset, unsigned long *len, unsigned long *remain);