lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject git commit: Define parcel privacy macros before including XSBind.h
Date Sat, 19 Jul 2014 16:06:54 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/windows_fixes_for_0.4 2a62a2f95 -> fd9762ce0


Define parcel privacy macros before including XSBind.h


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

Branch: refs/heads/windows_fixes_for_0.4
Commit: fd9762ce08f79e7031b6789a441b267ef3c2dad6
Parents: 2a62a2f
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sat Jul 19 18:05:24 2014 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sat Jul 19 18:05:24 2014 +0200

----------------------------------------------------------------------
 compiler/src/CFCPerl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/fd9762ce/compiler/src/CFCPerl.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerl.c b/compiler/src/CFCPerl.c
index 14534fe..7290762 100644
--- a/compiler/src/CFCPerl.c
+++ b/compiler/src/CFCPerl.c
@@ -358,9 +358,6 @@ S_xs_file_contents(CFCPerl *self, const char *generated_xs,
     const char pattern[] =
         "%s"
         "\n"
-        "#include \"XSBind.h\"\n"
-        "#include \"boot.h\"\n"
-        "\n"
         "%s\n"
         "\n"
         "MODULE = %s   PACKAGE = %s\n"
@@ -412,6 +409,10 @@ CFCPerl_write_bindings(CFCPerl *self) {
     }
     generated_xs = CFCUtil_cat(generated_xs, "\n", NULL);
 
+    // Include XSBind.h and boot.h.
+    generated_xs = CFCUtil_cat(generated_xs, "#include \"XSBind.h\"\n", NULL);
+    generated_xs = CFCUtil_cat(generated_xs, "#include \"boot.h\"\n", NULL);
+
     // Pound-includes for generated headers.
     for (size_t i = 0; ordered[i] != NULL; i++) {
         CFCClass *klass = ordered[i];


Mime
View raw message