mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02:00
switch for gregex and regex.h
This commit is contained in:
parent
5dcf291f21
commit
f5cbbebc2e
8 changed files with 133 additions and 2 deletions
|
|
@ -1,6 +1,10 @@
|
|||
#ifndef __IGNORE_H
|
||||
#define __IGNORE_H
|
||||
|
||||
#ifndef USE_GREGEX
|
||||
# include <regex.h>
|
||||
#endif
|
||||
|
||||
typedef struct _IGNORE_REC IGNORE_REC;
|
||||
|
||||
struct _IGNORE_REC {
|
||||
|
|
@ -16,7 +20,12 @@ struct _IGNORE_REC {
|
|||
unsigned int regexp:1;
|
||||
unsigned int fullword:1;
|
||||
unsigned int replies:1; /* ignore replies to nick in channel */
|
||||
#ifdef USE_GREGEX
|
||||
GRegex *preg;
|
||||
#else
|
||||
unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */
|
||||
regex_t preg;
|
||||
#endif
|
||||
};
|
||||
|
||||
extern GSList *ignores;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue