diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-01-03 12:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-03 12:45:27 +0100 |
commit | 5787e2b4befb61585fc312843bd7a5efd0101dce (patch) | |
tree | c0073992aa598692aceffa8a10a4695cdb068585 /src/core/ignore.h | |
parent | 91f48c6f0e03e53c0968a5433d672ea966006e59 (diff) | |
parent | 1f72b8e66a06b484dde20b6031c766a2129e0bd2 (diff) | |
download | irssi-5787e2b4befb61585fc312843bd7a5efd0101dce.zip |
Merge pull request #412 from LemonBoy/pcre-regexp
Use GLib's regexp interface (backed by PCRE)
Diffstat (limited to 'src/core/ignore.h')
-rw-r--r-- | src/core/ignore.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/ignore.h b/src/core/ignore.h index f889740f..80ae1d12 100644 --- a/src/core/ignore.h +++ b/src/core/ignore.h @@ -1,7 +1,7 @@ #ifndef __IGNORE_H #define __IGNORE_H -#ifdef HAVE_REGEX_H +#ifndef USE_GREGEX # include <regex.h> #endif @@ -20,7 +20,9 @@ struct _IGNORE_REC { unsigned int regexp:1; unsigned int fullword:1; unsigned int replies:1; /* ignore replies to nick in channel */ -#ifdef HAVE_REGEX_H +#ifdef USE_GREGEX + GRegex *preg; +#else unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */ regex_t preg; #endif |