struct lambda *make_lambda()
{
- return malloc(sizeof (struct lambda));
+ struct lambda *t = malloc(sizeof (struct lambda));
+ t->refcount = 1;
+ return t;
}
struct lambda *make_ident(char *i)
{
int maxdepth = 1000;
printf(" ");
- lambda_reduce($1, $1, &maxdepth);
+ lambda_reduce(&$1, &$1, &maxdepth);
lambda_print($1, NULL);
lambda_free($1);
}