[SHELL] Improve LINENO support
commit5bb39bb1995cb12d8da76b1d482df9be1acc2eb4
authorHarald van Dijk <harald@gigawatt.nl>
Tue, 15 Mar 2011 07:52:05 +0000 (15 15:52 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 15 Mar 2011 07:52:05 +0000 (15 15:52 +0800)
tree09c088a97971babd2e0dd593d7601e282ed5fc69
parentaccde25e09f39d3aca64a50c72f23bf84d312757
[SHELL] Improve LINENO support

This patch improves LINENO support by storing line numbers in the parse
tree, for commands as well as for function definitions. It makes LINENO
behaves properly when calling functions, and has the added benefit of
improved line numbers in error messages when the last-parsed command is
not the last-executed one. It removes the earlier LINENO support, and
instead sets LINENO from evaltree when a command is executed

Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
13 files changed:
ChangeLog
src/error.c
src/error.h
src/eval.c
src/exec.c
src/input.c
src/input.h
src/jobs.c
src/nodetypes
src/parser.c
src/parser.h
src/var.c
src/var.h