summaryrefslogtreecommitdiff
path: root/src/core/ignore.h
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2016-01-14 14:10:00 +0100
committerAilin Nemui <ailin@z30a.localdomain>2017-01-02 17:50:14 +0100
commit8e5db471e4d8b052f072ce8a351222c6edb42d19 (patch)
treed2eb11ae5ef3440db5e23ffbfcb433bb220f29d7 /src/core/ignore.h
parent91f48c6f0e03e53c0968a5433d672ea966006e59 (diff)
downloadirssi-8e5db471e4d8b052f072ce8a351222c6edb42d19.zip
Use GLib's regexp interface (backed by PCRE)
Diffstat (limited to 'src/core/ignore.h')
-rw-r--r--src/core/ignore.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/ignore.h b/src/core/ignore.h
index f889740f..6c9797f5 100644
--- a/src/core/ignore.h
+++ b/src/core/ignore.h
@@ -1,10 +1,6 @@
#ifndef __IGNORE_H
#define __IGNORE_H
-#ifdef HAVE_REGEX_H
-# include <regex.h>
-#endif
-
typedef struct _IGNORE_REC IGNORE_REC;
struct _IGNORE_REC {
@@ -20,10 +16,8 @@ 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
unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
- regex_t preg;
-#endif
+ GRegex *preg;
};
extern GSList *ignores;