2003-08-21 Stefan Jones <stefan.jones@multigig.com>

* src/frontend/define.c:
	don't alloc pn_func if we don't need to.
This commit is contained in:
stefanjones 2003-08-22 16:13:29 +00:00
parent 79247827a6
commit 4aeee71118
2 changed files with 7 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-08-21 Stefan Jones <stefan.jones@multigig.com>
* src/frontend/define.c:
don't alloc pn_func if we don't need to.
2003-08-20 Stefan Jones <stefan.jones@multigig.com>
* src/frontend/parse.c:

View File

@ -337,15 +337,11 @@ trcopy(struct pnode *tree, char *args, struct pnode *nn)
} else
return (tree);
} else if (tree->pn_func) {
struct func *func;
func = alloc(struct func);
func->fu_name = copy(tree->pn_func->fu_name);
func->fu_func = tree->pn_func->fu_func;
pn = alloc(struct pnode);
pn->pn_value = NULL;
pn->pn_func = func;
/* pn_func are pointers to a global static struct */
pn->pn_func = tree->pn_func;
pn->pn_op = NULL;
pn->pn_left = trcopy(tree->pn_left, args, nn);
pn->pn_right = NULL;