| Index: third_party/re2/patches/rename-posix-option.patch
|
| diff --git a/third_party/re2/patches/rename-posix-option.patch b/third_party/re2/patches/rename-posix-option.patch
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c8a8e79d4aa1b6fbea5f7bfd26124aa1e74ee5b
|
| --- /dev/null
|
| +++ b/third_party/re2/patches/rename-posix-option.patch
|
| @@ -0,0 +1,28 @@
|
| +diff --git a/third_party/re2/re2/re2.cc b/third_party/re2/re2/re2.cc
|
| +index 6acd802..3cc3dd4 100644
|
| +--- a/third_party/re2/re2/re2.cc
|
| ++++ b/third_party/re2/re2/re2.cc
|
| +@@ -38,8 +38,8 @@ const int RE2::Options::kDefaultMaxMem; // initialized in re2.h
|
| +
|
| + RE2::Options::Options(RE2::CannedOptions opt)
|
| + : encoding_(opt == RE2::Latin1 ? EncodingLatin1 : EncodingUTF8),
|
| +- posix_syntax_(opt == RE2::POSIX),
|
| +- longest_match_(opt == RE2::POSIX),
|
| ++ posix_syntax_(opt == RE2::POSIX_SYNTAX),
|
| ++ longest_match_(opt == RE2::POSIX_SYNTAX),
|
| + log_errors_(opt != RE2::Quiet),
|
| + max_mem_(kDefaultMaxMem),
|
| + literal_(false),
|
| +diff --git a/third_party/re2/re2/re2.h b/third_party/re2/re2/re2.h
|
| +index 272028b..9f5b66d 100644
|
| +--- a/third_party/re2/re2/re2.h
|
| ++++ b/third_party/re2/re2/re2.h
|
| +@@ -251,7 +251,7 @@ class RE2 {
|
| + enum CannedOptions {
|
| + DefaultOptions = 0,
|
| + Latin1, // treat input as Latin-1 (default UTF-8)
|
| +- POSIX, // POSIX syntax, leftmost-longest match
|
| ++ POSIX_SYNTAX, // POSIX syntax, leftmost-longest match
|
| + Quiet // do not log about regexp parse errors
|
| + };
|
| +
|
|
|