diff options
author | ndren <andreien@ctemplar.com> | 2022-03-12 13:02:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-12 14:02:32 +0100 |
commit | f614f35e7354980bf4f0a66ca99be9b5f3a7ac90 (patch) | |
tree | f21dade3cbddd36c01ccf17eb3ee2bea9a29e909 /include | |
parent | Remove WLR_SWITCH_STATE_TOGGLE usage (diff) | |
download | sway-f614f35e7354980bf4f0a66ca99be9b5f3a7ac90.tar.gz sway-f614f35e7354980bf4f0a66ca99be9b5f3a7ac90.tar.zst sway-f614f35e7354980bf4f0a66ca99be9b5f3a7ac90.zip |
Replace pcre with pcre2
Closes: https://github.com/swaywm/sway/issues/6838
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/criteria.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 @@ | |||
1 | #ifndef _SWAY_CRITERIA_H | 1 | #ifndef _SWAY_CRITERIA_H |
2 | #define _SWAY_CRITERIA_H | 2 | #define _SWAY_CRITERIA_H |
3 | 3 | ||
4 | #include <pcre.h> | 4 | #define PCRE2_CODE_UNIT_WIDTH 8 |
5 | #include <pcre2.h> | ||
5 | #include "config.h" | 6 | #include "config.h" |
6 | #include "list.h" | 7 | #include "list.h" |
7 | #include "tree/view.h" | 8 | #include "tree/view.h" |
@@ -15,13 +16,13 @@ enum criteria_type { | |||
15 | }; | 16 | }; |
16 | 17 | ||
17 | enum pattern_type { | 18 | enum pattern_type { |
18 | PATTERN_PCRE, | 19 | PATTERN_PCRE2, |
19 | PATTERN_FOCUSED, | 20 | PATTERN_FOCUSED, |
20 | }; | 21 | }; |
21 | 22 | ||
22 | struct pattern { | 23 | struct pattern { |
23 | enum pattern_type match_type; | 24 | enum pattern_type match_type; |
24 | pcre *regex; | 25 | pcre2_code *regex; |
25 | }; | 26 | }; |
26 | 27 | ||
27 | struct criteria { | 28 | struct criteria { |