[svn:parrot] r49121 - in branches/gc_massacre/src: . string
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri Sep 17 23:51:33 UTC 2010
Author: bacek
Date: Fri Sep 17 23:51:33 2010
New Revision: 49121
URL: https://trac.parrot.org/parrot/changeset/49121
Log:
Don't use STRING_equal yet
It's not yet safe to use directly.
Modified:
branches/gc_massacre/src/hash.c
branches/gc_massacre/src/string/encoding.c
Modified: branches/gc_massacre/src/hash.c
==============================================================================
--- branches/gc_massacre/src/hash.c Fri Sep 17 23:51:18 2010 (r49120)
+++ branches/gc_massacre/src/hash.c Fri Sep 17 23:51:33 2010 (r49121)
@@ -291,7 +291,7 @@
STRING const *s1 = (STRING const *)search_key;
STRING const *s2 = (STRING const *)bucket_key;
- return STRING_equal(interp, s1, s2) == 0;
+ return Parrot_str_equal(interp, s1, s2) == 0;
}
@@ -1391,7 +1391,7 @@
if ((STRING_byte_length(s) == STRING_byte_length(s2))
&& (memcmp(s->strstart, s2->strstart, STRING_byte_length(s)) == 0))
break;
- } else if (STRING_equal(interp, s, s2))
+ } else if (Parrot_str_equal(interp, s, s2))
break;
}
@@ -1501,7 +1501,7 @@
if ((STRING_byte_length(s) == STRING_byte_length(s2))
&& (memcmp(s->strstart, s2->strstart, STRING_byte_length(s)) == 0))
break;
- } else if (STRING_equal(interp, s, s2))
+ } else if (Parrot_str_equal(interp, s, s2))
break;
}
bucket = bucket->next;
Modified: branches/gc_massacre/src/string/encoding.c
==============================================================================
--- branches/gc_massacre/src/string/encoding.c Fri Sep 17 23:51:18 2010 (r49120)
+++ branches/gc_massacre/src/string/encoding.c Fri Sep 17 23:51:33 2010 (r49121)
@@ -174,7 +174,7 @@
return i;
}
}
- else if (STRING_equal(interp, encodingname, fixed_8_str)) {
+ else if (Parrot_str_equal(interp, encodingname, fixed_8_str)) {
for (i = 0; i < n; ++i) {
if (STREQ(encodings[i]->name, "ascii"))
return i;
More information about the parrot-commits
mailing list