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 Fri, 21 Mar 2014 20:16:04 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/52b4793b
Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/52b4793b
Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/52b4793b

Branch: refs/heads/master
Commit: 52b4793bc598684c3385a39623a30bbf9134d590
Parents: 86c742b
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Tue Mar 18 17:28:25 2014 +0100
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Fri Mar 21 21:13:46 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/52b4793b/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