pike.git/
src/
stralloc.c
Branch:
Tag:
Non-build tags
All tags
No tags
2014-09-03
2014-09-03 20:51:16 by Martin Nilsson <nilsson@opera.com>
67074e68e537ff9c7b406495d6414757b785a8d7 (
17
lines) (+
9
/-
8
)
[
Show
|
Annotate
]
Branch:
8.0
memcmp is C89 and 4.3BSD
470:
size_shift == curr->size_shift && hval == curr->hval && ( curr->str == s ||
-
!
MEMCMP
(curr->str, s,len<<size_shift))) /* found it */
+
!
memcmp
(curr->str, s,len<<size_shift))) /* found it */
{ /* *prev = curr->next; */ /* curr->next = *base; */
1496:
int tmp; if(alen > blen) {
-
tmp=
MEMCMP
(a, b, blen);
+
tmp=
memcmp
(a, b, blen);
if(tmp) return tmp; return 1; }else if(alen < blen){
-
tmp=
MEMCMP
(a, b, alen);
+
tmp=
memcmp
(a, b, alen);
if(tmp) return tmp; return -1; }else{
-
return
MEMCMP
(a, b, alen);
+
return
memcmp
(a, b, alen);
} }
1520:
int tmp; if(alen > blen) {
-
tmp=
MEMCMP
(a, b, blen);
+
tmp=
memcmp
(a, b, blen);
if(tmp) return tmp; return 1; }else if(alen < blen){
-
tmp=
MEMCMP
(a, b, alen);
+
tmp=
memcmp
(a, b, alen);
if(tmp) return tmp; return -1; }else{
-
return
MEMCMP
(a, b, alen);
+
return
memcmp
(a, b, alen);
} }else{ ptrdiff_t pos;
1592:
PMOD_EXPORT int c_compare_string(struct pike_string *s, char *foo, int len) {
-
return s->len == len && s->size_shift == 0 && !
MEMCMP
(s->str,foo,len);
+
return s->len == len && s->size_shift == 0 && !
memcmp
(s->str,foo,len);
} #ifndef HAVE_STRCOLL