You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2014/07/20 20:56:10 UTC
[5/7] git commit: Define parcel privacy macros before including
XSBind.h
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/133fb925
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/133fb925
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/133fb925
Branch: refs/heads/master
Commit: 133fb925c22e693fc08ae3c3a3c1393d2a75b7b8
Parents: 9b1c226
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Sat Jul 19 18:05:24 2014 +0200
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Sun Jul 20 19:54:48 2014 +0100
----------------------------------------------------------------------
compiler/src/CFCPerl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/133fb925/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];