annotate util.h @ 28:3dceb132082d
added max
author |
Anselm R. Garbe <garbeam@wmii.de> |
date |
Wed, 12 Jul 2006 16:40:37 +0200 |
parents |
5c078b66347b |
children |
|
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@14
|
12 #define eassert(a) \
|
garbeam@14
|
13 do { \
|
garbeam@3
|
14 if(!(a)) \
|
garbeam@3
|
15 failed_assert(#a, __FILE__, __LINE__); \
|
garbeam@3
|
16 } while (0)
|
garbeam@5
|
17 extern void failed_assert(char *a, char *file, int line);
|
garbeam@14
|
18 extern void pipe_spawn(char *buf, unsigned int len, Display *dpy, char *argv[]);
|
garbeam@14
|
19 extern void spawn(Display *dpy, char *argv[]);
|
garbeam@5
|
20 extern void swap(void **p1, void **p2);
|
garbeam@14
|
21 extern unsigned int tokenize(char **result, unsigned int reslen,
|
garbeam@14
|
22 char *str, char delim);
|