Subject: CVS commit: basesrc/usr.bin/make
To: None <source-changes@netbsd.org>
From: Paul Kranenburg <pk@netbsd.org>
List: source-changes
Date: 02/18/2002 02:33:41
Module Name:	basesrc
Committed By:	pk
Date:		Mon Feb 18 00:33:41 UTC 2002

Modified Files:
	basesrc/usr.bin/make: make.c

Log Message:
The use of OP_MARK in the MakeHandleUse() list callback function prevents
the removal of .USE nodes from a node's children list in case a given .USE
nodes appears multiple times on that list, preventing the target from ever
making it on the `to be made' queue.

Since the suffix rule processing code deals itself with removing the
transformation nodes from the parents to which it applies them, arrange
for doing the same for .USE nodes in MakeHandleUse() instead of in
Make_HandleUse(), and still use the OP_MARK stuff to avoid duplication
of commands.

Also, since Make_HandleUse() is not a list callback function and its
return value is no longer used, make its return type void.


To generate a diff of this commit:
cvs rdiff -r1.42 -r1.43 basesrc/usr.bin/make/make.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.