4 Commits
1.2 ... 1.3

Author SHA1 Message Date
Anselm R. Garbe
95b19f75cc changing order 2006-10-12 12:59:37 +02:00
Anselm R. Garbe
3d25a327aa simplified util.c 2006-10-12 12:58:34 +02:00
Anselm R. Garbe
d78bcf247f simplified main event loop 2006-10-10 19:15:06 +02:00
Anselm R. Garbe
afaf66dc99 Added tag 1.2 for changeset bee7fe6d1189174d0204ca3195b83cdc1bb4f82e 2006-10-06 13:44:22 +02:00
4 changed files with 5 additions and 14 deletions

View File

@@ -9,3 +9,4 @@ d352e9dc112ee96aa5cad961a0ed880ae9ce7276 0.3
d046c818ea467555cc338751c9bf3024609f1f12 0.9 d046c818ea467555cc338751c9bf3024609f1f12 0.9
9e11140d4cc3eecac3b0ab752f91528fd5e04be8 1.0 9e11140d4cc3eecac3b0ab752f91528fd5e04be8 1.0
e8c1e9733752db12f2dbd1fa93c46f5806242ba9 1.1 e8c1e9733752db12f2dbd1fa93c46f5806242ba9 1.1
bee7fe6d1189174d0204ca3195b83cdc1bb4f82e 1.2

View File

@@ -1,5 +1,5 @@
# dmenu version # dmenu version
VERSION = 1.2 VERSION = 1.3
# Customize below to fit your system # Customize below to fit your system

3
main.c
View File

@@ -356,7 +356,7 @@ main(int argc, char *argv[]) {
XSync(dpy, False); XSync(dpy, False);
/* main event loop */ /* main event loop */
while(running && !XNextEvent(dpy, &ev)) { while(running && !XNextEvent(dpy, &ev))
switch (ev.type) { switch (ev.type) {
default: /* ignore all crap */ default: /* ignore all crap */
break; break;
@@ -368,7 +368,6 @@ main(int argc, char *argv[]) {
drawmenu(); drawmenu();
break; break;
} }
}
/* cleanup */ /* cleanup */
while(allitems) { while(allitems) {

13
util.c
View File

@@ -9,21 +9,12 @@
#include <sys/wait.h> #include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
/* static */
static void
badmalloc(unsigned int size) {
eprint("fatal: could not malloc() %u bytes\n", size);
}
/* extern */
void * void *
emalloc(unsigned int size) { emalloc(unsigned int size) {
void *res = malloc(size); void *res = malloc(size);
if(!res) if(!res)
badmalloc(size); eprint("fatal: could not malloc() %u bytes\n", size);
return res; return res;
} }
@@ -42,6 +33,6 @@ estrdup(const char *str) {
void *res = strdup(str); void *res = strdup(str);
if(!res) if(!res)
badmalloc(strlen(str)); eprint("fatal: could not malloc() %u bytes\n", strlen(str));
return res; return res;
} }