summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:51 +0000
committerfcolin2007-02-01 13:00:51 +0000
commit998ea3cb068a7e25eb367092b813f3ba828bc9ec (patch)
treef7b47f4e71592db48dd00d883616e0d8c471ca30
parent4cc2af2110e89135c973e5ccd14195a9c265b1cc (diff)
downloadivy-cplusplus-998ea3cb068a7e25eb367092b813f3ba828bc9ec.zip
ivy-cplusplus-998ea3cb068a7e25eb367092b813f3ba828bc9ec.tar.gz
ivy-cplusplus-998ea3cb068a7e25eb367092b813f3ba828bc9ec.tar.bz2
ivy-cplusplus-998ea3cb068a7e25eb367092b813f3ba828bc9ec.tar.xz
Utilisateur : Fcolin Date : 3/03/05 Heure : 14:02 Archivé dans $/Bus/Ivy Commentaire: Passage a la lib PCRE (vss 8)
-rw-r--r--Bus/Ivy/IvyApplication.h13
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;