aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-04-17 06:06:11 +1000
committerGravatar axel <axel@liljencrantz.se>2007-04-17 06:06:11 +1000
commit4d6751c2740298709d291dde304d4ee7a9330944 (patch)
tree410a142473dae877a3360dfc7fe15a5fcd4117ed /function.h
parenta03a4d1ba3c1558aa18ad66f54121425e64b9192 (diff)
Allow named arguments to function instead of only $argv. Philip Ganchev once suggested this, and it was suggested again by Egil Möller.
darcs-hash:20070416200611-ac50b-5eb42c94a65a4e72cae12cd9c04424bdc3b2b4f8.gz
Diffstat (limited to 'function.h')
-rw-r--r--function.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/function.h b/function.h
index e1af4106..56f9c31a 100644
--- a/function.h
+++ b/function.h
@@ -31,7 +31,8 @@ void function_destroy();
void function_add( const wchar_t *name,
const wchar_t *val,
const wchar_t *desc,
- array_list_t *events );
+ array_list_t *events,
+ array_list_t *named_arguments );
/**
Remove the function with the specified name.
@@ -86,4 +87,9 @@ const wchar_t *function_get_definition_file( const wchar_t *name );
*/
int function_get_definition_offset( const wchar_t *name );
+/**
+ Returns a list of all named arguments of the specified function.
+*/
+array_list_t *function_get_named_arguments( const wchar_t *name );
+
#endif