diff options
author | Ailin Nemui <ailin@z30a.localdomain> | 2017-01-03 12:04:56 +0100 |
---|---|---|
committer | Ailin Nemui <ailin@z30a.localdomain> | 2017-01-03 12:29:11 +0100 |
commit | f5cbbebc2ee858e8792ab40eea6abc9fd7865a28 (patch) | |
tree | df681ebf49587a386f7048ac994af8b2ebf9d405 /src/fe-common/core/hilight-text.h | |
parent | 5dcf291f2144564363f734dba15760d3a82b61c2 (diff) | |
download | irssi-f5cbbebc2ee858e8792ab40eea6abc9fd7865a28.zip |
switch for gregex and regex.h
Diffstat (limited to 'src/fe-common/core/hilight-text.h')
-rw-r--r-- | src/fe-common/core/hilight-text.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fe-common/core/hilight-text.h b/src/fe-common/core/hilight-text.h index 93c573c2..76beec1f 100644 --- a/src/fe-common/core/hilight-text.h +++ b/src/fe-common/core/hilight-text.h @@ -1,6 +1,10 @@ #ifndef __HILIGHT_TEXT_H #define __HILIGHT_TEXT_H +#ifndef USE_GREGEX +# include <regex.h> +#endif + #include "formats.h" struct _HILIGHT_REC { @@ -20,7 +24,12 @@ struct _HILIGHT_REC { unsigned int fullword:1; /* match `text' only for full words */ unsigned int regexp:1; /* `text' is a regular expression */ unsigned int case_sensitive:1;/* `text' must match case */ +#ifdef USE_GREGEX GRegex *preg; +#else + unsigned int regexp_compiled:1; /* should always be TRUE, unless regexp is invalid */ + regex_t preg; +#endif char *servertag; }; |