X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Frx.h;h=a827b82de12207f847a85e3125981e8de01d7d3f;hb=9fde23d2b9a4ba8076eb425a1af4342de1e485b5;hp=14709d1038d8914d84a731110dd9c9b335f4999a;hpb=5a4df9d0e93209aeade80f632158036799f3e9bc;p=apps%2Fmadmutt.git diff --git a/lib-lib/rx.h b/lib-lib/rx.h index 14709d1..a827b82 100644 --- a/lib-lib/rx.h +++ b/lib-lib/rx.h @@ -43,9 +43,13 @@ typedef struct rx_t { char *pattern; /* printable version */ regex_t *rx; /* compiled expression */ int not; /* do not match */ + + int nmatch; /* nb matches */ + char *template; /* out template */ } rx_t; -rx_t* rx_compile (const char*, int); +rx_t* rx_compile(const char*, int); +void rx_set_template(rx_t *, const char*); void rx_delete(rx_t **); DO_SLIST(rx_t, rx, rx_delete);