usr.bin/make/job.c
/*-
 *-----------------------------------------------------------------------
 * Job_Empty --
 *	See if the job table is empty.  Because the local concurrency may
 *	be set to 0, it is possible for the job table to become empty,
 *	while the list of stoppedJobs remains non-empty. In such a case,
 *	we want to restart as many jobs as we can.
 *
 * Results:
 *	TRUE if it is. FALSE if it ain't.
 *
 * Side Effects:
 *	None.
 *
 * -----------------------------------------------------------------------
 */
Job_Empty
See if the job table is empty.  Because the local concurrency may
be set to 0, it is possible for the job table to become empty,
while the list of stoppedJobs remains non-empty. In such a case,
we want to restart as many jobs as we can.

TRUE if it is. FALSE if it ain't.

Side Effects:
None.
Job_Empty See if the job table is empty . Because the local concurrency may be set to 0 it is possible for the job table to become empty while the list of stoppedJobs remains non - empty . In such a case we want to restart as many jobs as we can . TRUE if it is . FALSE if it ain ' t . Side Effects : None .
Boolean
Job_Empty ()
{
    if (nJobs == 0) {
	if (!Lst_IsEmpty(stoppedJobs) && !aborting) {
	    jobFull = FALSE;
	    while (!jobFull && !Lst_IsEmpty(stoppedJobs)) {
		JobRestart((Job *)Lst_DeQueue(stoppedJobs));
	    }
	    return(FALSE);
	} else {
	    return(TRUE);
	}
    } else {
	return(FALSE);
    }
}
Boolean Job_Empty ( ) { if ( nJobs == 0 ) { if ( ! Lst_IsEmpty ( stoppedJobs ) && ! aborting ) { jobFull = FALSE ; while ( ! jobFull && ! Lst_IsEmpty ( stoppedJobs ) ) { JobRestart ( ( Job * ) Lst_DeQueue ( stoppedJobs ) ) ; } return ( FALSE ) ; } else { return ( TRUE ) ; } } else { return ( FALSE ) ; } }
Job_Empty
      See if the job table is empty.
Job_Empty See if the job table is empty .
/*
	     * The job table is obviously not full if it has no jobs in
	     * it...Try and restart the stopped jobs.
	     */