logo

Grimgrains

Unnamed repository; edit this file 'description' to name the repository.
commit: 7929b12384d79f78cf875f8e5d410632ed824315
parent f2935a50c12af8f895c06cb4ed293917a9abb0dc
Author: neauoire <aliceffekt@gmail.com>
Date:   Fri, 20 Dec 2019 13:28:14 -0500

Testing

Diffstat:

Msrc/ingredient.c3++-
Msrc/ingredients.c4++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/ingredient.c b/src/ingredient.c @@ -3,6 +3,7 @@ typedef struct { int id; char *name; char *description; + struct Ingredient *parent; } Ingredient; typedef struct { @@ -25,5 +26,5 @@ Serving create_serving(Ingredient *ingredient, char *quantity) { } void set_parent(Ingredient *child, Ingredient *parent) { - // printf("") + child->parent = parent; } \ No newline at end of file diff --git a/src/ingredients.c b/src/ingredients.c @@ -605,4 +605,4 @@ set_parent(&coconut_milk, &coconut); set_parent(&soy_milk, &soy_beans); set_parent(&chocolate_chips, &cocoa_beans); -// Ingredient *ingredients[] = {&coffee, &lentils, &beluga_lentils, &brown_lentils, &shelled_hemp_seeds, &tempeh, &peanut_butter, &peanuts, &soy_beans, &beans, &black_beans, &green_beans, &kidney_beans, &edamame, &chickpeas, &chickpea_flour, &peas, &green_peas, &mungbeans, &broccoli, &green_cabbage, &red_cabbage, &kale, &arugula, &cauliflower, &white_cauliflower, &purple_cauliflower, &brussel_sprouts, &daikon, &bok_choy, &radish, &arame, &seaweed, &mushroom, &wakame, &dried_hijiki, &bull_kelp_powder, &nori, &nori_sheets, &shiitake, &crimini, &portobello, &shimeji, &button_mushrooms, &flax_seeds, &sunflower_seeds, &pumpkin_seeds, &sesame_seeds, &white_sesame_seeds, &black_sesame_seeds, &tahini, &pomegranate_seeds, &chia_seeds, &nagaimo, &carrots, &small_heirloom_tomatoes, &heirloom_carrots, &ginger, &ginger_root, &potatoes, &russet_potatoes, &sweet_potatoes, &beets, &golden_beets, &red_beets, &cassava, &garlic, &garlic_powder, &onion, &red_onion, &onion_powder, &yellow_onion, &cucumber, &persian_cucumbers, &eggplant, &zucchini, &chives, &peppers, &green_bell_peppers, &red_bell_peppers, &yellow_bell_peppers, &tomato, &tomato_paste, &avocado, &pumpkin, &olives, &green_olives, &black_olives, &pimento_olives, &palm, &acorn_squash, &artichokes, &asparagus, &bamboo_shoots, &breadfruit, &scallions, &spinach, &alfalfa_sprouts, &dried_raisins, &blackberries, &dried_cranberries, &dried_white_mulberries, &dry_corn_kernels, &pandanus_fruit, &banana, &kiwifruit, &apple, &apples, &lemon, &lemon_zest, &lemon_juice, &orange, &pears, &bartlett_pear, &papaya, &pomegranate, &pomegranate_juice, &mango, &hachiya_persimmon, &persimmon, &dates, &deglet_noor_dates, &date_caramel, &apricot_jam, &coconut, &ao_nori, &kanten_powder, &turmeric_root, &ground_turmeric, &cinnamon, &rosemary, &basil, &dried_basil, &wasabi_root, &wasabi_powder, &sichuan_peppercorns, &coriander, &mint, &peppermint, &cocoa_beans, &cocoa_powder, &cayenne_pepper, &cayenne_pepper_powder, &anise_seeds, &nutritional_yeast, &vanilla, &vanilla_extract, &nutmeg, &thyme, &poppy_seeds, &paprika, &smoked_paprika, &curry_powder, &tamarind, &cumin_seeds, &mustard_seeds, &dijon_mustard, &black_pepper, &shichimi_togarashi, &gojuchang, &garam_masala, &panko, &carob, &carob_chips, &bay_leaf, &chili_pepper_flakes, &green_chili, &chili_peppers, &hops, &dried_orange_peel, &oregano, &whole_wheat_flour, &buckwheat_groats, &buckwheat_noodles, &buckwheat_flour, &einkorn_wheat_flour, &spelt_flour, &gluten_flour, &corn, &cornmeal, &corn_semolina, &oats, &rolled_oats, &rice, &basmati_rice, &short_grain_white_rice, &black_rice, &puffed_rice, &medium_grain_brown_rice, &black_glutinous_rice, &rice_flour, &flour, &all_purpose_flour, &breadfruit_flour, &wheat_semolina, &beni_shouga, &vegemite, &miso, &red_miso, &white_miso, &tofu, &soft_tofu, &burmese_tofu, &veganaise, &soy_sauce, &sriracha, &mirin, &baking_powder, &bamboo_charcoal_powder, &cornstarch, &active_dry_yeast, &baking_soda, &agar_agar_powder, &arrowroot_starch, &maple_syrup, &brown_rice_syrup, &rice_vinegar, &japanese_rice_vinegar, &balsamic_vinegar, &apple_cider_vinegar, &b12_supplement, &matcha_powder, &houjicha, &wine, &beer, &sake, &coconut_oil, &canola_oil, &olive_oil, &sesame_oil, &peppermint_oil, &fresh_dill, &coconut_milk, &soy_milk, &baguette, &bread_crusts, &vegan_butter, &scoobi_do, &fusilli, &soy_yogurt, &kinako, &corn_tortillas, &fleur_de_sel, &vegetable_bouillon, &water, &sugar, &powdered_sugar, &whole_cane_sugar, &coconut_sugar, &brown_sugar, &salt, &sea_salt, &chocolate_chips };- \ No newline at end of file +Ingredient *ingredients[] = {&coffee, &lentils, &beluga_lentils, &brown_lentils, &shelled_hemp_seeds, &tempeh, &peanut_butter, &peanuts, &soy_beans, &beans, &black_beans, &green_beans, &kidney_beans, &edamame, &chickpeas, &chickpea_flour, &peas, &green_peas, &mungbeans, &broccoli, &green_cabbage, &red_cabbage, &kale, &arugula, &cauliflower, &white_cauliflower, &purple_cauliflower, &brussel_sprouts, &daikon, &bok_choy, &radish, &arame, &seaweed, &mushroom, &wakame, &dried_hijiki, &bull_kelp_powder, &nori, &nori_sheets, &shiitake, &crimini, &portobello, &shimeji, &button_mushrooms, &flax_seeds, &sunflower_seeds, &pumpkin_seeds, &sesame_seeds, &white_sesame_seeds, &black_sesame_seeds, &tahini, &pomegranate_seeds, &chia_seeds, &nagaimo, &carrots, &small_heirloom_tomatoes, &heirloom_carrots, &ginger, &ginger_root, &potatoes, &russet_potatoes, &sweet_potatoes, &beets, &golden_beets, &red_beets, &cassava, &garlic, &garlic_powder, &onion, &red_onion, &onion_powder, &yellow_onion, &cucumber, &persian_cucumbers, &eggplant, &zucchini, &chives, &peppers, &green_bell_peppers, &red_bell_peppers, &yellow_bell_peppers, &tomato, &tomato_paste, &avocado, &pumpkin, &olives, &green_olives, &black_olives, &pimento_olives, &palm, &acorn_squash, &artichokes, &asparagus, &bamboo_shoots, &breadfruit, &scallions, &spinach, &alfalfa_sprouts, &dried_raisins, &blackberries, &dried_cranberries, &dried_white_mulberries, &dry_corn_kernels, &pandanus_fruit, &banana, &kiwifruit, &apple, &apples, &lemon, &lemon_zest, &lemon_juice, &orange, &pears, &bartlett_pear, &papaya, &pomegranate, &pomegranate_juice, &mango, &hachiya_persimmon, &persimmon, &dates, &deglet_noor_dates, &date_caramel, &apricot_jam, &coconut, &ao_nori, &kanten_powder, &turmeric_root, &ground_turmeric, &cinnamon, &rosemary, &basil, &dried_basil, &wasabi_root, &wasabi_powder, &sichuan_peppercorns, &coriander, &mint, &peppermint, &cocoa_beans, &cocoa_powder, &cayenne_pepper, &cayenne_pepper_powder, &anise_seeds, &nutritional_yeast, &vanilla, &vanilla_extract, &nutmeg, &thyme, &poppy_seeds, &paprika, &smoked_paprika, &curry_powder, &tamarind, &cumin_seeds, &mustard_seeds, &dijon_mustard, &black_pepper, &shichimi_togarashi, &gojuchang, &garam_masala, &panko, &carob, &carob_chips, &bay_leaf, &chili_pepper_flakes, &green_chili, &chili_peppers, &hops, &dried_orange_peel, &oregano, &whole_wheat_flour, &buckwheat_groats, &buckwheat_noodles, &buckwheat_flour, &einkorn_wheat_flour, &spelt_flour, &gluten_flour, &corn, &cornmeal, &corn_semolina, &oats, &rolled_oats, &rice, &basmati_rice, &short_grain_white_rice, &black_rice, &puffed_rice, &medium_grain_brown_rice, &black_glutinous_rice, &rice_flour, &flour, &all_purpose_flour, &breadfruit_flour, &wheat_semolina, &beni_shouga, &vegemite, &miso, &red_miso, &white_miso, &tofu, &soft_tofu, &burmese_tofu, &veganaise, &soy_sauce, &sriracha, &mirin, &baking_powder, &bamboo_charcoal_powder, &cornstarch, &active_dry_yeast, &baking_soda, &agar_agar_powder, &arrowroot_starch, &maple_syrup, &brown_rice_syrup, &rice_vinegar, &japanese_rice_vinegar, &balsamic_vinegar, &apple_cider_vinegar, &b12_supplement, &matcha_powder, &houjicha, &wine, &beer, &sake, &coconut_oil, &canola_oil, &olive_oil, &sesame_oil, &peppermint_oil, &fresh_dill, &coconut_milk, &soy_milk, &baguette, &bread_crusts, &vegan_butter, &scoobi_do, &fusilli, &soy_yogurt, &kinako, &corn_tortillas, &fleur_de_sel, &vegetable_bouillon, &water, &sugar, &powdered_sugar, &whole_cane_sugar, &coconut_sugar, &brown_sugar, &salt, &sea_salt, &chocolate_chips };+ \ No newline at end of file