diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-20 15:01:56 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-07-20 15:01:56 -0700 |
commit | b290fd33b973e573ffc7fc0c87be3ab431678b5f (patch) | |
tree | 4e361f950bb0934c2b80211fe848380278c1708f /path.h | |
parent | 966bbd476ff209dea8b1ca8670b50dd48854317d (diff) |
Switch to more uses of wcstokenizer from wcstok()
Work towards cleaning up path_get_path
Diffstat (limited to 'path.h')
-rw-r--r-- | path.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -30,6 +30,7 @@ bool path_get_config(wcstring &path); \return 0 if the command can not be found, the path of the command otherwise. The result should be freed with free(). */ wchar_t *path_get_path( const wchar_t *cmd ); +bool path_get_path( const wcstring &cmd, wcstring &output ); /** Returns whether the path can be used for an implicit cd command; if so, also returns the path by reference (if desired). This requires it to start with one of the allowed prefixes (., .., ~) and resolve to a directory. */ bool path_can_be_implicit_cd(const wcstring &path, wcstring *out_path = NULL, const wchar_t *wd = NULL); |