aewl

diff tag.c @ 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 21071ae1fe68
children e890cee887d1
line diff
     1.1 --- a/tag.c	Wed Aug 02 17:49:21 2006 +0200
     1.2 +++ b/tag.c	Thu Aug 03 10:55:07 2006 +0200
     1.3 @@ -13,7 +13,7 @@
     1.4  
     1.5  typedef struct {
     1.6  	const char *pattern;
     1.7 -	char *tags[TLast];
     1.8 +	Bool tags[TLast];
     1.9  	Bool isfloat;
    1.10  } Rule;
    1.11  
    1.12 @@ -30,7 +30,7 @@
    1.13  	if(!sel)
    1.14  		return;
    1.15  
    1.16 -	sel->tags[arg->i] = tags[arg->i];
    1.17 +	sel->tags[arg->i] = True;
    1.18  	arrange(NULL);
    1.19  }
    1.20  
    1.21 @@ -146,7 +146,7 @@
    1.22  		return;
    1.23  
    1.24  	for(i = 0; i < TLast; i++)
    1.25 -		sel->tags[i] = NULL;
    1.26 +		sel->tags[i] = False;
    1.27  	appendtag(arg);
    1.28  }
    1.29  
    1.30 @@ -171,7 +171,7 @@
    1.31  					for(j = 0; j < TLast; j++) {
    1.32  						if(rule[i].tags[j])
    1.33  							matched = True;
    1.34 -						c->tags[j] = rule[i].tags[j];
    1.35 +						c->tags[j] = True;
    1.36  					}
    1.37  					c->isfloat = rule[i].isfloat;
    1.38  				}
    1.39 @@ -184,7 +184,7 @@
    1.40  			XFree(ch.res_name);
    1.41  	}
    1.42  	if(!matched)
    1.43 -		c->tags[tsel] = tags[tsel];
    1.44 +		c->tags[tsel] = True;
    1.45  }
    1.46  
    1.47  void