pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-09-03
2014-09-03 20:57:38 by Martin Nilsson <nilsson@opera.com>
d8e02fa0376f83442581a6936fdadc6caecdf9c3 (
39
lines) (+
13
/-
26
)
[
Show
|
Annotate
]
Branch:
8.0
Deduplication.
1516:
ptrdiff_t blen, int bsize) { if(!asize && !bsize)
-
{
-
int tmp;
-
if(alen > blen)
-
{
-
tmp=memcmp(a, b, blen);
-
if(tmp)
return
tmp;
-
return 1;
-
}else if
(
alen < blen){
-
tmp=memcmp(
a,
b,
alen
);
-
if(tmp) return tmp;
-
return -1;
-
}else{
-
return memcmp(a
, b,
alen
);
-
}
-
}else{
+
return
low_quick_binary_strcmp
(a, alen, b,
blen
);
+
ptrdiff_t pos; for(pos=0;pos< MINIMUM(alen,blen) ;pos++) {
1543:
} return alen-blen; }
-
}
+
/* Does not take locale into account *