aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-16 12:05:36 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-16 12:06:02 -0700
commit33c64108093304d25db88bc8f4bb6df6078c521d (patch)
tree2dd312113d4f450733f3c37ecb087e4889c2720b /common.h
parent548ea1e54aa17590a573ec5a976ee0413345d360 (diff)
Implemented process expansion on OS X
Also fixed issue where process expansion would always fail for processes with spaces Fixes https://github.com/fish-shell/fish-shell/issues/56
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 774139a5..1a85fde2 100644
--- a/common.h
+++ b/common.h
@@ -206,6 +206,9 @@ wcstring_list_t completions_to_wcstring_list( const std::vector<completion_t> &c
*/
int fgetws2( wchar_t **buff, int *len, FILE *f );
+/** Like fgetws2, but reads into a string */
+int fgetws2(wcstring *s, FILE *f);
+
void sort_strings( std::vector<wcstring> &strings);
void sort_completions( std::vector<completion_t> &strings);