diff options
Diffstat (limited to 'tree.c')
| -rw-r--r-- | tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -3,7 +3,7 @@ | |||
| 3 | ** TecCGraf - PUC-Rio | 3 | ** TecCGraf - PUC-Rio |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | char *rcs_tree="$Id: tree.c,v 1.7 1994/11/16 18:09:11 roberto Exp roberto $"; | 6 | char *rcs_tree="$Id: tree.c,v 1.8 1994/11/17 13:58:57 roberto Exp roberto $"; |
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | #include <string.h> | 9 | #include <string.h> |
| @@ -53,9 +53,10 @@ static TreeNode *tree_create (TreeNode **node, char *str) | |||
| 53 | } | 53 | } |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | char *lua_strcreate (char *str) | 56 | char *lua_createstring (char *str) |
| 57 | { | 57 | { |
| 58 | StringNode *newString; | 58 | StringNode *newString; |
| 59 | if (str == NULL) return NULL; | ||
| 59 | lua_pack(); | 60 | lua_pack(); |
| 60 | newString = (StringNode *)luaI_malloc(sizeof(StringNode)+strlen(str)); | 61 | newString = (StringNode *)luaI_malloc(sizeof(StringNode)+strlen(str)); |
| 61 | newString->mark = UNMARKED_STRING; | 62 | newString->mark = UNMARKED_STRING; |
