mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 15:42:26 +02:00
Refactor regex and implement UTF8 mode for GRegex
- with non-unicode byte to Private Use Area A mapping - move all ifdefs to iregex.h file only
This commit is contained in:
parent
31b9d115b0
commit
79bbca4644
12 changed files with 327 additions and 132 deletions
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef __IGNORE_H
|
||||
#define __IGNORE_H
|
||||
|
||||
#ifndef USE_GREGEX
|
||||
# include <regex.h>
|
||||
#endif
|
||||
#include "iregex.h"
|
||||
|
||||
typedef struct _IGNORE_REC IGNORE_REC;
|
||||
|
||||
|
|
@ -20,12 +18,7 @@ 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
|
||||
Regex *preg;
|
||||
};
|
||||
|
||||
extern GSList *ignores;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue