diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:27:38 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-18 17:27:38 -0200 |
commit | 73664eb7399655e7cf65132c91a1aa16191a1667 (patch) | |
tree | 733f88cc9444c2563989a1dd404c62c617dee926 /tree.c | |
parent | feed56a01ccb9ca99271e0feca79f71aa5c38f8e (diff) | |
download | lua-73664eb7399655e7cf65132c91a1aa16191a1667.tar.gz lua-73664eb7399655e7cf65132c91a1aa16191a1667.tar.bz2 lua-73664eb7399655e7cf65132c91a1aa16191a1667.zip |
function 'lua_createstring' moved from table.c to tree.c
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; |