Just fixed comment (strncmp is ANSI C so will be present on all systems as SWIG requires an ANSI compiler)
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6278 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5448fe8df3
commit
0a92a2bfe0
1 changed files with 1 additions and 1 deletions
|
|
@ -117,7 +117,7 @@ String_cmp(DOH *so1, DOH *so2)
|
||||||
register char *c1 = s1->str;
|
register char *c1 = s1->str;
|
||||||
register char *c2 = s2->str;
|
register char *c2 = s2->str;
|
||||||
#if 1
|
#if 1
|
||||||
/* this is better, but strncmp could be not present in all the systems? */
|
/* this should be faster */
|
||||||
if (len != s2->len) {
|
if (len != s2->len) {
|
||||||
return (len < s2->len) ? -1 : 1;
|
return (len < s2->len) ? -1 : 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue