[BACK]Return to for.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/for.c between version 1.15 and 1.16

version 1.15, 2000/03/26 16:21:32 version 1.16, 2000/06/10 01:32:22
Line 111 
Line 111 
     unsigned long       level;          /* Nesting level                */      unsigned long       level;          /* Nesting level                */
 };  };
   
 static int ForExec __P((ClientData, ClientData));  static void ForExec __P((ClientData, ClientData));
 static void build_words_list __P((Lst, const char *));  static void build_words_list __P((Lst, const char *));
   
 /* Cut a string into words, stuff that into list.  */  /* Cut a string into words, stuff that into list.  */
Line 268 
Line 268 
  *      Expand the for loop for this index and push it in the Makefile   *      Expand the for loop for this index and push it in the Makefile
  *-----------------------------------------------------------------------   *-----------------------------------------------------------------------
  */   */
 static int  static void
 ForExec(namep, argp)  ForExec(namep, argp)
     ClientData namep;      ClientData namep;
     ClientData argp;      ClientData argp;
Line 286 
Line 286 
   
     Parse_FromString(Buf_Retrieve(&arg->buf), arg->lineno);      Parse_FromString(Buf_Retrieve(&arg->buf), arg->lineno);
     Var_Delete(arg->var, VAR_GLOBAL);      Var_Delete(arg->var, VAR_GLOBAL);
     return 0;  
 }  }
   
   
Line 307 
Line 306 
     Lst_ForEach(arg->lst, ForExec, arg);      Lst_ForEach(arg->lst, ForExec, arg);
     free(arg->var);      free(arg->var);
     free(arg->text);      free(arg->text);
     Lst_Destroy(arg->lst, (void (*) __P((ClientData)))free);      Lst_Destroy(arg->lst, (SimpleProc)free);
     free(arg);      free(arg);
 }  }

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16