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/5eaa9c28 Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/5eaa9c28 Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/5eaa9c28 Branch: refs/heads/master Commit: 5eaa9c2880e98f5d6bb6f84b07d76213dd344284 Parents: 1715fcd Author: Nick Wellnhofer <[email protected]> Authored: Thu Jan 31 21:50:47 2013 +0100 Committer: Nick Wellnhofer <[email protected]> Committed: Sun Feb 3 22:06:00 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/5eaa9c28/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/5eaa9c28/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;
