aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:37:46 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-17 19:38:08 -0700
commit86645b32e172301088517bfb860b2e0990b3e5ec (patch)
tree3a085358e6a382074c7569b997a006f2765b7c73 /function.h
parent977c585f8be898e327221911b505da577619520a (diff)
Work towards getting function.h off of shared_ptr
Diffstat (limited to 'function.h')
-rw-r--r--function.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/function.h b/function.h
index 4bf4003f..01f5653b 100644
--- a/function.h
+++ b/function.h
@@ -103,14 +103,10 @@ void function_add( const function_data_t &data, const parser_t &parser );
void function_remove( const wcstring &name );
/**
- Gets a function by name.
+ Returns by reference the definition of the function with the name \c name.
+ Returns true if successful, false if no function with the given name exists.
*/
-shared_ptr<function_info_t> function_get(const wcstring &name);
-
-/**
- Returns the definition of the function with the name \c name.
-*/
-const wchar_t *function_get_definition( const wcstring &name );
+bool function_get_definition( const wcstring &name, wcstring *out_definition );
/**
Returns the description of the function with the name \c name.