summaryrefslogtreecommitdiff
path: root/Bus
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:59:45 +0000
committerfcolin2007-02-01 12:59:45 +0000
commit6fbf1d74abfa58129357b9f833c8a17a7f6296c1 (patch)
tree9c6109d0256233a9069137cd16a645c5e9d60752 /Bus
parent16a071fea1a2c33d03b8c9c86661012e13642c91 (diff)
downloadivy-cplusplus-6fbf1d74abfa58129357b9f833c8a17a7f6296c1.zip
ivy-cplusplus-6fbf1d74abfa58129357b9f833c8a17a7f6296c1.tar.gz
ivy-cplusplus-6fbf1d74abfa58129357b9f833c8a17a7f6296c1.tar.bz2
ivy-cplusplus-6fbf1d74abfa58129357b9f833c8a17a7f6296c1.tar.xz
Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 9)
Diffstat (limited to 'Bus')
-rw-r--r--Bus/Ivy/IvyApplication.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Bus/Ivy/IvyApplication.cxx b/Bus/Ivy/IvyApplication.cxx
index ef72bd1..2d1f937 100644
--- a/Bus/Ivy/IvyApplication.cxx
+++ b/Bus/Ivy/IvyApplication.cxx
@@ -11,7 +11,7 @@
#include "IvyApplication.h"
#include "Regexp.h"
-#define IVY_DEBUG
+//#define IVY_DEBUG
#define ARG_START "\002"
#define ARG_END "\003"
@@ -137,6 +137,9 @@ void IvyApplication::OnReceive(char * line)
}
regexp_in.reserve( id +1 );
regexp_in[ id ] = exp;
+#ifdef IVY_DEBUG
+ TRACE("Adding regexp[%d]='%s'\n",id,arg);
+#endif //IVY_DEBUG
break;
case DelRegexp:
@@ -277,9 +280,9 @@ int IvyApplication::SendMsg(const char *message)
if ( exp && exp->Match( message ) )
{
string buffer;
- for ( int i = 1; i < exp->SubStrings()+1; i++ )
+ for ( int j = 1; j < exp->SubStrings()+1; j++ )
{
- buffer += (*exp)[i];
+ buffer += (*exp)[j];
buffer += ARG_END;
}
SendMsg( Msg, i, buffer.c_str() );