Migrate function.cpp to STL types.

This commit is contained in:
ridiculousfish
2012-01-13 23:44:18 -08:00
parent 57c9eeeecb
commit 8ba79d6ab9
7 changed files with 161 additions and 260 deletions

View File

@@ -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.