Make it possible to save a function when defining it using the -S switch

darcs-hash:20060908141241-ac50b-69a055a1e791e04e2b1208a5c36b9bb22c854c12.gz
This commit is contained in:
axel
2006-09-09 00:12:41 +10:00
parent 6107d63995
commit 00c25436d7
5 changed files with 270 additions and 60 deletions

View File

@@ -1177,7 +1177,7 @@ void parser_stack_trace( block_t *b, string_buffer_t *buff)
}
case FUNCTION_CALL:
{
sb_printf( buff, _(L"in function '%ls',\n"), b->param1.function_name );
sb_printf( buff, _(L"in function '%ls',\n"), b->param1.function_call_name );
break;
}
case SUBST:
@@ -1245,7 +1245,7 @@ static const wchar_t *is_function()
}
if( b->type == FUNCTION_CALL )
{
return b->param1.function_name;
return b->param1.function_call_name;
}
b=b->outer;
}
@@ -1293,7 +1293,7 @@ const wchar_t *parser_current_filename()
}
if( b->type == FUNCTION_CALL )
{
return function_get_definition_file(b->param1.function_name );
return function_get_definition_file(b->param1.function_call_name );
}
b=b->outer;
}
@@ -3323,7 +3323,8 @@ int parser_test( const wchar_t * buff,
}
/*
Try to make sure that arguments passed to 'end' is always the type of block to close
Try to make sure that arguments passed to 'end'
is always the type of block to close
*/
if( wcscmp( cmd, L"end" ) == 0 )
{