diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-17 19:46:08 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-17 19:46:08 -0700 |
commit | da6295c428271e34a9e03ce7858e12a2892dff44 (patch) | |
tree | 06075412bff755876a706ee17a336b8666f37b65 /function.h | |
parent | 86645b32e172301088517bfb860b2e0990b3e5ec (diff) |
More work towards getting function.h off of shared_ptr
Diffstat (limited to 'function.h')
-rw-r--r-- | function.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -109,9 +109,10 @@ void function_remove( const wcstring &name ); bool function_get_definition( const wcstring &name, wcstring *out_definition ); /** - Returns the description of the function with the name \c name. + Returns by reference the description of the function with the name \c name. + Returns true if the function exists and has a nonempty description, false if it does not. */ -const wchar_t *function_get_desc( const wcstring &name ); +bool function_get_desc( const wcstring &name, wcstring *out_desc ); /** Sets the description of the function with the name \c name. @@ -141,6 +142,8 @@ wcstring_list_t function_get_names( int get_hidden ); This function does not autoload functions, it will only work on functions that have already been defined. + + This returns an intern'd string. */ const wchar_t *function_get_definition_file( const wcstring &name ); |