Browse Source

* reorder fields in filters' rx_t struct

master
Alex 'AdUser' Z 3 years ago
parent
commit
6e40a8faed
  1. 12
      src/filters/pcre.c

12
src/filters/pcre.c

@ -13,24 +13,24 @@
struct _regexp { struct _regexp {
rx_t *next; rx_t *next;
pcre *regex;
pcre_extra *data;
int matches;
uint32_t ftag; uint32_t ftag;
int matches;
short int score; short int score;
pcre *regex;
pcre_extra *data;
char pattern[PATTERN_MAX]; char pattern[PATTERN_MAX];
}; };
struct _config { struct _config {
void (*logcb)(enum loglevel lvl, const char *msg);
rx_t *regexps; rx_t *regexps;
rx_t *rlast; /* pointer to last regex in list */ rx_t *rlast; /* pointer to last regex in list */
int flags; void (*logcb)(enum loglevel lvl, const char *msg);
short int defscore; short int defscore;
int flags;
char id[ID_MAX];
bool icase; bool icase;
bool study; bool study;
bool usejit; bool usejit;
char id[ID_MAX];
}; };
#include "filter.c" #include "filter.c"

Loading…
Cancel
Save