prepared dmenu-4.1 release 8623bf5d
Anselm R Garbe · 2010-05-28 11:42 4 file(s) · +10 −6
LICENSE +1 −1
1 1
MIT/X Consortium License
2 2
3 3
© 2010 Connor Lane Smith <cls@lubutu.com>
4 -
© 2006-2009 Anselm R. Garbe <anselm@garbe.us>
4 +
© 2006-2010 Anselm R Garbe <anselm@garbe.us>
5 5
© 2009 Gottox <gottox@s01.de>
6 6
© 2009 Markus Schnalke <meillo@marmaro.de>
7 7
© 2009 Evan Gates <evan.gates@gmail.com>
Makefile +5 −1
20 20
21 21
${OBJ}: config.h config.mk
22 22
23 +
config.h:
24 +
	@echo creating $@ from config.def.h
25 +
	@cp config.def.h $@
26 +
23 27
dmenu: ${OBJ}
24 28
	@echo CC -o $@
25 29
	@${CC} -o $@ ${OBJ} ${LDFLAGS}
31 35
dist: clean
32 36
	@echo creating dist tarball
33 37
	@mkdir -p dmenu-${VERSION}
34 -
	@cp -R LICENSE Makefile README config.mk dmenu.1 config.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION}
38 +
	@cp -R LICENSE Makefile README config.mk dmenu.1 config.def.h dmenu_path dmenu_run ${SRC} dmenu-${VERSION}
35 39
	@tar -cf dmenu-${VERSION}.tar dmenu-${VERSION}
36 40
	@gzip dmenu-${VERSION}.tar
37 41
	@rm -rf dmenu-${VERSION}
config.h → config.def.h +0 −0
dmenu.c +4 −4
42 42
typedef struct Item Item;
43 43
struct Item {
44 44
	char *text;
45 -
	Item *next;		/* traverses all items */
46 -
	Item *left, *right;	/* traverses items matching current search pattern */
45 +
	Item *next;         /* traverses all items */
46 +
	Item *left, *right; /* traverses items matching current search pattern */
47 47
};
48 48
49 49
/* forward declarations */
85 85
static Bool running = True;
86 86
static Display *dpy;
87 87
static DC dc;
88 -
static Item *allitems = NULL;	/* first of all items */
89 -
static Item *item = NULL;	/* first of pattern matching items */
88 +
static Item *allitems = NULL;  /* first of all items */
89 +
static Item *item = NULL;      /* first of pattern matching items */
90 90
static Item *sel = NULL;
91 91
static Item *next = NULL;
92 92
static Item *prev = NULL;