[svn:parrot] r45937 - trunk/src/string/encoding

fperrad at svn.parrot.org fperrad at svn.parrot.org
Fri Apr 23 08:32:01 UTC 2010


Author: fperrad
Date: Fri Apr 23 08:32:00 2010
New Revision: 45937
URL: https://trac.parrot.org/parrot/changeset/45937

Log:
fix build, ISO C90 forbids mixed declarations and code

Modified:
   trunk/src/string/encoding/ucs2.c
   trunk/src/string/encoding/utf16.c

Modified: trunk/src/string/encoding/ucs2.c
==============================================================================
--- trunk/src/string/encoding/ucs2.c	Fri Apr 23 05:32:43 2010	(r45936)
+++ trunk/src/string/encoding/ucs2.c	Fri Apr 23 08:32:00 2010	(r45937)
@@ -484,9 +484,9 @@
 {
     ASSERT_ARGS(ucs2_hash)
 #if PARROT_HAS_ICU
-    UNUSED(interp);
     const UChar *pos = (const UChar*) s->strstart;
     UINTVAL len = s->strlen;
+    UNUSED(interp);
 
     while (len--) {
         hashval += hashval << 5;

Modified: trunk/src/string/encoding/utf16.c
==============================================================================
--- trunk/src/string/encoding/utf16.c	Fri Apr 23 05:32:43 2010	(r45936)
+++ trunk/src/string/encoding/utf16.c	Fri Apr 23 08:32:00 2010	(r45937)
@@ -264,9 +264,9 @@
 {
     ASSERT_ARGS(get_codepoint)
 #if PARROT_HAS_ICU
-    UNUSED(interp);
     const UChar * const s = (UChar*) src->strstart;
     UINTVAL c, pos;
+    UNUSED(interp);
 
     pos = 0;
     U16_FWD_N_UNSAFE(s, pos, offset);


More information about the parrot-commits mailing list