Lines Matching refs:pgn

380 PretendAllChildrenAreMade(GNode *pgn)
384 for (ln = pgn->children.first; ln != NULL; ln = ln->next) {
389 GNode_UpdateYoungestChild(pgn, cgn);
390 pgn->unmade--;
406 * pgn The target node
409 Make_HandleUse(GNode *cgn, GNode *pgn)
423 Lst_IsEmpty(&pgn->commands)) {
426 Lst_PrependAll(&pgn->commands, &cgn->commands);
429 Lst_AppendAll(&pgn->commands, &cgn->commands);
446 gn->name = Var_Subst(gn->uname, pgn, VARE_EVAL);
455 Lst_Append(&pgn->children, gn);
456 Lst_Append(&gn->parents, pgn);
457 pgn->unmade++;
460 pgn->type |=
474 * pgn the current parent
477 MakeHandleUse(GNode *cgn, GNode *pgn, GNodeListNode *ln)
488 Make_HandleUse(cgn, pgn);
497 Lst_Remove(&pgn->children, ln);
498 pgn->unmade--;
602 GNode *pgn = ln->datum;
603 if (pgn->flags.remake) {
604 Var_Set(pgn, IMPSRC, cname);
606 Var_Set(pgn, PREFIX, cpref);
653 * The unmade field of pgn is decremented and pgn may be placed on
714 GNode *pgn = ln->datum;
717 debug_printf("inspect parent %s%s: ", pgn->name,
718 pgn->cohort_num);
719 GNode_FprintDetails(opts.debug_file, "", pgn, "");
720 debug_printf(", unmade %d ", pgn->unmade - 1);
723 if (!pgn->flags.remake) {
729 pgn->flags.force = true;
739 if (pgn->type & OP_MADE) {
746 pgn->flags.childMade = true;
747 GNode_UpdateYoungestChild(pgn, cgn);
763 pgn->unmade--;
764 if (pgn->unmade < 0) {
767 pgn->name, pgn->cohort_num);
770 Error("Graph cycles through %s%s", pgn->name,
771 pgn->cohort_num);
778 if (pgn->unmade != 0 && !(centurion->type & OP_WAIT)
783 if (pgn->made != DEFERRED) {
793 if (IsWaitingForOrder(pgn))
799 pgn->name, pgn->cohort_num, pgn->made);
800 Targ_PrintNode(pgn, 2);
803 pgn->made = REQUESTED;
804 Lst_Enqueue(&toBeMade, pgn);
837 * pgn The parent to whose ALLSRC variable it should
841 MakeAddAllSrc(GNode *cgn, GNode *pgn)
863 Var_Append(pgn, ALLSRC, allsrc);
865 if (pgn->type & OP_JOIN) {
867 Var_Append(pgn, OODATE, child);
869 } else if ((pgn->mtime < cgn->mtime) ||
889 Var_Append(pgn, OODATE, child);
1343 GNode *pgn; /* 'parent' node we are examining */
1353 pgn = GNode_New(".MAIN");
1354 pgn->flags.remake = true;
1355 pgn->type = OP_PHONY | OP_DEPENDS;
1357 Lst_Prepend(Targ_List(), pgn);
1364 Lst_Append(&pgn->children, cgn);
1365 Lst_Append(&cgn->parents, pgn);
1366 pgn->unmade++;
1371 MakeBuildChild(pgn, NULL);
1374 Lst_Append(&examine, pgn);
1379 pgn = Lst_Dequeue(&examine);
1382 if (pgn->flags.doneWait)
1384 pgn->flags.doneWait = true;
1385 DEBUG1(MAKE, "Make_ProcessWait: examine %s\n", pgn->name);
1387 if (pgn->type & OP_DOUBLEDEP)
1388 Lst_PrependAll(&examine, &pgn->cohorts);
1390 owln = pgn->children.first;
1391 for (ln = pgn->children.first; ln != NULL; ln = ln->next) {