1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 18:23:13 +02:00

Now actually use PCRE2.

This commit is contained in:
Bram Matthys
2015-06-01 09:51:33 +02:00
parent 2cacfa1d27
commit ecd06aa530
2 changed files with 32 additions and 6 deletions
+3 -1
View File
@@ -60,6 +60,8 @@
#endif
#include "auth.h"
#include "tre/regex.h"
#define PCRE2_CODE_UNIT_WIDTH 8
#include "pcre2.h"
#include "channel.h"
@@ -759,7 +761,7 @@ typedef struct _match {
char *str; /**< Text of the glob/regex/whatever. Always set. */
MatchType type;
union {
// pcre2_code *pcre_expr; /**< PCRE2 Perl-like Regex (New) */
pcre2_code *pcre2_expr; /**< PCRE2 Perl-like Regex (New) */
#ifdef USE_TRE
regex_t *tre_expr; /**< TRE POSIX Regex (Old) */
#endif