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:
parent
25f7d19348
commit
11561b2499
20 changed files with 70 additions and 88 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue