diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 18:41:37 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1994-11-10 18:41:37 -0200 |
commit | ff7f7694548a210cd41458538ebd4bd7bb817ddf (patch) | |
tree | 9e6a07dfa0ef7b21054f17ac44fd0bcda11a2dd5 /tree.c | |
parent | 8a0521fa529ce5091877683bc6f235ff8de7185b (diff) | |
download | lua-ff7f7694548a210cd41458538ebd4bd7bb817ddf.tar.gz lua-ff7f7694548a210cd41458538ebd4bd7bb817ddf.tar.bz2 lua-ff7f7694548a210cd41458538ebd4bd7bb817ddf.zip |
small changes in error recovery
Diffstat (limited to 'tree.c')
-rw-r--r-- | tree.c | 4 |
1 files changed, 2 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.1 1994/07/19 21:24:17 celes Exp $"; | 6 | char *rcs_tree="$Id: tree.c,v 1.2 1994/10/18 17:36:11 celes Exp roberto $"; |
7 | 7 | ||
8 | 8 | ||
9 | #include <stdlib.h> | 9 | #include <stdlib.h> |
@@ -38,7 +38,7 @@ static char *tree_create (TreeNode **node, char *str, int *created) | |||
38 | { | 38 | { |
39 | *node = (TreeNode *) malloc (sizeof(TreeNode)+strlen(str)); | 39 | *node = (TreeNode *) malloc (sizeof(TreeNode)+strlen(str)); |
40 | if (*node == NULL) | 40 | if (*node == NULL) |
41 | lua_error ("memoria insuficiente\n"); | 41 | lua_error("not enough memory"); |
42 | (*node)->left = (*node)->right = NULL; | 42 | (*node)->left = (*node)->right = NULL; |
43 | strcpy((*node)->str, str); | 43 | strcpy((*node)->str, str); |
44 | (*node)->index = UNMARKED_STRING; | 44 | (*node)->index = UNMARKED_STRING; |