diff --git a/Makefile b/Makefile index 9a748a8ba1a9226007ae2e4d66a14923197f994c..12f1fb29a7c26bcb5337f544e4fb0412d93bc6f5 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,7 @@ obj/so/test/%: obj/so/libre2.$(SOEXT) obj/libre2.a obj/re2/testing/%.o $(TESTOFI # Filter out dump.o because testing::TempDir() isn't available for it. obj/test/regexp_benchmark: obj/libre2.a obj/re2/testing/regexp_benchmark.o $(TESTOFILES) obj/re2/testing/util/benchmark.o @mkdir -p obj/test - $(CXX) -o $@ obj/re2/testing/regexp_benchmark.o $(filter-out obj/re2/testing/dump.o, $(TESTOFILES)) obj/re2/testing/util/benchmark.o obj/libre2.a $(RE2_LDFLAGS) $(LDFLAGS) + $(CXX) -o $@ obj/re2/testing/regexp_benchmark.o $(filter-out obj/re2/testing/dump.o, $(TESTOFILES)) obj/re2/testing/util/benchmark.o obj/libre2.a target/release/libcapi.a $(RE2_LDFLAGS) $(LDFLAGS) ifdef REBUILD_TABLES .PRECIOUS: re2/perl_groups.cc diff --git a/re2/filtered_re2.cc b/re2/filtered_re2.cc index e9dfc546399f3ae12b49eafd3d635c133671aba9..1e1cac5f7359ac3d9bee41f3bdb8c96969fff598 100644 --- a/re2/filtered_re2.cc +++ b/re2/filtered_re2.cc @@ -15,14 +15,13 @@ #include #include #include -#include "re2/filtered_re2.h" #include #include #include #include "re2/testing/util/util.h" #include "re2/testing/util/logging.h" -// #include "re2/prefilter.h" +#include "re2/filtered_re2.h" extern "C" { #include "regex-capi/include/regex_capi.h" @@ -33,7 +32,6 @@ namespace re2 std::map> map_atoms; - // #include "re2/prefilter_tree.h" class PrefilterTree { public: diff --git a/re2/re2.cc b/re2/re2.cc index 4bf66bcc7d425cd24bdacaee55fef5f0a80b3b4b..ef4c5d7a87ac850b8fa77774e1efd90e8cf2940f 100644 --- a/re2/re2.cc +++ b/re2/re2.cc @@ -13,7 +13,6 @@ * Description: Interface implementation in re2.h. ******************************************************************************/ -#include "re2/re2.h" #include #include #include @@ -34,8 +33,7 @@ #include "re2/testing/util/util.h" #include "re2/testing/util/logging.h" -// #include "util/strutil.h" -// #include "util/utf.h" +#include "re2/re2.h" #include "regex_internal.h" using namespace std; diff --git a/re2/regex_internal.h b/re2/regex_internal.h index cab67fe7ced20bf7eba5e72791c1574662057073..ba7968d79f7fb2bb9249ad4d4f64a1cc138dbc11 100644 --- a/re2/regex_internal.h +++ b/re2/regex_internal.h @@ -13,16 +13,13 @@ * Description: . ******************************************************************************/ -// #include "re2/sparse_array.h" #include "regex-capi/include/regex_capi.h" namespace re2 { -// #include "re2/prog.h" // Compiled form of regexp program. class Prog { //rure 更名为 Prog }; -// #include "re2/regexp.h" class Regexp { public: diff --git a/re2/set.cc b/re2/set.cc index 28d3be827a8ecab615b95ae0fe22a63362169677..e764718440fcd053b6bb03af3875558c7e21a512 100644 --- a/re2/set.cc +++ b/re2/set.cc @@ -13,7 +13,7 @@ * Description: Interface implementation in set.h. ******************************************************************************/ -#include "re2/set.h" + #include #include @@ -25,8 +25,9 @@ #include "re2/testing/util/util.h" #include "re2/testing/util/logging.h" #include "re2/re2.h" -#include "regex_internal.h" +#include "re2/set.h" #include "re2/stringpiece.h" +#include "regex_internal.h" #include "regex-capi/include/regex_capi.h" using namespace std; diff --git a/re2/stringpiece.cc b/re2/stringpiece.cc index ea822d27de1a13425f70bc12e09833382b9a5147..5f2294602a7613ceb4e8a208584e837416b6fc1f 100644 --- a/re2/stringpiece.cc +++ b/re2/stringpiece.cc @@ -2,10 +2,9 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -#include "re2/stringpiece.h" - #include +#include "re2/stringpiece.h" #include "re2/testing/util/util.h" namespace re2 { diff --git a/re2/testing/re2_test.cc b/re2/testing/re2_test.cc index 80aa5b691c0b23cc2b772a5011fca226295e2fa5..5d22f95ec87069c91e7eb388b0d25abcf06c8cee 100644 --- a/re2/testing/re2_test.cc +++ b/re2/testing/re2_test.cc @@ -22,9 +22,7 @@ #include "re2/testing/util/logging.h" #include "re2/testing/util/strutil.h" #include "re2/re2.h" -/*被注释掉的 -#include "re2/regexp.h" -*/ + namespace re2 { TEST(RE2, HexTests) { diff --git a/re2/testing/regexp_benchmark.cc b/re2/testing/regexp_benchmark.cc index d2b8c1dea8796bd7d9616881a498385851b99d00..90c7202eb8ba4280c7a49fc9ecc122e86ea9c2ca 100644 --- a/re2/testing/regexp_benchmark.cc +++ b/re2/testing/regexp_benchmark.cc @@ -18,20 +18,13 @@ #include "re2/testing/util/benchmark.h" #include "re2/testing/util/test.h" -// #include "util/flags.h" #include "re2/testing/util/logging.h" -// #include "util/malloc_counter.h" -// #include "util/strutil.h" -// #include "re2/prog.h" #include "re2/re2.h" #include "re2/set.h" -// #include "re2/regexp.h" -// #include "util/mutex.h" -// #include "util/pcre.h" extern "C" { -#include +#include "regex-capi/include/regex_capi.h" } namespace re2 { diff --git a/re2/testing/util/benchmark.cc b/re2/testing/util/benchmark.cc index 0545c9bd675b4c89c184b64ccd0e5f6bbc3132de..d3398b549e78d776e51e6b251466e7e60f2616b3 100644 --- a/re2/testing/util/benchmark.cc +++ b/re2/testing/util/benchmark.cc @@ -9,7 +9,6 @@ #include #include "re2/testing/util/benchmark.h" -// #include "util/flags.h" #include "re2/re2.h" #ifdef _WIN32 diff --git a/regex-capi/ctest/test.c b/regex-capi/ctest/test.c index 295e9ca3d69af14cf536a1b01d7d6a92b59177eb..9505464949919751ff7f8c91975e9f7d540afbc8 100644 --- a/regex-capi/ctest/test.c +++ b/regex-capi/ctest/test.c @@ -4,7 +4,7 @@ #include #include -#include "regex_capi.h" +#include "regex-capi/include/regex_capi.h" #ifndef DEBUG #define DEBUG false