Deleted Added
full compact
make.c (236769) make.c (237578)
1/* $NetBSD: make.c,v 1.86 2012/05/10 19:53:26 christos Exp $ */
1/* $NetBSD: make.c,v 1.87 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: make.c,v 1.86 2012/05/10 19:53:26 christos Exp $";
72static char rcsid[] = "$NetBSD: make.c,v 1.87 2012/06/12 19:21:51 joerg Exp $";
73#else
74#include <sys/cdefs.h>
75#ifndef lint
76#if 0
77static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93";
78#else
73#else
74#include <sys/cdefs.h>
75#ifndef lint
76#if 0
77static char sccsid[] = "@(#)make.c 8.1 (Berkeley) 6/6/93";
78#else
79__RCSID("$NetBSD: make.c,v 1.86 2012/05/10 19:53:26 christos Exp $");
79__RCSID("$NetBSD: make.c,v 1.87 2012/06/12 19:21:51 joerg Exp $");
80#endif
81#endif /* not lint */
82#endif
83
84/*-
85 * make.c --
86 * The functions which perform the examination of targets and
87 * their suitability for creation

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

134static int MakeTimeStamp(void *, void *);
135static int MakeHandleUse(void *, void *);
136static Boolean MakeStartJobs(void);
137static int MakePrintStatus(void *, void *);
138static int MakeCheckOrder(void *, void *);
139static int MakeBuildChild(void *, void *);
140static int MakeBuildParent(void *, void *);
141
80#endif
81#endif /* not lint */
82#endif
83
84/*-
85 * make.c --
86 * The functions which perform the examination of targets and
87 * their suitability for creation

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

134static int MakeTimeStamp(void *, void *);
135static int MakeHandleUse(void *, void *);
136static Boolean MakeStartJobs(void);
137static int MakePrintStatus(void *, void *);
138static int MakeCheckOrder(void *, void *);
139static int MakeBuildChild(void *, void *);
140static int MakeBuildParent(void *, void *);
141
142__dead static void
142MAKE_ATTR_DEAD static void
143make_abort(GNode *gn, int line)
144{
145 static int two = 2;
146
147 fprintf(debug_file, "make_abort from line %d\n", line);
148 Targ_PrintNode(gn, &two);
149 Lst_ForEach(toBeMade, Targ_PrintNode, &two);
150 Targ_PrintGraph(3);

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

862 * Results:
863 * Always returns 0
864 *
865 * Side Effects:
866 * The ALLSRC variable for the given node is extended.
867 *-----------------------------------------------------------------------
868 */
869static int
143make_abort(GNode *gn, int line)
144{
145 static int two = 2;
146
147 fprintf(debug_file, "make_abort from line %d\n", line);
148 Targ_PrintNode(gn, &two);
149 Lst_ForEach(toBeMade, Targ_PrintNode, &two);
150 Targ_PrintGraph(3);

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

862 * Results:
863 * Always returns 0
864 *
865 * Side Effects:
866 * The ALLSRC variable for the given node is extended.
867 *-----------------------------------------------------------------------
868 */
869static int
870MakeUnmark(void *cgnp, void *pgnp __unused)
870MakeUnmark(void *cgnp, void *pgnp MAKE_ATTR_UNUSED)
871{
872 GNode *cgn = (GNode *)cgnp;
873
874 cgn->type &= ~OP_MARK;
875 return (0);
876}
877
878/*

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

1000 * Side Effects:
1001 * Nodes are removed from the toBeMade queue and job table slots
1002 * are filled.
1003 *
1004 *-----------------------------------------------------------------------
1005 */
1006
1007static int
871{
872 GNode *cgn = (GNode *)cgnp;
873
874 cgn->type &= ~OP_MARK;
875 return (0);
876}
877
878/*

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

1000 * Side Effects:
1001 * Nodes are removed from the toBeMade queue and job table slots
1002 * are filled.
1003 *
1004 *-----------------------------------------------------------------------
1005 */
1006
1007static int
1008MakeCheckOrder(void *v_bn, void *ignore __unused)
1008MakeCheckOrder(void *v_bn, void *ignore MAKE_ATTR_UNUSED)
1009{
1010 GNode *bn = v_bn;
1011
1012 if (bn->made >= MADE || !(bn->flags & REMAKE))
1013 return 0;
1014 if (DEBUG(MAKE))
1015 fprintf(debug_file, "MakeCheckOrder: Waiting for .ORDER node %s%s\n",
1016 bn->name, bn->cohort_num);

--- 545 unchanged lines hidden ---
1009{
1010 GNode *bn = v_bn;
1011
1012 if (bn->made >= MADE || !(bn->flags & REMAKE))
1013 return 0;
1014 if (DEBUG(MAKE))
1015 fprintf(debug_file, "MakeCheckOrder: Waiting for .ORDER node %s%s\n",
1016 bn->name, bn->cohort_num);

--- 545 unchanged lines hidden ---