ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/recipe.C
(Generate patch)

Comparing deliantra/server/common/recipe.C (file contents):
Revision 1.10 by elmex, Thu Dec 14 00:08:52 2006 UTC vs.
Revision 1.11 by root, Thu Dec 14 22:45:40 2006 UTC

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
25static void build_stringlist (const char *str, char ***result_list, size_t * result_size); 26static void build_stringlist (const char *str, char ***result_list, size_t * result_size);
26 27
27static recipelist *formulalist; 28static 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, ","))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines