diff options
| author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 13:03:53 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-14 13:03:53 +0200 |
| commit | a1d0f819661f2be48f7a03ddd001f2a1a8f325e4 (patch) | |
| tree | 94fb44049473e55b93f1d5b6baedd561c4c83a50 /util.c | |
| parent | focus on view change as well (diff) | |
| download | dwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.tar.gz dwm-a1d0f819661f2be48f7a03ddd001f2a1a8f325e4.zip | |
searching for a better way to discard enter notifies
Diffstat (limited to '')
| -rw-r--r-- | util.c | 28 |
1 files changed, 0 insertions, 28 deletions
| @@ -6,7 +6,6 @@ | |||
| 6 | #include <stdarg.h> | 6 | #include <stdarg.h> |
| 7 | #include <stdio.h> | 7 | #include <stdio.h> |
| 8 | #include <stdlib.h> | 8 | #include <stdlib.h> |
| 9 | #include <string.h> | ||
| 10 | #include <sys/types.h> | 9 | #include <sys/types.h> |
| 11 | #include <sys/wait.h> | 10 | #include <sys/wait.h> |
| 12 | #include <unistd.h> | 11 | #include <unistd.h> |
| @@ -39,33 +38,6 @@ emallocz(unsigned int size) | |||
| 39 | return res; | 38 | return res; |
| 40 | } | 39 | } |
| 41 | 40 | ||
| 42 | void * | ||
| 43 | emalloc(unsigned int size) | ||
| 44 | { | ||
| 45 | void *res = malloc(size); | ||
| 46 | if(!res) | ||
| 47 | bad_malloc(size); | ||
| 48 | return res; | ||
| 49 | } | ||
| 50 | |||
| 51 | void * | ||
| 52 | erealloc(void *ptr, unsigned int size) | ||
| 53 | { | ||
| 54 | void *res = realloc(ptr, size); | ||
| 55 | if(!res) | ||
| 56 | bad_malloc(size); | ||
| 57 | return res; | ||
| 58 | } | ||
| 59 | |||
| 60 | char * | ||
| 61 | estrdup(const char *str) | ||
| 62 | { | ||
| 63 | char *res = strdup(str); | ||
| 64 | if(!res) | ||
| 65 | bad_malloc(strlen(str)); | ||
| 66 | return res; | ||
| 67 | } | ||
| 68 | |||
| 69 | void | 41 | void |
| 70 | swap(void **p1, void **p2) | 42 | swap(void **p1, void **p2) |
| 71 | { | 43 | { |
