aboutsummaryrefslogtreecommitdiffhomepage
path: root/builtin.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-02-02 01:49:11 +1000
committerGravatar axel <axel@liljencrantz.se>2006-02-02 01:49:11 +1000
commitfeabc032f62cc2a2dd4c2626b1c6806a22d5988d (patch)
tree88773f269100dad40fff31376f81470d7f62a2cc /builtin.c
parent9f9f7bf95aa56f266994647b008116721f95132a (diff)
Generalize the stack tracing code, add support for showing events and command substitutions in stack traces
darcs-hash:20060201154911-ac50b-707358ea50231661c05a92b40ca109ec801081e6.gz
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/builtin.c b/builtin.c
index 7b025044..6496719d 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2029,20 +2029,10 @@ static int builtin_source( wchar_t ** argv )
}
else
{
-
- /*
- Push a new non-shadowwing variable scope to the stack. That
- way one can use explicitly local variables in sourced files
- that will die on return to the calling file.
- */
- int lineno = parser_get_lineno();
- wchar_t *file = parser_current_filename()?wcsdup(parser_current_filename()):0;
- reader_push_current_filename( argv[1] );
parser_push_block( SOURCE );
+ reader_push_current_filename( argv[1] );
current_block->param1.source_dest = wcsdup( argv[1] );
- current_block->param3.call_lineno = lineno;
- current_block->param4.call_filename = file;
res = reader_read( fd );
parser_pop_block();