[EVAL] Let funcnode refer to a function definition, not its first command
commitaccde25e09f39d3aca64a50c72f23bf84d312757
authorHarald van Dijk <harald@gigawatt.nl>
Tue, 15 Mar 2011 07:44:47 +0000 (15 15:44 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 15 Mar 2011 07:44:47 +0000 (15 15:44 +0800)
treee925e3d3adf92a853a2d4c56d7cf9b9b2ff22ee9
parentbfcdc4969510997fe81debf52982641febfa1bdf
[EVAL] Let funcnode refer to a function definition, not its first command

It is not unrelated: I changed the meaning of struct funcnode's field n
to refer to the function definition, rather than the list of the
function's commands, because I needed to refer to the function
definition node from evalfun, which only gets passed a funcnode. But it
is something that could be applied independently (without being useful
by itself), so I've attached it as a separate patch for easier review.

Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
src/eval.c
src/exec.c
src/exec.h