diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:52:43 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2000-09-14 13:52:43 +0000 |
commit | 52f00e4396ef3d5f47122233da72feb932ce3f8e (patch) | |
tree | 3eb6b0c9bff2378bef6d289969deac7e031da6cc /usr.bin/make/job.c | |
parent | cc11fcd76306cd4861949984c169afd9d9b1f759 (diff) |
Introduce a few macros to handle timestamps in an abstract way.
Replace the time stamp hash in dir.c with an open hashing structure.
In doing so, remove some nasty casts, simplify code a bit:
Dir_MTime can return a modification time, since make does not make
a distinction between out-of-date and non-existent files.
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r-- | usr.bin/make/job.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index 91081d8fd1e..83cc5c4615e 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.36 2000/09/14 13:46:45 espie Exp $ */ +/* $OpenBSD: job.c,v 1.37 2000/09/14 13:52:42 espie Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* @@ -126,7 +126,7 @@ static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94"; #else UNUSED -static char rcsid[] = "$OpenBSD: job.c,v 1.36 2000/09/14 13:46:45 espie Exp $"; +static char rcsid[] = "$OpenBSD: job.c,v 1.37 2000/09/14 13:52:42 espie Exp $"; #endif #endif /* not lint */ @@ -1099,7 +1099,7 @@ Job_CheckCommands(gn, abortProc) */ Make_HandleUse(DEFAULT, gn); Varq_Set(IMPSRC_INDEX, Varq_Value(TARGET_INDEX, gn), gn); - } else if (Dir_MTime(gn) == 0) { + } else if (is_out_of_date(Dir_MTime(gn))) { /* * The node wasn't the target of an operator we have no .DEFAULT * rule to go on and the target doesn't already exist. There's |