aboutsummaryrefslogtreecommitdiff
path: root/include/sway
diff options
context:
space:
mode:
authorndren <andreien@ctemplar.com>2022-03-12 13:02:32 +0000
committerGitHub <noreply@github.com>2022-03-12 14:02:32 +0100
commitf614f35e7354980bf4f0a66ca99be9b5f3a7ac90 (patch)
treef21dade3cbddd36c01ccf17eb3ee2bea9a29e909 /include/sway
parent04676936e71f6fccccb098f3232d16572b140902 (diff)
downloadsway-f614f35e7354980bf4f0a66ca99be9b5f3a7ac90.tar.xz
Replace pcre with pcre2
Closes: https://github.com/swaywm/sway/issues/6838
Diffstat (limited to 'include/sway')
-rw-r--r--include/sway/criteria.h7
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 @@
#ifndef _SWAY_CRITERIA_H
#define _SWAY_CRITERIA_H
-#include <pcre.h>
+#define PCRE2_CODE_UNIT_WIDTH 8
+#include <pcre2.h>
#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 {