Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(128)

Unified Diff: third_party/re2/patches/remove-posix-option.patch

Issue 10575037: Include RE2 library (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Less intrusive fix for Android Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/re2/patches/re2-msvc9-chrome.patch ('k') | third_party/re2/patches/remove-valgrind-code.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/patches/remove-posix-option.patch
diff --git a/third_party/re2/patches/remove-posix-option.patch b/third_party/re2/patches/remove-posix-option.patch
new file mode 100644
index 0000000000000000000000000000000000000000..ba5517247a1c1a1ffb0bae32b5939354f2585029
--- /dev/null
+++ b/third_party/re2/patches/remove-posix-option.patch
@@ -0,0 +1,24 @@
+diff -r 2d252384c5e8 re2/re2.cc
+--- a/re2/re2.cc Mon Mar 05 14:20:36 2012 -0500
++++ b/re2/re2.cc Wed Jun 20 20:32:24 2012 +0200
+@@ -40,7 +40,7 @@
+ // log errors
+ const RE2::Options RE2::DefaultOptions; // EncodingUTF8, false, false, true
+ const RE2::Options RE2::Latin1(RE2::Options::EncodingLatin1, false, false, true);
+-const RE2::Options RE2::POSIX(RE2::Options::EncodingUTF8, true, true, true);
++//const RE2::Options RE2::POSIX(RE2::Options::EncodingUTF8, true, true, true);
+ const RE2::Options RE2::Quiet(RE2::Options::EncodingUTF8, false, false, false);
+
+ // If a regular expression has no error, its error_ field points here
+diff -r 2d252384c5e8 re2/re2.h
+--- a/re2/re2.h Mon Mar 05 14:20:36 2012 -0500
++++ b/re2/re2.h Wed Jun 20 20:32:24 2012 +0200
+@@ -233,7 +233,7 @@
+ // RE2 constructor.
+ static const Options DefaultOptions;
+ static const Options Latin1; // treat input as Latin-1 (default UTF-8)
+- static const Options POSIX; // POSIX syntax, leftmost-longest match
++ //static const Options POSIX; // POSIX syntax, leftmost-longest match
+ static const Options Quiet; // do not log about regexp parse errors
+
+ // Need to have the const char* and const string& forms for implicit
« no previous file with comments | « third_party/re2/patches/re2-msvc9-chrome.patch ('k') | third_party/re2/patches/remove-valgrind-code.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698