Changeset e6a4dd5 for filterelement.c
- Timestamp:
- Apr 2, 2009, 1:23:14 AM (15 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:
- 3071c69
- Parents:
- d9bfc82
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
filterelement.c
rf446454 re6a4dd5 213 213 } 214 214 215 voidowl_filterelement_create_re(owl_filterelement *fe, char *field, char *re)215 int owl_filterelement_create_re(owl_filterelement *fe, char *field, char *re) 216 216 { 217 217 owl_filterelement_create(fe); 218 218 fe->field=owl_strdup(field); 219 owl_regex_create(&(fe->re), re); 219 if(owl_regex_create(&(fe->re), re)) { 220 free(fe->field); 221 fe->field = NULL; 222 return (-1); 223 } 220 224 fe->match_message = owl_filterelement_match_re; 221 225 fe->print_elt = owl_filterelement_print_re; 226 return 0; 222 227 } 223 228
Note: See TracChangeset
for help on using the changeset viewer.