Changeset cd5adec


Ignore:
Timestamp:
Feb 10, 2007, 11:47:12 PM (14 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
5616acc
Parents:
0f1f388
git-author:
Nelson Elhage <nelhage@mit.edu> (12/26/06 00:57:07)
git-committer:
Nelson Elhage <nelhage@mit.edu> (02/10/07 23:47:12)
Message:
 r15901@phanatique:  nelhage | 2006-12-25 21:08:47 -0500
 Base framework for the filter rewrite system. Only understands regexes and true/false so far.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r0f1f388 rcd5adec  
    55
    66#define OWL_FILTER_MAXRECURSE 20
    7 
    8 static owl_filterelement fe_true;
    9 static owl_filterelement fe_false;
    10 static owl_filterelement fe_null;
    11 
    12 void owl_filterengine_init()
    13 {
    14   owl_filterelement_create_true(&fe_true);
    15   owl_filterelement_create_false(&fe_false);
    16   owl_filterelement_create_null(&fe_null);
    17 }
    187
    198int owl_filter_init_fromstring(owl_filter *f, char *name, char *string)
  • filterelement.c

    rcb769bb rcd5adec  
    122122{
    123123  return !owl_filterelement_match(fe->left, m);
    124 }
    125 
     124  fe->match_message = owl_filterelement_match_re;
     125  fe->print_elt = owl_filterelement_print_re;
     126}
     127/*
    126128// Print methods
    127129
     
    135137  strcat(buf, "false");
    136138}
     139*/
    137140
    138141static void owl_filterelement_print_re(owl_filterelement *fe, char *buf)
Note: See TracChangeset for help on using the changeset viewer.