Repository: lucy-clownfish
Updated Branches:
  refs/heads/win_fixes_for_0.4_pt2 [created] b6e98e1ea


Use perlapi `warn` rather than fprintf.

Going through Perl's own error mechanisms when using the Perl bindings for
CFC improves compatibility.  This particular patch fixes a hang in
t/502-clash.t under ActivePerl 5.14/MSVC/Windows-Server-2008.


Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/b6e98e1e
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/b6e98e1e
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/b6e98e1e

Branch: refs/heads/win_fixes_for_0.4_pt2
Commit: b6e98e1ea5dd48ab868e0faf74c0e6e4a101953c
Parents: e8b0af8
Author: Marvin Humphrey <[email protected]>
Authored: Mon Jul 21 06:01:53 2014 +0100
Committer: Marvin Humphrey <[email protected]>
Committed: Mon Jul 21 06:01:53 2014 +0100

----------------------------------------------------------------------
 compiler/src/CFCUtil.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/b6e98e1e/compiler/src/CFCUtil.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCUtil.c b/compiler/src/CFCUtil.c
index 7d8f7a5..7bd1c79 100644
--- a/compiler/src/CFCUtil.c
+++ b/compiler/src/CFCUtil.c
@@ -510,7 +510,7 @@ CFCUtil_warn(const char* format, ...) {
     va_start(args, format);
     sv_vsetpvf(mess, format, &args);
     va_end(args);
-    fprintf(stderr, "%s\n", SvPV_nolen(mess));
+    warn("%s", SvPV_nolen(mess));
     SvREFCNT_dec(mess);
 }
 

Reply via email to