comparison config.default.h @ 173:1db04019684e

changed Client->tags and Rule->tags to be Bool (I'll also try to remove the TLast enum)
author arg@10ksloc.org
date Thu, 03 Aug 2006 10:55:07 +0200
parents dac0793bf3f7
children e848966a1ac6
comparison
equal deleted inserted replaced
172:af781faa40d6 173:1db04019684e
3 * See LICENSE file for license details. 3 * See LICENSE file for license details.
4 */ 4 */
5 5
6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; 6 enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast };
7 #define TAGS \ 7 #define TAGS \
8 char *tags[TLast] = { \ 8 const char *tags[TLast] = { \
9 [Tfnord] = "fnord", \ 9 [Tfnord] = "fnord", \
10 [Tdev] = "dev", \ 10 [Tdev] = "dev", \
11 [Tnet] = "net", \ 11 [Tnet] = "net", \
12 [Twork] = "work", \ 12 [Twork] = "work", \
13 [Tmisc] = "misc", \ 13 [Tmisc] = "misc", \
55 }; 55 };
56 56
57 #define RULES \ 57 #define RULES \
58 static Rule rule[] = { \ 58 static Rule rule[] = { \
59 /* class:instance tags isfloat */ \ 59 /* class:instance tags isfloat */ \
60 { "Firefox.*", { [Tnet] = "net" }, False }, \ 60 { "Firefox.*", { [Tnet] = True }, False }, \
61 { "Gimp.*", { 0 }, True}, \ 61 { "Gimp.*", { 0 }, True}, \
62 }; 62 };