Difference for common/recipe.c from version 1.11 to 1.12


version 1.11 version 1.12
Line 228
 
Line 228
  num_ingred, num_ingred>1?"s.":".",fl->number,fl->total_chance);   num_ingred, num_ingred>1?"s.":".",fl->number,fl->total_chance);
     for (formula=fl->items; formula!=NULL; formula=formula->next) {      for (formula=fl->items; formula!=NULL; formula=formula->next) {
       artifact *art=NULL;        artifact *art=NULL;
       char buf[MAX_BUF], *string;        char buf[MAX_BUF], *string, *dup;
               
       string=strtok(formula->arch_name,",");        dup = strdup_local(formula->arch_name);
         string=strtok(dup,",");
       while(string) {         while(string) {
  if(find_archetype(string)!=NULL) {    if(find_archetype(string)!=NULL) {
           art = locate_recipe_artifact(formula);            art = locate_recipe_artifact(formula);
Line 268
 
Line 269
  formula->title);    formula->title);
  string = strtok(NULL,",");   string = strtok(NULL,",");
       }        }
         free(dup);
     }        } 
   fprintf(logfile,"\n");    fprintf(logfile,"\n");
   fl = fl->next;    fl = fl->next;
Line 424
 
Line 426
     for (formula = fl->items; formula != NULL; formula = formula->next) {      for (formula = fl->items; formula != NULL; formula = formula->next) {
       artifact *art=NULL;        artifact *art=NULL;
       archetype *at=NULL;        archetype *at=NULL;
       char buf[MAX_BUF], *string;        char buf[MAX_BUF], *string, *dup;
               
       string = strtok (formula->arch_name, ",");        dup = strdup_local(formula->arch_name);
         string = strtok (dup, ",");
       while (string) {        while (string) {
  if ((at = find_archetype (string)) != NULL) {   if ((at = find_archetype (string)) != NULL) {
           art = locate_recipe_artifact (formula);            art = locate_recipe_artifact (formula);
Line 486
 
Line 489
        formula->title);          formula->title);
  string = strtok (NULL, ",");   string = strtok (NULL, ",");
       }        }
         free(dup);
     }      }
   fprintf (logfile,"\n");    fprintf (logfile,"\n");
   fl = fl->next;    fl = fl->next;


Legend:
line(s) removed in v.1.11 
line(s) changed
 line(s) added in v.1.12

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