- Timestamp:
- Feb 11, 2009, 12:20:22 PM (16 years ago)
- Branches:
- master, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 7980fb2
- Parents:
- 823671c
- git-author:
- Nelson Elhage <nelhage@mit.edu> (02/08/09 16:31:14)
- git-committer:
- Nelson Elhage <nelhage@mit.edu> (02/11/09 12:20:22)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
filter.c
r9711a6e rf34dd65 18 18 { 19 19 f->name=owl_strdup(name); 20 f->polarity=0;21 20 f->fgcolor=OWL_COLOR_DEFAULT; 22 21 f->bgcolor=OWL_COLOR_DEFAULT; … … 157 156 } 158 157 159 void owl_filter_set_polarity_match(owl_filter *f)160 {161 f->polarity=0;162 }163 164 void owl_filter_set_polarity_unmatch(owl_filter *f)165 {166 f->polarity=1;167 }168 169 158 void owl_filter_set_fgcolor(owl_filter *f, int color) 170 159 { … … 205 194 if(!f->root) return 0; 206 195 ret = owl_filterelement_match(f->root, m); 207 if(f->polarity) ret = !ret;208 196 return ret; 209 197 }
Note: See TracChangeset
for help on using the changeset viewer.