summaryrefslogtreecommitdiff
path: root/src/userdiff.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-09-13 08:55:33 +0200
committerPatrick Steinhardt <ps@pks.im>2019-09-21 15:26:19 +0200
commit7aacf0272560c793ff527722560d522bc596f209 (patch)
tree968c835fbff9e6fc88347ebd67a652b7bce39dd3 /src/userdiff.h
parentd77378eb700ae0ad75d047a7b38a42348f470a96 (diff)
downloadlibgit2-7aacf0272560c793ff527722560d522bc596f209.tar.gz
global: convert all users of POSIX regex to use our new regexp API
The old POSIX regex API has been superseded by our new regexp API. Convert all users to make use of the new one.
Diffstat (limited to 'src/userdiff.h')
-rw-r--r--src/userdiff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/userdiff.h b/src/userdiff.h
index 8bde6303f..c9a80d712 100644
--- a/src/userdiff.h
+++ b/src/userdiff.h
@@ -7,6 +7,8 @@
#ifndef INCLUDE_userdiff_h__
#define INCLUDE_userdiff_h__
+#include "regexp.h"
+
/*
* This file isolates the built in diff driver function name patterns.
* Most of these patterns are taken from Git (with permission from the
@@ -29,7 +31,7 @@ typedef struct {
#define PATTERNS(NAME, FN_PATS, WORD_PAT) \
{ NAME, FN_PATS, WORD_PAT WORD_DEFAULT, 0 }
#define IPATTERN(NAME, FN_PATS, WORD_PAT) \
- { NAME, FN_PATS, WORD_PAT WORD_DEFAULT, P_REG_ICASE }
+ { NAME, FN_PATS, WORD_PAT WORD_DEFAULT, GIT_REGEXP_ICASE }
/*
* The table of diff driver patterns