X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib-lib%2Frx.h;h=d12fe85bcb10609814d9133a29ab940c0da8ba68;hb=330047119d7dc2674918d12253fc24146aefc8d3;hp=48e295ba4b7acccef2af9de0ce5942b1040009bc;hpb=03fe827a7d4a7ad79ac235654414aa339a9a2c9a;p=apps%2Fmadmutt.git diff --git a/lib-lib/rx.h b/lib-lib/rx.h index 48e295b..d12fe85 100644 --- a/lib-lib/rx.h +++ b/lib-lib/rx.h @@ -26,11 +26,8 @@ * this is an internal abstraction layer for regular expressions */ -#ifndef _LIB_RX_H -#define _LIB_RX_H - -#include -#include +#ifndef MUTT_LIB_LIB_RX_H +#define MUTT_LIB_LIB_RX_H #include "../lib/list.h" @@ -53,8 +50,10 @@ void rx_delete(rx_t **); /* for handling lists */ int rx_list_match(list2_t*, const char*); /* match all items list agains string */ int rx_lookup(list2_t*, const char*); /* lookup pattern */ +int rx_sanitize_string(char *, ssize_t, const char *); + #define REGCOMP(X,Y,Z) regcomp(X, Y, REG_WORDS|REG_EXTENDED|(Z)) #define REGEXEC(X,Y) regexec(X, Y, 0, NULL, 0) -#endif /* !_LIB_RX_H */ +#endif /* !MUTT_LIB_LIB_RX_H */