Fix S_do_propagate_modified

Adjust for separating include_dest and source_dest.


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

Branch: refs/heads/cfc-tests
Commit: 0b6904d9d93b476ac2b729e366b2406431e09c07
Parents: 2384029
Author: Nick Wellnhofer <[email protected]>
Authored: Thu Jan 31 21:50:47 2013 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Thu Jan 31 21:54:47 2013 +0100

----------------------------------------------------------------------
 clownfish/compiler/perl/t/500-hierarchy.t |    2 +-
 clownfish/compiler/src/CFCHierarchy.c     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/0b6904d9/clownfish/compiler/perl/t/500-hierarchy.t
----------------------------------------------------------------------
diff --git a/clownfish/compiler/perl/t/500-hierarchy.t 
b/clownfish/compiler/perl/t/500-hierarchy.t
index aba3c4a..dcec398 100644
--- a/clownfish/compiler/perl/t/500-hierarchy.t
+++ b/clownfish/compiler/perl/t/500-hierarchy.t
@@ -78,7 +78,7 @@ for my $class (@$classes) {
 # Generate fake C files, with times set to one second ago.
 my $one_second_ago = time() - 1;
 for my $file (@files) {
-    my $h_path = $file->h_path( $args{dest} );
+    my $h_path = $file->h_path( $inc_dest );
     my ( undef, $dir, undef ) = splitpath($h_path);
     mkpath($dir);
     sysopen( my $fh, $h_path, O_CREAT | O_EXCL | O_WRONLY )

http://git-wip-us.apache.org/repos/asf/lucy/blob/0b6904d9/clownfish/compiler/src/CFCHierarchy.c
----------------------------------------------------------------------
diff --git a/clownfish/compiler/src/CFCHierarchy.c 
b/clownfish/compiler/src/CFCHierarchy.c
index 973dfa0..cfe5a32 100644
--- a/clownfish/compiler/src/CFCHierarchy.c
+++ b/clownfish/compiler/src/CFCHierarchy.c
@@ -389,7 +389,7 @@ S_do_propagate_modified(CFCHierarchy *self, CFCClass 
*klass, int modified) {
     const char *source_dir = CFCFile_get_source_dir(file);
     CFCUTIL_NULL_CHECK(source_dir);
     char *source_path = CFCFile_cfh_path(file, source_dir);
-    char *h_path      = CFCFile_h_path(file, self->dest);
+    char *h_path      = CFCFile_h_path(file, self->inc_dest);
 
     if (!CFCUtil_current(source_path, h_path)) {
         modified = true;

Reply via email to