Home | History | Annotate | Download | only in make

Lines Matching defs:pgn

383 PretendAllChildrenAreMade(GNode *pgn)
387 for (ln = pgn->children.first; ln != NULL; ln = ln->next) {
392 GNode_UpdateYoungestChild(pgn, cgn);
393 pgn->unmade--;
409 * pgn The target node
412 Make_HandleUse(GNode *cgn, GNode *pgn)
426 Lst_IsEmpty(&pgn->commands)) {
429 Lst_PrependAll(&pgn->commands, &cgn->commands);
432 Lst_AppendAll(&pgn->commands, &cgn->commands);
449 gn->name = Var_Subst(gn->uname, pgn, VARE_EVAL);
458 Lst_Append(&pgn->children, gn);
459 Lst_Append(&gn->parents, pgn);
460 pgn->unmade++;
463 pgn->type |=
477 * pgn the current parent
480 MakeHandleUse(GNode *cgn, GNode *pgn, GNodeListNode *ln)
491 Make_HandleUse(cgn, pgn);
493 Lst_Remove(&pgn->children, ln);
494 pgn->unmade--;
598 GNode *pgn = ln->datum;
599 if (pgn->flags.remake) {
600 Var_Set(pgn, IMPSRC, cname);
602 Var_Set(pgn, PREFIX, cpref);
649 * The unmade field of pgn is decremented and pgn may be placed on
710 GNode *pgn = ln->datum;
713 debug_printf("inspect parent %s%s: ", pgn->name,
714 pgn->cohort_num);
715 GNode_FprintDetails(opts.debug_file, "", pgn, "");
716 debug_printf(", unmade %d ", pgn->unmade - 1);
719 if (!pgn->flags.remake) {
725 pgn->flags.force = true;
735 if (pgn->type & OP_MADE) {
742 pgn->flags.childMade = true;
743 GNode_UpdateYoungestChild(pgn, cgn);
759 pgn->unmade--;
760 if (pgn->unmade < 0) {
763 pgn->name, pgn->cohort_num);
766 Error("Graph cycles through %s%s", pgn->name,
767 pgn->cohort_num);
774 if (pgn->unmade != 0 && !(centurion->type & OP_WAIT)
779 if (pgn->made != DEFERRED) {
789 if (IsWaitingForOrder(pgn))
795 pgn->name, pgn->cohort_num, pgn->made);
796 Targ_PrintNode(pgn, 2);
799 pgn->made = REQUESTED;
800 Lst_Enqueue(&toBeMade, pgn);
833 * pgn The parent to whose ALLSRC variable it should
837 MakeAddAllSrc(GNode *cgn, GNode *pgn)
859 Var_Append(pgn, ALLSRC, allsrc);
861 if (pgn->type & OP_JOIN) {
863 Var_Append(pgn, OODATE, child);
865 } else if ((pgn->mtime < cgn->mtime) ||
885 Var_Append(pgn, OODATE, child);
1323 GNode *pgn; /* 'parent' node we are examining */
1332 pgn = GNode_New(".MAIN");
1333 pgn->flags.remake = true;
1334 pgn->type = OP_PHONY | OP_DEPENDS;
1336 Lst_Prepend(Targ_List(), pgn);
1343 Lst_Append(&pgn->children, cgn);
1344 Lst_Append(&cgn->parents, pgn);
1345 pgn->unmade++;
1350 MakeBuildChild(pgn, NULL);
1353 Lst_Append(&examine, pgn);
1358 pgn = Lst_Dequeue(&examine);
1361 if (pgn->flags.doneWait)
1363 pgn->flags.doneWait = true;
1364 DEBUG1(MAKE, "Make_ProcessWait: examine %s\n", pgn->name);
1366 if (pgn->type & OP_DOUBLEDEP)
1367 Lst_PrependAll(&examine, &pgn->cohorts);
1369 waitNode = pgn->children.first;
1370 for (ln = pgn->children.first; ln != NULL; ln = ln->next) {