projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move smap/nospam into the mime module.
[apps/madmutt.git]
/
lib-lib
/
rx.h
diff --git
a/lib-lib/rx.h
b/lib-lib/rx.h
index
a827b82
..
81352ad
100644
(file)
--- a/
lib-lib/rx.h
+++ b/
lib-lib/rx.h
@@
-29,7
+29,7
@@
#ifndef MUTT_LIB_LIB_RX_H
#define MUTT_LIB_LIB_RX_H
#ifndef MUTT_LIB_LIB_RX_H
#define MUTT_LIB_LIB_RX_H
-#include
<lib-lib/lib-lib.h>
+#include
"lib-lib.h"
/* this is a non-standard option supported by Solaris 2.5.x which allows
* patterns of the form \<...\>
/* this is a non-standard option supported by Solaris 2.5.x which allows
* patterns of the form \<...\>
@@
-45,16
+45,20
@@
typedef struct rx_t {
int not; /* do not match */
int nmatch; /* nb matches */
int not; /* do not match */
int nmatch; /* nb matches */
- char *t
emplate;
/* out template */
+ char *t
pl;
/* out template */
} rx_t;
} rx_t;
-rx_t* rx_compile(const char*, int);
+rx_t *rx_compile(const char*, int);
+int rx_validate(const char*, char*, ssize_t);
void rx_set_template(rx_t *, const char*);
void rx_set_template(rx_t *, const char*);
-void rx_delete(rx_t **);
+void rx_wipe(rx_t *);
+DO_DELETE(rx_t, rx);
+
DO_SLIST(rx_t, rx, rx_delete);
/* for handling lists */
int rx_list_match(rx_t *, const char*); /* match all items list agains string */
DO_SLIST(rx_t, rx, rx_delete);
/* for handling lists */
int rx_list_match(rx_t *, const char*); /* match all items list agains string */
+int rx_list_match2(rx_t *l, const char *s, char *dst, int dlen);
rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */
int rx_sanitize_string(char *, ssize_t, const char *);
rx_t **rx_lookup(rx_t**, const char*); /* lookup pattern */
int rx_sanitize_string(char *, ssize_t, const char *);