Deleted Added
full compact
targ.c (236769) targ.c (237578)
1/* $NetBSD: targ.c,v 1.56 2010/11/25 21:31:09 christos Exp $ */
1/* $NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $ */
2
3/*
4 * Copyright (c) 1988, 1989, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.
9 *

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

64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 * SUCH DAMAGE.
69 */
70
71#ifndef MAKE_NATIVE
2
3/*
4 * Copyright (c) 1988, 1989, 1990, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software contributed to Berkeley by
8 * Adam de Boor.
9 *

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

64 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
65 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
66 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
67 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
68 * SUCH DAMAGE.
69 */
70
71#ifndef MAKE_NATIVE
72static char rcsid[] = "$NetBSD: targ.c,v 1.56 2010/11/25 21:31:09 christos Exp $";
72static char rcsid[] = "$NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $";
73#else
74#include <sys/cdefs.h>
75#ifndef lint
76#if 0
77static char sccsid[] = "@(#)targ.c 8.2 (Berkeley) 3/19/94";
78#else
73#else
74#include <sys/cdefs.h>
75#ifndef lint
76#if 0
77static char sccsid[] = "@(#)targ.c 8.2 (Berkeley) 3/19/94";
78#else
79__RCSID("$NetBSD: targ.c,v 1.56 2010/11/25 21:31:09 christos Exp $");
79__RCSID("$NetBSD: targ.c,v 1.57 2012/06/12 19:21:51 joerg Exp $");
80#endif
81#endif /* not lint */
82#endif
83
84/*-
85 * targ.c --
86 * Functions for maintaining the Lst allTargets. Target nodes are
87 * kept in two structures: a Lst, maintained by the list library, and a

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

507 */
508void
509Targ_SetMain(GNode *gn)
510{
511 mainTarg = gn;
512}
513
514static int
80#endif
81#endif /* not lint */
82#endif
83
84/*-
85 * targ.c --
86 * Functions for maintaining the Lst allTargets. Target nodes are
87 * kept in two structures: a Lst, maintained by the list library, and a

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

507 */
508void
509Targ_SetMain(GNode *gn)
510{
511 mainTarg = gn;
512}
513
514static int
515TargPrintName(void *gnp, void *pflags __unused)
515TargPrintName(void *gnp, void *pflags MAKE_ATTR_UNUSED)
516{
517 GNode *gn = (GNode *)gnp;
518
519 fprintf(debug_file, "%s%s ", gn->name, gn->cohort_num);
520
521 return 0;
522}
523

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

712 * 0.
713 *
714 * Side Effects:
715 * The name of each file is printed preceded by #\t
716 *
717 *-----------------------------------------------------------------------
718 */
719static int
516{
517 GNode *gn = (GNode *)gnp;
518
519 fprintf(debug_file, "%s%s ", gn->name, gn->cohort_num);
520
521 return 0;
522}
523

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

712 * 0.
713 *
714 * Side Effects:
715 * The name of each file is printed preceded by #\t
716 *
717 *-----------------------------------------------------------------------
718 */
719static int
720TargPrintOnlySrc(void *gnp, void *dummy __unused)
720TargPrintOnlySrc(void *gnp, void *dummy MAKE_ATTR_UNUSED)
721{
722 GNode *gn = (GNode *)gnp;
723 if (!OP_NOP(gn->type))
724 return 0;
725
726 fprintf(debug_file, "#\t%s [%s] ",
727 gn->name, gn->path ? gn->path : gn->name);
728 Targ_PrintType(gn->type);

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

785 * will be called for each cohort node.
786 *
787 * If the node has recursive predecessors, then
788 * TargPropagateRecpred() will be called for each recursive
789 * predecessor.
790 *-----------------------------------------------------------------------
791 */
792static int
721{
722 GNode *gn = (GNode *)gnp;
723 if (!OP_NOP(gn->type))
724 return 0;
725
726 fprintf(debug_file, "#\t%s [%s] ",
727 gn->name, gn->path ? gn->path : gn->name);
728 Targ_PrintType(gn->type);

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

785 * will be called for each cohort node.
786 *
787 * If the node has recursive predecessors, then
788 * TargPropagateRecpred() will be called for each recursive
789 * predecessor.
790 *-----------------------------------------------------------------------
791 */
792static int
793TargPropagateNode(void *gnp, void *junk __unused)
793TargPropagateNode(void *gnp, void *junk MAKE_ATTR_UNUSED)
794{
795 GNode *gn = (GNode *)gnp;
796
797 if (gn->type & OP_DOUBLEDEP)
798 Lst_ForEach(gn->cohorts, TargPropagateCohort, gnp);
799 return (0);
800}
801

--- 47 unchanged lines hidden ---
794{
795 GNode *gn = (GNode *)gnp;
796
797 if (gn->type & OP_DOUBLEDEP)
798 Lst_ForEach(gn->cohorts, TargPropagateCohort, gnp);
799 return (0);
800}
801

--- 47 unchanged lines hidden ---