Deleted Added
full compact
targ.c (103508) targ.c (103545)
1/*
2 * Copyright (c) 1988, 1989, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1989 by Berkeley Softworks
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.

--- 25 unchanged lines hidden (view full) ---

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)targ.c 8.2 (Berkeley) 3/19/94
39 */
40
41#include <sys/cdefs.h>
1/*
2 * Copyright (c) 1988, 1989, 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 * Copyright (c) 1989 by Berkeley Softworks
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.

--- 25 unchanged lines hidden (view full) ---

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)targ.c 8.2 (Berkeley) 3/19/94
39 */
40
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/usr.bin/make/targ.c 103508 2002-09-17 22:31:26Z jmallett $");
42__FBSDID("$FreeBSD: head/usr.bin/make/targ.c 103545 2002-09-18 16:13:03Z jmallett $");
43
44/*-
45 * targ.c --
46 * Functions for maintaining the Lst allTargets. Target nodes are
47 * kept in two structures: a Lst, maintained by the list library, and a
48 * hash table, maintained by the hash library.
49 *
50 * Interface:

--- 432 unchanged lines hidden (view full) ---

483 */
484void
485Targ_PrintType (type)
486 int type;
487{
488 int tbit;
489
490#define PRINTBIT(attr) case CONCAT(OP_,attr): printf("." #attr " "); break
43
44/*-
45 * targ.c --
46 * Functions for maintaining the Lst allTargets. Target nodes are
47 * kept in two structures: a Lst, maintained by the list library, and a
48 * hash table, maintained by the hash library.
49 *
50 * Interface:

--- 432 unchanged lines hidden (view full) ---

483 */
484void
485Targ_PrintType (type)
486 int type;
487{
488 int tbit;
489
490#define PRINTBIT(attr) case CONCAT(OP_,attr): printf("." #attr " "); break
491#define PRINTDBIT(attr) case CONCAT(OP_,attr): DEBUGF(TARG, "." #attr " "); break
491#define PRINTDBIT(attr) case CONCAT(OP_,attr): DEBUGF(TARG, ("." #attr " ")); break
492
493 type &= ~OP_OPMASK;
494
495 while (type) {
496 tbit = 1 << (ffs(type) - 1);
497 type &= ~tbit;
498
499 switch(tbit) {

--- 4 unchanged lines hidden (view full) ---

504 PRINTBIT(PRECIOUS);
505 PRINTBIT(SILENT);
506 PRINTBIT(MAKE);
507 PRINTBIT(JOIN);
508 PRINTBIT(INVISIBLE);
509 PRINTBIT(NOTMAIN);
510 PRINTDBIT(LIB);
511 /*XXX: MEMBER is defined, so CONCAT(OP_,MEMBER) gives OP_"%" */
492
493 type &= ~OP_OPMASK;
494
495 while (type) {
496 tbit = 1 << (ffs(type) - 1);
497 type &= ~tbit;
498
499 switch(tbit) {

--- 4 unchanged lines hidden (view full) ---

504 PRINTBIT(PRECIOUS);
505 PRINTBIT(SILENT);
506 PRINTBIT(MAKE);
507 PRINTBIT(JOIN);
508 PRINTBIT(INVISIBLE);
509 PRINTBIT(NOTMAIN);
510 PRINTDBIT(LIB);
511 /*XXX: MEMBER is defined, so CONCAT(OP_,MEMBER) gives OP_"%" */
512 case OP_MEMBER: DEBUGF(TARG, ".MEMBER "); break;
512 case OP_MEMBER: DEBUGF(TARG, (".MEMBER ")); break;
513 PRINTDBIT(ARCHV);
514 }
515 }
516}
517
518/*-
519 *-----------------------------------------------------------------------
520 * TargPrintNode --

--- 128 unchanged lines hidden ---
513 PRINTDBIT(ARCHV);
514 }
515 }
516}
517
518/*-
519 *-----------------------------------------------------------------------
520 * TargPrintNode --

--- 128 unchanged lines hidden ---