Created
May 20, 2014 12:48
-
-
Save letoh/c063eca46c83db4f8c46 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile b/Makefile | |
| index 9207d9e..4acade0 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -1,6 +1,6 @@ | |
| ALL=re2 pcre onig boost | |
| CC=$(CXX) | |
| -CXXFLAGS=-O5 | |
| +CXXFLAGS=-O3 | |
| RE2LIBS=-lpthread -lre2 | |
| PCRELIBS=-lpcrecpp | |
| diff --git a/_Prof.h b/_Prof.h | |
| index b212a7d..2a26a29 100644 | |
| --- a/_Prof.h | |
| +++ b/_Prof.h | |
| @@ -6,5 +6,5 @@ using namespace std; | |
| struct _Prof { | |
| void Prof(); | |
| virtual bool RE(string&, string&) = 0; | |
| - bool RE(string* s , string* pat) {this->RE(*s, *pat); } | |
| + bool RE(string* s , string* pat) { return this->RE(*s, *pat); } | |
| }; | |
| diff --git a/boost.cpp b/boost.cpp | |
| index 27e04ba..b890c8d 100644 | |
| --- a/boost.cpp | |
| +++ b/boost.cpp | |
| @@ -9,7 +9,7 @@ struct BoostRegexProf : public _Prof { | |
| } | |
| }; | |
| -main() | |
| +int main(int argc, char *argv[]) | |
| { | |
| (new BoostRegexProf())->Prof(); | |
| } | |
| diff --git a/pcre.cpp b/pcre.cpp | |
| index c396d05..f0bb362 100644 | |
| --- a/pcre.cpp | |
| +++ b/pcre.cpp | |
| @@ -9,7 +9,7 @@ struct PCREProf : public _Prof { | |
| } | |
| }; | |
| -main() | |
| +int main(int argc, char *argv[]) | |
| { | |
| (new PCREProf())->Prof(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment