From 02afd6c84f5e4f11b1de054f36d7d1da87206def Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 13 Jul 2018 23:36:06 +0200 Subject: Yet an other pass of clang-format --- src/sp_pcre_compat.h | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) (limited to 'src/sp_pcre_compat.h') diff --git a/src/sp_pcre_compat.h b/src/sp_pcre_compat.h index 6658316..093a9c3 100644 --- a/src/sp_pcre_compat.h +++ b/src/sp_pcre_compat.h @@ -10,27 +10,28 @@ /* We're not supporting pcre2 when it's not bundled with php7, * yet. Pull-requests are welcome. */ #if HAVE_BUNDLED_PCRE - #if PHP_VERSION_ID >= 70300 - #define SP_HAS_PCRE2 - #include "ext/pcre/pcre2lib/pcre2.h" - #else - #include "ext/pcre/pcrelib/pcre.h" - #endif +#if PHP_VERSION_ID >= 70300 +#define SP_HAS_PCRE2 +#include "ext/pcre/pcre2lib/pcre2.h" #else - #include "pcre.h" +#include "ext/pcre/pcrelib/pcre.h" +#endif +#else +#include "pcre.h" #endif #ifdef SP_HAS_PCRE2 - #define sp_pcre pcre2_code +#define sp_pcre pcre2_code #else - #define sp_pcre pcre +#define sp_pcre pcre #endif sp_pcre* sp_pcre_compile(const char* str); #define sp_is_regexp_matching_zend(regexp, zstr) \ - sp_is_regexp_matching_len(regexp, ZSTR_VAL(zstr), ZSTR_LEN(zstr)) + sp_is_regexp_matching_len(regexp, ZSTR_VAL(zstr), ZSTR_LEN(zstr)) #define sp_is_regexp_matching(regexp, str) \ - sp_is_regexp_matching_len(regexp, str, strlen(str)) -bool sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, size_t len); + sp_is_regexp_matching_len(regexp, str, strlen(str)) +bool sp_is_regexp_matching_len(const sp_pcre* regexp, const char* str, + size_t len); -#endif // SP_PCRE_COMPAT_H +#endif // SP_PCRE_COMPAT_H -- cgit v1.3