From 66730ef7e2aa0b998cd02a560dbe71d20948dee9 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sun, 15 Jan 2006 18:02:33 +0000 Subject: [PATCH] cosmetics git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8462 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Source/Swig/naming.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SWIG/Source/Swig/naming.c b/SWIG/Source/Swig/naming.c index 67468614c..ba89e57fa 100644 --- a/SWIG/Source/Swig/naming.c +++ b/SWIG/Source/Swig/naming.c @@ -1099,19 +1099,21 @@ int Swig_name_match_value(String *mvalue, String *value) int match = 0; char *cvalue = Char(value); char *cmvalue = Char(mvalue); -#if 1 char *sep = strstr(cmvalue,"|"); while (sep && !match) { match = strncmp(cvalue,cmvalue, sep - cmvalue) == 0; +#ifdef SWIG_DEBUG + Printf(stderr,"match_value: %s %s %d\n",cvalue,cmvalue, match); +#endif cmvalue = sep + 1; sep = strstr(cmvalue,"|"); } if (!match) { match = strcmp(cvalue,cmvalue) == 0; - } -#else - +#ifdef SWIG_DEBUG + Printf(stderr,"match_value: %s %s %d\n",cvalue,cmvalue, match); #endif + } return match; }