summaryrefslogtreecommitdiff
path: root/Ivy/IvyApplication.cxx
diff options
context:
space:
mode:
authorfcolin2007-02-01 12:59:45 +0000
committerfcolin2007-02-01 12:59:45 +0000
commit2ffcb31f76e9358254f9da9d9cefb9441a10dcaf (patch)
treeaaaa08f1883c082dccfa8e12fce2af524aaa2287 /Ivy/IvyApplication.cxx
parenta46b379fb2a8a1399606db6a753c85a6546f5336 (diff)
downloadivy-cplusplus-2ffcb31f76e9358254f9da9d9cefb9441a10dcaf.zip
ivy-cplusplus-2ffcb31f76e9358254f9da9d9cefb9441a10dcaf.tar.gz
ivy-cplusplus-2ffcb31f76e9358254f9da9d9cefb9441a10dcaf.tar.bz2
ivy-cplusplus-2ffcb31f76e9358254f9da9d9cefb9441a10dcaf.tar.xz
Utilisateur : Fcolin Date : 19/02/01 Heure : 10:37 Archivé dans $/Ivy (vss 9)
Diffstat (limited to 'Ivy/IvyApplication.cxx')
-rw-r--r--Ivy/IvyApplication.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/Ivy/IvyApplication.cxx b/Ivy/IvyApplication.cxx
index ef72bd1..2d1f937 100644
--- a/Ivy/IvyApplication.cxx
+++ b/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() );