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 21:10:07 UTC

[lucy-commits] [23/23] git commit: refs/heads/master - 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/3468c729
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/3468c729
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/3468c729

Branch: refs/heads/master
Commit: 3468c7292d1823cabb3ec2ce2ea2b5de7e3ecdc5
Parents: f71397c
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 21:01:13 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/3468c729/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));