lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [1/8] lucy-clownfish git commit: Remove some unneeded includes from parcel.c
Date Sun, 04 Jan 2015 23:33:45 GMT
Repository: lucy-clownfish
Updated Branches:
  refs/heads/optimize_autogen [created] 9e23ec51b


Remove some unneeded includes from parcel.c


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

Branch: refs/heads/optimize_autogen
Commit: a725c99f11713cb143b363148ae7b13dedd18c09
Parents: d9def8b
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun Nov 30 21:10:26 2014 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Jan 4 23:59:18 2015 +0100

----------------------------------------------------------------------
 compiler/src/CFCBindCore.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/a725c99f/compiler/src/CFCBindCore.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCBindCore.c b/compiler/src/CFCBindCore.c
index 391d79c..e73eee8 100644
--- a/compiler/src/CFCBindCore.c
+++ b/compiler/src/CFCBindCore.c
@@ -429,16 +429,13 @@ S_write_parcel_c(CFCBindCore *self, CFCParcel *parcel) {
     char pattern[] =
         "%s\n"
         "\n"
-        "#define C_CFISH_CLASS\n"            // Needed for abstract methods.
         "#include <stdio.h>\n"
         "#include <stdlib.h>\n"
-        "%s\n"
-        "#include \"%sparcel.h\"\n"
+        "\n"
+        "#define C_CFISH_CLASS\n"            // Needed for abstract methods.
+        "%s"
+        "\n"
         "#include \"callbacks.h\"\n"
-        "#include \"Clownfish/String.h\"\n"  // Needed for dump/load.
-        "#include \"Clownfish/Err.h\"\n"     // Needed for dump/load.
-        "#include \"Clownfish/Num.h\"\n"     // Needed for dump/load.
-        "#include \"Clownfish/VArray.h\"\n"  // Needed for dump/load.
         "#include \"Clownfish/Class.h\"\n"   // Needed for bootstrap.
         "%s\n"
         "\n"
@@ -475,8 +472,8 @@ S_write_parcel_c(CFCBindCore *self, CFCParcel *parcel) {
         "\n"
         "%s\n";
     char *file_content
-        = CFCUtil_sprintf(pattern, self->c_header, privacy_syms, prefix,
-                          includes, c_data, class_specs, prefix, inh_bootstrap,
+        = CFCUtil_sprintf(pattern, self->c_header, privacy_syms, includes,
+                          c_data, class_specs, prefix, inh_bootstrap,
                           num_specs, prefix, prefix, prereq_bootstrap, prefix,
                           self->c_footer);
 


Mime
View raw message