[svn:parrot] r48933 - trunk/src/ops

nwellnhof at svn.parrot.org nwellnhof at svn.parrot.org
Sat Sep 11 15:38:03 UTC 2010


Author: nwellnhof
Date: Sat Sep 11 15:38:03 2010
New Revision: 48933
URL: https://trac.parrot.org/parrot/changeset/48933

Log:
Fix find_codepoint opcode without ICU

Modified:
   trunk/src/ops/core_ops.c
   trunk/src/ops/experimental.ops

Modified: trunk/src/ops/core_ops.c
==============================================================================
--- trunk/src/ops/core_ops.c	Sat Sep 11 15:26:13 2010	(r48932)
+++ trunk/src/ops/core_ops.c	Sat Sep 11 15:38:03 2010	(r48933)
@@ -25965,9 +25965,8 @@
     Parrot_str_free_cstring(cstr);
     IREG(1) = U_SUCCESS(err) ? (INTVAL) codepoint : -1;
 #else
-    opcode_t * const dest = cur_opcode + 3;
-    Parrot_ex_throw_from_op_args(interp, dest, EXCEPTION_LIBRARY_ERROR,
-        "no ICU lib loaded");
+    opcode_t * const dest = Parrot_ex_throw_from_op_args(interp, cur_opcode + 3,
+        EXCEPTION_LIBRARY_ERROR, "no ICU lib loaded");return (opcode_t *)dest;
 #endif
 
 return (opcode_t *)cur_opcode + 3;}
@@ -25982,9 +25981,8 @@
     Parrot_str_free_cstring(cstr);
     IREG(1) = U_SUCCESS(err) ? (INTVAL) codepoint : -1;
 #else
-    opcode_t * const dest = cur_opcode + 3;
-    Parrot_ex_throw_from_op_args(interp, dest, EXCEPTION_LIBRARY_ERROR,
-        "no ICU lib loaded");
+    opcode_t * const dest = Parrot_ex_throw_from_op_args(interp, cur_opcode + 3,
+        EXCEPTION_LIBRARY_ERROR, "no ICU lib loaded");return (opcode_t *)dest;
 #endif
 
 return (opcode_t *)cur_opcode + 3;}

Modified: trunk/src/ops/experimental.ops
==============================================================================
--- trunk/src/ops/experimental.ops	Sat Sep 11 15:26:13 2010	(r48932)
+++ trunk/src/ops/experimental.ops	Sat Sep 11 15:38:03 2010	(r48933)
@@ -363,9 +363,9 @@
     Parrot_str_free_cstring(cstr);
     $1 = U_SUCCESS(err) ? (INTVAL) codepoint : -1;
 #else
-    opcode_t * const dest = expr NEXT();
-    Parrot_ex_throw_from_op_args(interp, dest, EXCEPTION_LIBRARY_ERROR,
-        "no ICU lib loaded");
+    opcode_t * const dest = Parrot_ex_throw_from_op_args(interp, expr NEXT(),
+        EXCEPTION_LIBRARY_ERROR, "no ICU lib loaded");
+    goto ADDRESS(dest);
 #endif
 }
 


More information about the parrot-commits mailing list