aboutsummaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:27:38 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1994-11-18 17:27:38 -0200
commit73664eb7399655e7cf65132c91a1aa16191a1667 (patch)
tree733f88cc9444c2563989a1dd404c62c617dee926 /tree.c
parentfeed56a01ccb9ca99271e0feca79f71aa5c38f8e (diff)
downloadlua-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.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tree.c b/tree.c
index 58f25de4..0f3e021c 100644
--- a/tree.c
+++ b/tree.c
@@ -3,7 +3,7 @@
3** TecCGraf - PUC-Rio 3** TecCGraf - PUC-Rio
4*/ 4*/
5 5
6char *rcs_tree="$Id: tree.c,v 1.7 1994/11/16 18:09:11 roberto Exp roberto $"; 6char *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
56char *lua_strcreate (char *str) 56char *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;