projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Simplifications.
[apps/madmutt.git]
/
lib-lib
/
rx.h
diff --git
a/lib-lib/rx.h
b/lib-lib/rx.h
index
fcaba32
..
6decaa6
100644
(file)
--- a/
lib-lib/rx.h
+++ b/
lib-lib/rx.h
@@
-40,16
+40,20
@@
typedef struct rx_t {
struct rx_t *next;
typedef struct rx_t {
struct rx_t *next;
- char *pattern; /* printable version */
- regex_t *rx; /* compiled expression */
- int not; /* do not match */
+ unsigned neg : 1; /* do not match */
+ int flags;
int nmatch; /* nb matches */
int nmatch; /* nb matches */
+
+ char *pattern; /* printable version */
char *tpl; /* out template */
char *tpl; /* out template */
+
+ regex_t *rx; /* compiled expression */
} rx_t;
rx_t *rx_compile(const char*, int);
void rx_wipe(rx_t *);
} rx_t;
rx_t *rx_compile(const char*, int);
void rx_wipe(rx_t *);
+rx_t *rx_dup(rx_t *);
DO_DELETE(rx_t, rx);
DO_SLIST(rx_t, rx, rx_delete);
DO_DELETE(rx_t, rx);
DO_SLIST(rx_t, rx, rx_delete);