Home
last modified time | relevance | path

Searched refs:PROT_KCAL (Results 1 – 7 of 7) sorted by relevance

/dports/misc/nut/nut-20.1/
H A Dtrendy.c54 ep_ptr->nutrient[PROT_KCAL] = 0; in trendy()
63 ep_ptr->nutrient[PROT_KCAL] = 0; in trendy()
119 ep_ptr->nutrient[PROT_KCAL] = 0; in trendy()
132 …ep_ptr->nutrient[PROT_KCAL] += (FoodIndex[meal_ptr->food_no]->nutrient[PROT_KCAL] * meal_ptr->gram… in trendy()
150 …ep_ptr->nutrient[PROT_KCAL] = ep_ptr->nutrient[PROT_KCAL] * (float) options.mealsperday / (float) … in trendy()
151 …if (ep_ptr->nutrient[PROT_KCAL] > saveep_ptr->nutrient[PROT_KCAL]) saveep_ptr->nutrient[PROT_KCAL]… in trendy()
245 …for (count = 0; count < floor(ep_ptr->nutrient[PROT_KCAL]/calunit + ep_ptr->nutrient[CHO_KCAL]/cal… in trendy()
246 …for (count = 0; count < floor(ep_ptr->nutrient[PROT_KCAL]/calunit + .5); count++) calstring[count]… in trendy()
H A Dnut.h172 #define PROT_KCAL 150 macro
H A Dfood.c593 pctprot = 100 * food_work.nutrient[PROT_KCAL] / food_work.nutrient[ENERC_KCAL]; in food_display()
963 food_ptr->nutrient[PROT_KCAL] = food_ptr->prot_cal_factor * food_ptr->nutrient[PROCNT]; in compute_derived_fields()
967 …ratio = realcal / (food_ptr->nutrient[PROT_KCAL] + food_ptr->nutrient[FAT_KCAL] + food_ptr->nutrie… in compute_derived_fields()
972 food_ptr->nutrient[PROT_KCAL] = food_ptr->prot_cal_factor * food_ptr->nutrient[PROCNT]; in compute_derived_fields()
1013 …food_work.nutrient[PROT_KCAL] += ((options.mealsperday * meal_ptr->grams / 100 * FoodIndex[meal_pt… in load_foodwork()
H A Doptions.c643 …d_work.nutrient[PROCNT] > 0 && food_work.nutrient[PROT_KCAL] > 0) pratio = food_work.nutrient[PROT… in auto_cal()
H A Ddb.c578 if (food_ptr->nutrient[PROCNT] > 0) sprintf(numbuf,"%1.2f",food_ptr->nutrient[PROT_KCAL] / food_ptr… in write_recipe()
/dports/misc/nut/nut-20.1/fltk/
H A DNutCharts.cc78 protein[day] += FoodIndex[meal_ptr->food_no]->nutrient[PROT_KCAL] * meal_ptr->grams / 100; in populate()
H A DNutValue.cc173 pctprot = 100 * foodwork->nutrient[PROT_KCAL] / foodwork->nutrient[ENERC_KCAL]; in update()