Repository: lucy-clownfish
Updated Branches:
  refs/heads/master f7960be90 -> 9900140b3


Change order of #includes in generated boot.c

Some platforms require the bool type to be defined before including the
Perl headers.


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

Branch: refs/heads/master
Commit: 7e065b2ac1bbff2ae6e90c7d163e857dfb1ff2a8
Parents: f7960be
Author: Nick Wellnhofer <[email protected]>
Authored: Mon Mar 30 13:43:33 2015 +0200
Committer: Nick Wellnhofer <[email protected]>
Committed: Mon Mar 30 13:43:33 2015 +0200

----------------------------------------------------------------------
 compiler/src/CFCPerl.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/7e065b2a/compiler/src/CFCPerl.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCPerl.c b/compiler/src/CFCPerl.c
index 6464bdf..a5921d9 100644
--- a/compiler/src/CFCPerl.c
+++ b/compiler/src/CFCPerl.c
@@ -292,17 +292,17 @@ S_write_boot_c(CFCPerl *self) {
     const char pattern[] =
         "%s\n"
         "\n"
+        "#include \"boot.h\"\n"
+        "#include \"Clownfish/String.h\"\n"
+        "#include \"Clownfish/Class.h\"\n"
+        "%s\n"
+        "\n"
         "/* Avoid conflicts with Clownfish bool type. */\n"
         "#define HAS_BOOL\n"
         "#include \"EXTERN.h\"\n"
         "#include \"perl.h\"\n"
         "#include \"XSUB.h\"\n"
         "\n"
-        "#include \"boot.h\"\n"
-        "#include \"Clownfish/String.h\"\n"
-        "#include \"Clownfish/Class.h\"\n"
-        "%s\n"
-        "\n"
         "void\n"
         "%s() {\n"
         "%s"

Reply via email to