diff options
author | 2016-04-11 20:43:33 +0000 | |
---|---|---|
committer | 2016-04-11 20:43:33 +0000 | |
commit | e3191321e10061607f650c80a8b76fe9f4de6d52 (patch) | |
tree | 93beb16f16a09a9e5906e96b726fef5c9612c45c /lib/libedit/filecomplete.c | |
parent | Move wrapper macros to the two files actually needing them: (diff) | |
download | wireguard-openbsd-e3191321e10061607f650c80a8b76fe9f4de6d52.tar.xz wireguard-openbsd-e3191321e10061607f650c80a8b76fe9f4de6d52.zip |
get rid of the non-standard data type "Char" in almost all files;
ok martijn@
Diffstat (limited to 'lib/libedit/filecomplete.c')
-rw-r--r-- | lib/libedit/filecomplete.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libedit/filecomplete.c b/lib/libedit/filecomplete.c index 9f56be234cf..6c22624f75b 100644 --- a/lib/libedit/filecomplete.c +++ b/lib/libedit/filecomplete.c @@ -1,4 +1,4 @@ -/* $OpenBSD: filecomplete.c,v 1.11 2016/04/11 19:54:54 schwarze Exp $ */ +/* $OpenBSD: filecomplete.c,v 1.12 2016/04/11 20:43:33 schwarze Exp $ */ /* $NetBSD: filecomplete.c,v 1.22 2010/12/02 04:42:46 dholland Exp $ */ /*- @@ -47,9 +47,7 @@ #include "el.h" #include "filecomplete.h" -static const Char break_chars[] = { ' ', '\t', '\n', '"', '\\', '\'', '`', '@', - '$', '>', '<', '=', ';', '|', '&', '{', '(', '\0' }; - +static const wchar_t break_chars[] = L" \t\n\"\\'`@$><=;|&{("; /********************************/ /* completion functions */ @@ -390,14 +388,14 @@ int fn_complete(EditLine *el, char *(*complet_func)(const char *, int), char **(*attempted_completion_function)(const char *, int, int), - const Char *word_break, const Char *special_prefixes, + const wchar_t *word_break, const wchar_t *special_prefixes, const char *(*app_func)(const char *), size_t query_items, int *completion_type, int *over, int *point, int *end) { const LineInfoW *li; - Char *temp; + wchar_t *temp; char **matches; - const Char *ctemp; + const wchar_t *ctemp; size_t len; int what_to_do = '\t'; int retval = CC_NORM; |