comparison config.arg.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", \
64 }; 64 };
65 65
66 #define RULES \ 66 #define RULES \
67 static Rule rule[] = { \ 67 static Rule rule[] = { \
68 /* class:instance tags isfloat */ \ 68 /* class:instance tags isfloat */ \
69 { "Firefox.*", { [Tnet] = "net" }, False }, \ 69 { "Firefox.*", { [Tnet] = True }, False }, \
70 { "Gimp.*", { 0 }, True}, \ 70 { "Gimp.*", { 0 }, True}, \
71 { "MPlayer.*", { 0 }, True}, \ 71 { "MPlayer.*", { 0 }, True}, \
72 { "Acroread.*", { 0 }, True}, \ 72 { "Acroread.*", { 0 }, True}, \
73 }; 73 };