You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2015/05/06 17:32:17 UTC

[4/5] lucy-clownfish git commit: Fix whitespace in generated callbacks

Fix whitespace in generated callbacks


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

Branch: refs/heads/master
Commit: 91e680eba63b03728b93d70d928c8c5d9798236f
Parents: 43ba845
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Fri Apr 24 16:51:42 2015 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Wed May 6 17:25:43 2015 +0200

----------------------------------------------------------------------
 compiler/src/CFCPerlMethod.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/91e680eb/compiler/src/CFCPerlMethod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlMethod.c b/compiler/src/CFCPerlMethod.c
index d1b17ac..4ff0c2f 100644
--- a/compiler/src/CFCPerlMethod.c
+++ b/compiler/src/CFCPerlMethod.c
@@ -596,7 +596,8 @@ S_invalid_callback_body(CFCMethod *method) {
     char *maybe_ret
         = CFCType_is_void(return_type)
           ? CFCUtil_sprintf("")
-          : CFCUtil_sprintf("CFISH_UNREACHABLE_RETURN(%s);\n", ret_type_str);
+          : CFCUtil_sprintf("    CFISH_UNREACHABLE_RETURN(%s);\n",
+                            ret_type_str);
 
     char *perl_name = CFCPerlMethod_perl_name(method);