mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-05 08:11:15 -03:00
Migrate function.cpp to STL types.
This commit is contained in:
10
function.h
10
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.
|
||||
|
||||
Reference in New Issue
Block a user