diff options
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; |
