[svn:parrot] r46920 - branches/ucs4_encoding/src/string/encoding
darbelo at svn.parrot.org
darbelo at svn.parrot.org
Sun May 23 21:07:53 UTC 2010
Author: darbelo
Date: Sun May 23 21:07:52 2010
New Revision: 46920
URL: https://trac.parrot.org/parrot/changeset/46920
Log:
Fix non-ICU builds.
Modified:
branches/ucs4_encoding/src/string/encoding/ucs4.c
Modified: branches/ucs4_encoding/src/string/encoding/ucs4.c
==============================================================================
--- branches/ucs4_encoding/src/string/encoding/ucs4.c Sun May 23 20:30:36 2010 (r46919)
+++ branches/ucs4_encoding/src/string/encoding/ucs4.c Sun May 23 21:07:52 2010 (r46920)
@@ -328,8 +328,15 @@
get_codepoints(PARROT_INTERP, ARGIN(const STRING *src), UINTVAL offset, UINTVAL count)
{
ASSERT_ARGS(get_codepoints)
+#if PARROT_HAS_ICU
return Parrot_str_new_init(interp, (char*)src->strstart + offset * sizeof (UChar32),
count * sizeof (UChar32), src->encoding, src->charset, 0);
+#else
+ UNUSED(src);
+ UNUSED(offset);
+ UNUSED(count);
+ no_ICU_lib(interp);
+#endif
}
/*
@@ -409,7 +416,7 @@
*/
static UINTVAL
-ucs4_decode_and_advance(SHIM_INTERP, ARGMOD(String_iter *i))
+ucs4_decode_and_advance(PARROT_INTERP, ARGMOD(String_iter *i))
{
ASSERT_ARGS(ucs4_decode_and_advance)
#if PARROT_HAS_ICU
@@ -438,7 +445,7 @@
*/
static void
-ucs4_encode_and_advance(SHIM_INTERP, ARGMOD(String_iter *i), UINTVAL c)
+ucs4_encode_and_advance(PARROT_INTERP, ARGMOD(String_iter *i), UINTVAL c)
{
ASSERT_ARGS(ucs4_encode_and_advance)
#if PARROT_HAS_ICU
@@ -492,7 +499,7 @@
*/
static void
-ucs4_set_position(SHIM_INTERP, ARGMOD(String_iter *i), UINTVAL n)
+ucs4_set_position(PARROT_INTERP, ARGMOD(String_iter *i), UINTVAL n)
{
ASSERT_ARGS(ucs4_set_position)
#if PARROT_HAS_ICU
More information about the parrot-commits
mailing list