… | |
… | |
16 | * chance 10 |
16 | * chance 10 |
17 | * ingred dust of beholdereye,gem |
17 | * ingred dust of beholdereye,gem |
18 | * arch potion_generic |
18 | * arch potion_generic |
19 | */ |
19 | */ |
20 | |
20 | |
|
|
21 | #include <cctype> |
|
|
22 | |
21 | #include <global.h> |
23 | #include <global.h> |
22 | #include <object.h> |
24 | #include <object.h> |
23 | #include <ctype.h> |
|
|
24 | |
25 | |
25 | static void build_stringlist (const char *str, char ***result_list, size_t * result_size); |
26 | static void build_stringlist (const char *str, char ***result_list, size_t * result_size); |
26 | |
27 | |
27 | static recipelist *formulalist; |
28 | static recipelist *formulalist; |
28 | |
29 | |
… | |
… | |
743 | char *dup; |
744 | char *dup; |
744 | char *p; |
745 | char *p; |
745 | size_t size; |
746 | size_t size; |
746 | size_t i; |
747 | size_t i; |
747 | |
748 | |
748 | dup = strdup_local (str); |
749 | dup = strdup (str); |
749 | if (dup == NULL) |
750 | if (dup == NULL) |
750 | fatal (OUT_OF_MEMORY); |
751 | fatal (OUT_OF_MEMORY); |
751 | |
752 | |
752 | size = 0; |
753 | size = 0; |
753 | for (p = strtok (dup, ","); p != NULL; p = strtok (NULL, ",")) |
754 | for (p = strtok (dup, ","); p != NULL; p = strtok (NULL, ",")) |