[BACK]Return to job.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / usr.bin / make

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/usr.bin/make/job.c between version 1.308 and 1.309

version 1.308, 2020/11/07 13:53:12 version 1.309, 2020/11/07 20:03:56
Line 1491  JobMakeArgv(Job *job, char **argv)
Line 1491  JobMakeArgv(Job *job, char **argv)
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static JobStartResult  static JobStartResult
 JobStart(GNode *gn, int flags)  JobStart(GNode *gn, JobFlags flags)
 {  {
     Job *job;                   /* new job descriptor */      Job *job;                   /* new job descriptor */
     char *argv[10];             /* Argument vector to shell */      char *argv[10];             /* Argument vector to shell */
Line 1507  JobStart(GNode *gn, int flags)
Line 1507  JobStart(GNode *gn, int flags)
         Punt("JobStart no job slots vacant");          Punt("JobStart no job slots vacant");
   
     memset(job, 0, sizeof *job);      memset(job, 0, sizeof *job);
     job->job_state = JOB_ST_SETUP;  
     if (gn->type & OP_SPECIAL)  
         flags |= JOB_SPECIAL;  
   
     job->node = gn;      job->node = gn;
     job->tailCmds = NULL;      job->tailCmds = NULL;
       job->job_state = JOB_ST_SETUP;
   
     /*      if (gn->type & OP_SPECIAL)
      * Set the initial value of the flags for this job based on the global          flags |= JOB_SPECIAL;
      * ones and the node's attributes... Any flags supplied by the caller      if (Targ_Ignore(gn))
      * are also added to the field.          flags |= JOB_IGNERR;
      */      if (Targ_Silent(gn))
     job->flags = 0;          flags |= JOB_SILENT;
     if (Targ_Ignore(gn)) {      job->flags = flags;
         job->flags |= JOB_IGNERR;  
     }  
     if (Targ_Silent(gn)) {  
         job->flags |= JOB_SILENT;  
     }  
     job->flags |= flags;  
   
     /*      /*
      * Check the commands now so any attributes from .DEFAULT have a chance       * Check the commands now so any attributes from .DEFAULT have a chance
Line 2053  Job_CatchOutput(void)
Line 2044  Job_CatchOutput(void)
 void  void
 Job_Make(GNode *gn)  Job_Make(GNode *gn)
 {  {
     (void)JobStart(gn, 0);      (void)JobStart(gn, JOB_NONE);
 }  }
   
 void  void

Legend:
Removed from v.1.308  
changed lines
  Added in v.1.309

CVSweb <webmaster@jp.NetBSD.org>