small changes in error recovery

This commit is contained in:
Roberto Ierusalimschy
1994-11-10 18:41:37 -02:00
parent 8a0521fa52
commit ff7f769454
2 changed files with 15 additions and 44 deletions

4
tree.c
View File

@@ -3,7 +3,7 @@
** TecCGraf - PUC-Rio
*/
char *rcs_tree="$Id: tree.c,v 1.1 1994/07/19 21:24:17 celes Exp $";
char *rcs_tree="$Id: tree.c,v 1.2 1994/10/18 17:36:11 celes Exp roberto $";
#include <stdlib.h>
@@ -38,7 +38,7 @@ static char *tree_create (TreeNode **node, char *str, int *created)
{
*node = (TreeNode *) malloc (sizeof(TreeNode)+strlen(str));
if (*node == NULL)
lua_error ("memoria insuficiente\n");
lua_error("not enough memory");
(*node)->left = (*node)->right = NULL;
strcpy((*node)->str, str);
(*node)->index = UNMARKED_STRING;