=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/make/parse.c,v retrieving revision 1.121 retrieving revision 1.122 diff -c -r1.121 -r1.122 *** src/usr.bin/make/parse.c 2018/09/20 11:41:28 1.121 --- src/usr.bin/make/parse.c 2019/12/21 15:29:25 1.122 *************** *** 1,4 **** ! /* $OpenBSD: parse.c,v 1.121 2018/09/20 11:41:28 jsg Exp $ */ /* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: parse.c,v 1.122 2019/12/21 15:29:25 espie Exp $ */ /* $NetBSD: parse.c,v 1.29 1997/03/10 21:20:04 christos Exp $ */ /* *************** *** 240,246 **** * * Side Effects: * New elements are added to the parents list of cgn and the ! * children list of cgn. the unmade field of pgn is updated * to reflect the additional child. *--------------------------------------------------------------------- */ --- 240,246 ---- * * Side Effects: * New elements are added to the parents list of cgn and the ! * children list of cgn. the children_left field of pgn is updated * to reflect the additional child. *--------------------------------------------------------------------- */ *************** *** 250,256 **** if (Lst_AddNew(&pgn->children, cgn)) { if (specType == SPECIAL_NONE) Lst_AtEnd(&cgn->parents, pgn); ! pgn->unmade++; } } --- 250,256 ---- if (Lst_AddNew(&pgn->children, cgn)) { if (specType == SPECIAL_NONE) Lst_AtEnd(&cgn->parents, pgn); ! pgn->children_left++; } } *************** *** 361,371 **** ParseAddDep(GNode *p, GNode *s) { if (p->order < s->order) { ! /* XXX: This can cause loops, and loops can cause unmade ! * targets, but checking is tedious, and the debugging output ! * can show the problem. */ Lst_AtEnd(&p->successors, s); - Lst_AtEnd(&s->preds, p); return 1; } else return 0; --- 361,370 ---- ParseAddDep(GNode *p, GNode *s) { if (p->order < s->order) { ! /* XXX: This can cause cycles but finding them is hard ! * and debugging output will show the problem. */ ! Lst_AtEnd(&s->predecessors, p); Lst_AtEnd(&p->successors, s); return 1; } else return 0; *************** *** 438,444 **** */ if (predecessor != NULL) { Lst_AtEnd(&predecessor->successors, gn); ! Lst_AtEnd(&gn->preds, predecessor); } predecessor = gn; break; --- 437,443 ---- */ if (predecessor != NULL) { Lst_AtEnd(&predecessor->successors, gn); ! Lst_AtEnd(&gn->predecessors, predecessor); } predecessor = gn; break;