Eric Sunshine patch - Mods to work on NextStep

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5674 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-01-22 22:42:18 +00:00
commit 11561b2499
20 changed files with 70 additions and 88 deletions

View file

@ -1030,7 +1030,9 @@ int DohStrncmp(const DOHString_or_char *s1, const DOHString_or_char *s2, int n)
}
char *DohStrstr(const DOHString_or_char *s1, const DOHString_or_char *s2) {
return strstr(Char(s1),Char(s2));
char* p1 = Char(s1);
char* p2 = Char(s2);
return p2 == 0 || *p2 == '\0' ? p1 : strstr(p1,p2);
}
char *DohStrchr(const DOHString_or_char *s1, int ch) {