Difference for common/recipe.c from version 1.13 to 1.14


version 1.13 version 1.14
Line 28
 
Line 28
   
 static recipelist *formulalist;  static recipelist *formulalist;
   
 static recipelist *init_recipelist() {  static recipelist *init_recipelist(void) {
   recipelist *tl = (recipelist *) malloc(sizeof(recipelist));    recipelist *tl = (recipelist *) malloc(sizeof(recipelist));
   if(tl==NULL)    if(tl==NULL)
     fatal(OUT_OF_MEMORY);      fatal(OUT_OF_MEMORY);
Line 39
 
Line 39
   return tl;    return tl;
 }  }
   
 static recipe *get_empty_formula() {  static recipe *get_empty_formula(void) {
   recipe *t = (recipe *) malloc(sizeof(recipe));    recipe *t = (recipe *) malloc(sizeof(recipe));
   if(t==NULL)    if(t==NULL)
     fatal(OUT_OF_MEMORY);      fatal(OUT_OF_MEMORY);
Line 103
 
Line 103
  * the libdir. -b.t.    * the libdir. -b.t.
  */   */
    
 void init_formulae() {  void init_formulae(void) {
   static int has_been_done=0;    static int has_been_done=0;
   FILE *fp;    FILE *fp;
   char filename[MAX_BUF], buf[MAX_BUF], *cp, *next;    char filename[MAX_BUF], buf[MAX_BUF], *cp, *next;
Line 589
 
Line 589
   return rp;    return rp;
 }  }
   
 void free_all_recipes()  void free_all_recipes(void)
 {  {
     recipelist *fl=formulalist,*flnext;      recipelist *fl=formulalist,*flnext;
     recipe *formula=NULL,*next;      recipe *formula=NULL,*next;


Legend:
line(s) removed in v.1.13 
line(s) changed
 line(s) added in v.1.14

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:17