lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [2/7] git commit: refs/heads/install-c-library - Fix include file order in lucy_boot.c
Date Mon, 20 May 2013 17:49:16 GMT
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 <wellnhofer@aevum.de>
Authored: Mon May 20 18:28:53 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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));
 


Mime
View raw message