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 2013/05/20 19:49:16 UTC
[lucy-commits] [2/7] git commit: refs/heads/install-c-library - Fix include file
order in lucy_boot.c
Fix include file order in lucy_boot.c
lucy_parcel.h must be included early for bool type.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/2963026d
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/2963026d
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/2963026d
Branch: refs/heads/install-c-library
Commit: 2963026d18f7498adcc256a432d4162deddf6203
Parents: 66253aa
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon May 20 18:28:53 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon May 20 18:28:53 2013 +0200
----------------------------------------------------------------------
clownfish/compiler/src/CFCPerl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/2963026d/clownfish/compiler/src/CFCPerl.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCPerl.c b/clownfish/compiler/src/CFCPerl.c
index 8efc0a1..80d0c1b 100644
--- a/clownfish/compiler/src/CFCPerl.c
+++ b/clownfish/compiler/src/CFCPerl.c
@@ -284,11 +284,11 @@ S_write_boot_c(CFCPerl *self) {
"%s\n"
"\n"
"#include \"charmony.h\"\n"
+ "#include \"%s\"\n"
"#include \"EXTERN.h\"\n"
"#include \"perl.h\"\n"
"#include \"XSUB.h\"\n"
"#include \"%s\"\n"
- "#include \"%s\"\n"
"#include \"Clownfish/CharBuf.h\"\n"
"#include \"Clownfish/VTable.h\"\n"
"%s\n"
@@ -307,8 +307,8 @@ S_write_boot_c(CFCPerl *self) {
"%s\n"
"\n";
char *content
- = CFCUtil_sprintf(pattern, self->header, self->boot_h_file,
- self->parcel_h_file, pound_includes, self->boot_func,
+ = CFCUtil_sprintf(pattern, self->header, self->parcel_h_file,
+ self->boot_h_file, pound_includes, self->boot_func,
prefix, alias_adds, isa_pushes, self->footer);
CFCUtil_write_file(self->boot_c_path, content, strlen(content));