mirror of
https://github.com/lua/lua
synced 2026-09-29 04:35:58 +03:00
small changes in error recovery
This commit is contained in:
parent
8a0521fa52
commit
ff7f769454
2 changed files with 15 additions and 44 deletions
4
tree.c
4
tree.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue