diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-17 19:37:46 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-17 19:38:08 -0700 |
commit | 86645b32e172301088517bfb860b2e0990b3e5ec (patch) | |
tree | 3a085358e6a382074c7569b997a006f2765b7c73 /function.h | |
parent | 977c585f8be898e327221911b505da577619520a (diff) |
Work towards getting function.h off of shared_ptr
Diffstat (limited to 'function.h')
-rw-r--r-- | function.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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. |