annotate util.h @ 11:ea9c08ec4b48
added gridsel to gridwm
author |
Anselm R. Garbe <garbeam@wmii.de> |
date |
Tue, 11 Jul 2006 13:21:57 +0200 |
parents |
e0cefb3981c8 |
children |
5c078b66347b |
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);
|
garbeam@11
|
20 unsigned char *getselection(unsigned long offset, unsigned long *len, unsigned long *remain);
|