lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [5/5] git commit: Whitespace in generated XS
Date Sun, 20 Jul 2014 11:01:55 GMT
Whitespace in generated XS


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

Branch: refs/heads/master
Commit: 5e3a4105c206f97ec69d594018f6283a4eacb58a
Parents: ad9f9bb
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Jul 20 12:51:54 2014 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Jul 20 12:51:54 2014 +0200

----------------------------------------------------------------------
 compiler/src/CFCPerlConstructor.c | 1 +
 compiler/src/CFCPerlMethod.c      | 2 ++
 compiler/src/CFCPerlSub.c         | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/5e3a4105/compiler/src/CFCPerlConstructor.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlConstructor.c b/compiler/src/CFCPerlConstructor.c
index 8679502..e03487a 100644
--- a/compiler/src/CFCPerlConstructor.c
+++ b/compiler/src/CFCPerlConstructor.c
@@ -121,6 +121,7 @@ CFCPerlConstructor_xsub_def(CFCPerlConstructor *self) {
         "%s"
         "    bool args_ok;\n"
         "    %s retval;\n"
+        "\n"
         "    CFISH_UNUSED_VAR(cv);\n"
         "    if (items < 1) { CFISH_THROW(CFISH_ERR, \"Usage: %%s(class_name, ...)\",
 GvNAME(CvGV(cv))); }\n"
         "    SP -= items;\n"

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/5e3a4105/compiler/src/CFCPerlMethod.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlMethod.c b/compiler/src/CFCPerlMethod.c
index d3d53bb..dd2a5ca 100644
--- a/compiler/src/CFCPerlMethod.c
+++ b/compiler/src/CFCPerlMethod.c
@@ -265,6 +265,7 @@ S_xsub_def_labeled_params(CFCPerlMethod *self) {
         "    %s method;\n"
         "    bool args_ok;\n"
         "%s"
+        "\n"
         "    CFISH_UNUSED_VAR(cv);\n"
         "    if (items < 1) { CFISH_THROW(CFISH_ERR, \"Usage: %%s(%s, ...)\",  GvNAME(CvGV(cv)));
}\n"
         "    SP -= items;\n"
@@ -389,6 +390,7 @@ S_xsub_def_positional_args(CFCPerlMethod *self) {
         "%s"
         "    %s method;\n"
         "%s"
+        "\n"
         "    CFISH_UNUSED_VAR(cv);\n"
         "    SP -= items;\n"
         "    %s;\n"

http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/5e3a4105/compiler/src/CFCPerlSub.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerlSub.c b/compiler/src/CFCPerlSub.c
index 226d15a..063d59a 100644
--- a/compiler/src/CFCPerlSub.c
+++ b/compiler/src/CFCPerlSub.c
@@ -240,7 +240,7 @@ CFCPerlSub_build_allot_params(CFCPerlSub *self) {
     allot_params
         = CFCUtil_cat(allot_params,
                       "args_ok = XSBind_allot_params(\n"
-                      "        &(ST(0)), 1, items, ", NULL);
+                      "        &(ST(0)), 1, items,\n", NULL);
     for (size_t i = 1; i < num_vars; i++) {
         CFCVariable *var = arg_vars[i];
         const char  *val = arg_inits[i];


Mime
View raw message