aboutsummaryrefslogtreecommitdiffhomepage
path: root/function.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-13 23:44:18 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-01-13 23:54:49 -0800
commit8ba79d6ab9093388df36c06c2b9e2e2b95014cd5 (patch)
tree6e8f5780d241a702d8046dd328e504e9d4eef917 /function.h
parent57c9eeeecb57a618ab534135f07144a4bbc99324 (diff)
Migrate function.cpp to STL types.
Diffstat (limited to 'function.h')
-rw-r--r--function.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/function.h b/function.h
index 8b9051fb..7242a1e9 100644
--- a/function.h
+++ b/function.h
@@ -13,6 +13,7 @@
#include <wchar.h>
#include "util.h"
+#include "common.h"
/**
Structure describing a function. This is used by the parser to
@@ -99,14 +100,11 @@ int function_exists( const wchar_t *name );
int function_exists_no_autoload( const wchar_t *name );
/**
- Insert all function names into l. These are not copies of the
- strings and should not be freed after use.
+ Returns all function names.
- \param list the list to add the names to
\param get_hidden whether to include hidden functions, i.e. ones starting with an underscore
*/
-void function_get_names( array_list_t *list,
- int get_hidden );
+wcstring_list_t function_get_names( int get_hidden );
/**
Returns tha absolute path of the file where the specified function
@@ -129,7 +127,7 @@ 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 );
+wcstring_list_t function_get_named_arguments( const wchar_t *name );
/**
Creates a new function using the same definition as the specified function.