use direct methods for string, hash and avoid Strstr/Strnstr

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7893 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2005-11-28 02:44:12 +00:00
commit d4e1bae364
7 changed files with 193 additions and 171 deletions

View file

@ -375,7 +375,7 @@ Swig_restore(Node *n) {
len = strlen(temp);
for (ki = First(n); ki.key; ki = Next(ki)) {
if (Strncmp(temp,ki.key,len) == 0) {
if (strncmp(temp,Char(ki.key),len) == 0) {
Append(l,ki.key);
}
}