From f614f35e7354980bf4f0a66ca99be9b5f3a7ac90 Mon Sep 17 00:00:00 2001 From: ndren Date: Sat, 12 Mar 2022 13:02:32 +0000 Subject: Replace pcre with pcre2 Closes: https://github.com/swaywm/sway/issues/6838 --- include/sway/criteria.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/sway/criteria.h b/include/sway/criteria.h index ad8610cd..59f57f94 100644 --- a/include/sway/criteria.h +++ b/include/sway/criteria.h @@ -1,7 +1,8 @@ #ifndef _SWAY_CRITERIA_H #define _SWAY_CRITERIA_H -#include +#define PCRE2_CODE_UNIT_WIDTH 8 +#include #include "config.h" #include "list.h" #include "tree/view.h" @@ -15,13 +16,13 @@ enum criteria_type { }; enum pattern_type { - PATTERN_PCRE, + PATTERN_PCRE2, PATTERN_FOCUSED, }; struct pattern { enum pattern_type match_type; - pcre *regex; + pcre2_code *regex; }; struct criteria { -- cgit v1.2.3-54-g00ecf