summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:00:51 +0000
committerfcolin2007-02-01 13:00:51 +0000
commit0c6442aa2e7dbf28f99a76840e005533d0d90b11 (patch)
tree8a3e83011cb57abf54a0e8af750bdf5b619a60e1
parente3e468ae17cea2149cf3b06bd64167459adf97c9 (diff)
downloadivy-cplusplus-0c6442aa2e7dbf28f99a76840e005533d0d90b11.zip
ivy-cplusplus-0c6442aa2e7dbf28f99a76840e005533d0d90b11.tar.gz
ivy-cplusplus-0c6442aa2e7dbf28f99a76840e005533d0d90b11.tar.bz2
ivy-cplusplus-0c6442aa2e7dbf28f99a76840e005533d0d90b11.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--Ivy/IvyApplication.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/Ivy/IvyApplication.h b/Ivy/IvyApplication.h
index e39e4a7..906e16c 100644
--- a/Ivy/IvyApplication.h
+++ b/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;