Use GLib's regexp interface (backed by PCRE)

This commit is contained in:
LemonBoy 2016-01-14 14:10:00 +01:00 committed by Ailin Nemui
commit 8e5db471e4
7 changed files with 43 additions and 88 deletions

View file

@ -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;