mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
path: Add method to return wcstring_list_ffi_t
This is palatable to Cxx
This commit is contained in:
parent
15c8f08458
commit
d0c2d0c9cf
|
@ -168,6 +168,10 @@ wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars) {
|
|||
return paths;
|
||||
}
|
||||
|
||||
wcstring_list_ffi_t path_get_paths_ffi(const wcstring &cmd, const parser_t &parser) {
|
||||
return path_get_paths(cmd, parser.vars());
|
||||
}
|
||||
|
||||
wcstring_list_t path_apply_cdpath(const wcstring &dir, const wcstring &wd,
|
||||
const environment_t &env_vars) {
|
||||
wcstring_list_t paths;
|
||||
|
|
|
@ -8,6 +8,8 @@
|
|||
|
||||
#include "common.h"
|
||||
#include "maybe.h"
|
||||
#include "parser.h"
|
||||
#include "wutil.h"
|
||||
|
||||
/// Returns the user configuration directory for fish. If the directory or one of its parents
|
||||
/// doesn't exist, they are first created.
|
||||
|
@ -64,6 +66,9 @@ get_path_result_t path_try_get_path(const wcstring &cmd, const environment_t &va
|
|||
/// Return all the paths that match the given command.
|
||||
wcstring_list_t path_get_paths(const wcstring &cmd, const environment_t &vars);
|
||||
|
||||
// Needed because of issues with vectors of wstring and environment_t.
|
||||
wcstring_list_ffi_t path_get_paths_ffi(const wcstring &cmd, const parser_t &parser);
|
||||
|
||||
/// Returns the full path of the specified directory, using the CDPATH variable as a list of base
|
||||
/// directories for relative paths.
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue
Block a user