Changeset e187445 for filter.c


Ignore:
Timestamp:
Jun 22, 2003, 1:40:49 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
53f421b
Parents:
a6560fe
Message:
reformatted filter, filterelement and regex to new code style
File:
1 edited

Legend:

Unmodified
Added
Removed
  • filter.c

    r0c502e9 re187445  
    44static const char fileIdent[] = "$Id$";
    55
    6 int owl_filter_init_fromstring(owl_filter *f, char *name, char *string) {
     6int owl_filter_init_fromstring(owl_filter *f, char *name, char *string)
     7{
    78  char **argv;
    89  int argc, out;
     
    1415}
    1516
    16 int owl_filter_init(owl_filter *f, char *name, int argc, char **argv) {
     17int owl_filter_init(owl_filter *f, char *name, int argc, char **argv)
     18{
    1719  int i, error;
    1820  owl_filterelement *fe;
     
    8890}
    8991
    90 char *owl_filter_get_name(owl_filter *f) {
     92char *owl_filter_get_name(owl_filter *f)
     93{
    9194  return(f->name);
    9295}
    9396
    94 void owl_filter_set_polarity_match(owl_filter *f) {
     97void owl_filter_set_polarity_match(owl_filter *f)
     98{
    9599  f->polarity=0;
    96100}
    97101
    98 void owl_filter_set_polarity_unmatch(owl_filter *f) {
     102void owl_filter_set_polarity_unmatch(owl_filter *f)
     103{
    99104  f->polarity=1;
    100105}
    101106
    102 void owl_filter_set_color(owl_filter *f, int color) {
     107void owl_filter_set_color(owl_filter *f, int color)
     108{
    103109  f->color=color;
    104110}
    105111
    106 int owl_filter_get_color(owl_filter *f) {
     112int owl_filter_get_color(owl_filter *f)
     113{
    107114  return(f->color);
    108115}
    109116
    110 void owl_filter_set_cachedmsgid(owl_filter *f, int cachedmsgid) {
     117void owl_filter_set_cachedmsgid(owl_filter *f, int cachedmsgid)
     118{
    111119  f->cachedmsgid=cachedmsgid;
    112120}
    113121
    114 int owl_filter_get_cachedmsgid(owl_filter *f) {
     122int owl_filter_get_cachedmsgid(owl_filter *f)
     123{
    115124  return(f->cachedmsgid);
    116125}
    117126
    118 int owl_filter_message_match(owl_filter *f, owl_message *m) {
     127int owl_filter_message_match(owl_filter *f, owl_message *m)
     128{
    119129  int i, j, tmp;
    120130  owl_list work_fes, *fes;
     
    205215}
    206216
    207 int _owl_filter_message_match_recurse(owl_filter *f, owl_message *m, owl_list *fes, int start, int end) {
     217int _owl_filter_message_match_recurse(owl_filter *f, owl_message *m, owl_list *fes, int start, int end)
     218{
    208219  int a=0, b=0, i, x, y, z, score, ret, type;
    209220  owl_filterelement *fe, *tmpfe=NULL;
     
    357368}
    358369
    359 void owl_filter_print(owl_filter *f, char *out) {
     370void owl_filter_print(owl_filter *f, char *out)
     371{
    360372  int i, j;
    361373  owl_filterelement *fe;
     
    381393}
    382394
    383 int owl_filter_equiv(owl_filter *a, owl_filter *b) {
     395int owl_filter_equiv(owl_filter *a, owl_filter *b)
     396{
    384397  char buff[LINE], buff2[LINE];
    385398
     
    391404}
    392405
    393 void owl_filter_free(owl_filter *f) {
     406void owl_filter_free(owl_filter *f)
     407{
    394408  void (*func)();
    395409
Note: See TracChangeset for help on using the changeset viewer.