posix.patch 631 B

1234567891011121314151617181920
  1. From: Георгий Кондратьев <orivej@yandex-team.ru>
  2. Date: Sun, 22 Sep 2019 17:28:22 +0000
  3. Subject: [PATCH] Rename PCRE POSIX regex symbols. DEVTOOLS-5955
  4. They are subtly ABI-incompatible with libc regex due to values of REG_NOMATCH and other constants.
  5. REVIEW: 962891
  6. --- a/pcreposix.h
  7. +++ b/pcreposix.h
  8. @@ -134,4 +134,9 @@ file. */
  9. /* The functions */
  10. +#define regcomp pcre_regcomp
  11. +#define regexec pcre_regexec
  12. +#define regerror pcre_regerror
  13. +#define regfree pcre_regfree
  14. +
  15. PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
  16. PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,