You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
763 B

19 years ago
19 years ago
  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>
  6. extern void error(char *errstr, ...);
  7. extern void *emallocz(unsigned int size);
  8. extern void *emalloc(unsigned int size);
  9. extern void *erealloc(void *ptr, unsigned int size);
  10. extern char *estrdup(const char *str);
  11. #define eassert(a) \
  12. 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. extern void pipe_spawn(char *buf, unsigned int len, Display *dpy, char *argv[]);
  18. extern void spawn(Display *dpy, char *argv[]);
  19. extern void swap(void **p1, void **p2);
  20. extern unsigned int tokenize(char **result, unsigned int reslen,
  21. char *str, char delim);