Left: | ||
Right: |
OLD | NEW |
---|---|
1 #ifndef ADBLOCKPLUS_FILTER_ENGINE_H | 1 #ifndef ADBLOCKPLUS_FILTER_ENGINE_H |
2 #define ADBLOCKPLUS_FILTER_ENGINE_H | 2 #define ADBLOCKPLUS_FILTER_ENGINE_H |
3 | 3 |
4 #include <vector> | 4 #include <vector> |
5 #include <map> | 5 #include <map> |
6 #include <string> | 6 #include <string> |
7 #ifdef _WIN32 || _WIN64 | |
Wladimir Palant
2013/04/09 05:47:07
I would prefer #if _MSC_VER_ here - it's cleaner,
| |
8 #include <memory> | |
9 #include <cctype> | |
10 #include <functional> | |
Wladimir Palant
2013/04/09 05:47:07
Are these two headers really required on Windows?
Oleksandr
2013/04/09 05:54:21
<cctype> - for isspace
<functional> - for not1 and
Wladimir Palant
2013/04/09 06:43:48
Then they should be added at the top of FilterEngi
Felix Dahlke
2013/04/09 08:18:06
If it compiles on Linux/Android without them, they
Wladimir Palant
2013/04/09 08:38:32
We are using functions from these headers. It mere
| |
11 #else | |
7 #include <tr1/memory> | 12 #include <tr1/memory> |
13 #endif | |
8 | 14 |
9 namespace AdblockPlus | 15 namespace AdblockPlus |
10 { | 16 { |
11 class JsEngine; | 17 class JsEngine; |
12 class FilterEngine; | 18 class FilterEngine; |
13 | 19 |
14 class JsObject | 20 class JsObject |
15 { | 21 { |
16 public: | 22 public: |
17 std::string GetProperty(const std::string& name, const std::string& defaultV alue) const; | 23 std::string GetProperty(const std::string& name, const std::string& defaultV alue) const; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 #if FILTER_ENGINE_STUBS | 115 #if FILTER_ENGINE_STUBS |
110 std::map<std::string, FilterPtr> knownFilters; | 116 std::map<std::string, FilterPtr> knownFilters; |
111 std::vector<FilterPtr> listedFilters; | 117 std::vector<FilterPtr> listedFilters; |
112 std::map<std::string, SubscriptionPtr> knownSubscriptions; | 118 std::map<std::string, SubscriptionPtr> knownSubscriptions; |
113 std::vector<SubscriptionPtr> listedSubscriptions; | 119 std::vector<SubscriptionPtr> listedSubscriptions; |
114 #endif | 120 #endif |
115 }; | 121 }; |
116 } | 122 } |
117 | 123 |
118 #endif | 124 #endif |
OLD | NEW |