mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +02:00
Use GLib's regexp interface (backed by PCRE)
This commit is contained in:
parent
91f48c6f0e
commit
8e5db471e4
7 changed files with 43 additions and 88 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue