diff options
-rw-r--r-- | Bus/Ivy/IvyApplication.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Bus/Ivy/IvyApplication.h b/Bus/Ivy/IvyApplication.h index e39e4a7..906e16c 100644 --- a/Bus/Ivy/IvyApplication.h +++ b/Bus/Ivy/IvyApplication.h @@ -6,7 +6,11 @@ #include "BufferedSocket.h"
#include "Ivy.h"
-class Regexp;
+#ifdef USE_PCRE
+#include "pcre.h"
+#else
+#include "Regexp.h"
+#endif
/////////////////////////////////////////////////////////////////////////////
// IvyApplication command target
@@ -58,7 +62,12 @@ protected: bool AppConnectedCallbackCalled;
Ivy *bus;
/* liste des souscriptions remote */
- typedef vector<Regexp*> RegexpVector;
+#ifdef USE_PCRE
+ static const int max_subexp = 200;
+ typedef vector<pcre *> RegexpVector;
+#else
+ typedef vector<Regexp *> RegexpVector;
+#endif
RegexpVector regexp_in;
friend class Ivy;
|