Index: third_party/re2/util/util.h |
diff --git a/third_party/re2/util/util.h b/third_party/re2/util/util.h |
index 11b5f4a29c59f096dde17898bba17cea39f19e7d..8f5404086119f0f584d14c97c78641041d3df7d7 100644 |
--- a/third_party/re2/util/util.h |
+++ b/third_party/re2/util/util.h |
@@ -16,6 +16,7 @@ |
#include <sys/time.h> |
#endif |
#include <time.h> |
+#include <ctype.h> // For isdigit, isalpha. |
// C++ |
#include <vector> |
@@ -89,6 +90,19 @@ template<bool> struct CompileAssert {}; |
#define arraysize(array) (sizeof(array)/sizeof((array)[0])) |
+// Fake lock annotations. For real ones, see |
+// http://code.google.com/p/data-race-test/ |
+#ifndef ANNOTATE_PUBLISH_MEMORY_RANGE |
+#define ANNOTATE_PUBLISH_MEMORY_RANGE(a, b) |
+#define ANNOTATE_IGNORE_WRITES_BEGIN() |
+#define ANNOTATE_IGNORE_WRITES_END() |
+#define ANNOTATE_BENIGN_RACE(a, b) |
+#define NO_THREAD_SAFETY_ANALYSIS |
+#define ANNOTATE_HAPPENS_BEFORE(x) |
+#define ANNOTATE_HAPPENS_AFTER(x) |
+#define ANNOTATE_UNPROTECTED_READ(x) (x) |
+#endif |
+ |
class StringPiece; |
string CEscape(const StringPiece& src); |