Add the possibility for functions which do not shadow the arguments of the calling function

darcs-hash:20070422221033-ac50b-d9544c87d0ddab10f7f503b5a1707292f266efe4.gz
This commit is contained in:
axel
2007-04-23 08:10:33 +10:00
parent 2b7535bb51
commit ee94424b0f
6 changed files with 105 additions and 81 deletions

View File

@@ -213,6 +213,11 @@ The fish parser. Contains functions for parsing and evaluating code.
*/
#define FUNCTION_CALL_BLOCK N_( L"function invocation block" )
/**
Function invocation block description
*/
#define FUNCTION_CALL_NO_SHADOW_BLOCK N_( L"function invocation block with no variable shadowing" )
/**
Switch block description
@@ -309,6 +314,10 @@ const static struct block_lookup_entry block_lookup[]=
FUNCTION_CALL, 0, FUNCTION_CALL_BLOCK
}
,
{
FUNCTION_CALL_NO_SHADOW, 0, FUNCTION_CALL_NO_SHADOW_BLOCK
}
,
{
SWITCH, L"switch", SWITCH_BLOCK
}