lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [6/6] git commit: Only write headers for required parcels
Date Tue, 18 Mar 2014 16:38:03 GMT
Only write headers for required parcels


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

Branch: refs/heads/single-parcel-per-file
Commit: 168f3baa2b3a6cf2fa167ad87e8c54c2340818cc
Parents: d587230
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Tue Mar 18 17:28:25 2014 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Tue Mar 18 17:28:25 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/168f3baa/compiler/src/CFCBindCore.c
----------------------------------------------------------------------
diff --git a/compiler/src/CFCBindCore.c b/compiler/src/CFCBindCore.c
index 754e558..0e24d74 100644
--- a/compiler/src/CFCBindCore.c
+++ b/compiler/src/CFCBindCore.c
@@ -132,10 +132,11 @@ CFCBindCore_write_all_modified(CFCBindCore *self, int modified) {
         CFCParcel **parcels = CFCParcel_all_parcels();
         for (size_t i = 0; parcels[i]; ++i) {
             CFCParcel *parcel = parcels[i];
-            // TODO: Skip parcels the source parcels don't depend on.
-            S_write_parcel_h(self, parcel);
-            if (!CFCParcel_included(parcel)) {
-                S_write_parcel_c(self, parcel);
+            if (CFCParcel_required(parcel)) {
+                S_write_parcel_h(self, parcel);
+                if (!CFCParcel_included(parcel)) {
+                    S_write_parcel_c(self, parcel);
+                }
             }
         }
     }


Mime
View raw message