diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-01-09 13:57:21 +0000 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-01-09 13:57:21 +0000 |
| commit | 9f9156a7520a8fb62cdb9db4a7fc63434abbb17b (patch) | |
| tree | 5aed67849bd774f080eba01e5e9fb6ecbf21f749 /src/file.hh | |
| parent | e5b36f548b2644b04c440d429ea3b765e1d98f22 (diff) | |
Track String memory allocations
Diffstat (limited to 'src/file.hh')
| -rw-r--r-- | src/file.hh | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/file.hh b/src/file.hh index a8d2dc5c..f9817e2d 100644 --- a/src/file.hh +++ b/src/file.hh @@ -1,6 +1,7 @@ #ifndef file_hh_INCLUDED #define file_hh_INCLUDED +#include "completion.hh" #include "exception.hh" #include "regex.hh" @@ -46,12 +47,10 @@ String find_file(StringView filename, ArrayView<String> paths); time_t get_fs_timestamp(StringView filename); -std::vector<String> complete_filename(StringView prefix, - const Regex& ignore_regex, - ByteCount cursor_pos = -1); +CandidateList complete_filename(StringView prefix, const Regex& ignore_regex, + ByteCount cursor_pos = -1); -std::vector<String> complete_command(StringView prefix, - ByteCount cursor_pos = -1); +CandidateList complete_command(StringView prefix, ByteCount cursor_pos = -1); } #endif // file_hh_INCLUDED |
