aboutsummaryrefslogtreecommitdiff
path: root/tree.c
diff options
context:
space:
mode:
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;