diff options
author | Harald van Dijk <harald@gigawatt.nl> | 2011-03-15 15:44:47 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-03-15 15:44:47 +0800 |
commit | accde25e09f39d3aca64a50c72f23bf84d312757 (patch) | |
tree | e925e3d3adf92a853a2d4c56d7cf9b9b2ff22ee9 /src/exec.h | |
parent | [SHELL] Port to Solaris (diff) | |
download | dash-accde25e09f39d3aca64a50c72f23bf84d312757.tar.gz dash-accde25e09f39d3aca64a50c72f23bf84d312757.zip |
[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>
Diffstat (limited to '')
-rw-r--r-- | src/exec.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exec.h b/src/exec.h index daa6f10..9ccb305 100644 --- a/src/exec.h +++ b/src/exec.h @@ -71,7 +71,7 @@ void changepath(const char *); #ifdef notdef void getcmdentry(char *, struct cmdentry *); #endif -void defun(char *, union node *); +void defun(union node *); void unsetfunc(const char *); int typecmd(int, char **); int commandcmd(int, char **); |