summaryrefslogtreecommitdiff
path: root/lib/libedit/hist.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libedit/hist.h')
-rw-r--r--lib/libedit/hist.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/lib/libedit/hist.h b/lib/libedit/hist.h
index dc4eb0ae4c8..cb3a81c309b 100644
--- a/lib/libedit/hist.h
+++ b/lib/libedit/hist.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: hist.h,v 1.12 2016/03/20 23:48:27 schwarze Exp $ */
-/* $NetBSD: hist.h,v 1.18 2016/02/17 19:47:49 christos Exp $ */
+/* $OpenBSD: hist.h,v 1.13 2016/04/09 19:31:55 schwarze Exp $ */
+/* $NetBSD: hist.h,v 1.19 2016/03/23 22:27:48 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -56,14 +56,9 @@ typedef struct el_history_t {
#define HIST_FUN_INTERNAL(el, fn, arg) \
((((*(el)->el_history.fun) ((el)->el_history.ref, &(el)->el_history.ev, \
fn, arg)) == -1) ? NULL : (el)->el_history.ev.str)
-#ifdef WIDECHAR
#define HIST_FUN(el, fn, arg) \
(((el)->el_flags & NARROW_HISTORY) ? hist_convert(el, fn, arg) : \
HIST_FUN_INTERNAL(el, fn, arg))
-#else
-#define HIST_FUN(el, fn, arg) HIST_FUN_INTERNAL(el, fn, arg)
-#endif
-
#define HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL)
#define HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL)
@@ -80,8 +75,6 @@ protected el_action_t hist_get(EditLine *);
protected int hist_set(EditLine *, hist_fun_t, void *);
protected int hist_command(EditLine *, int, const Char **);
protected int hist_enlargebuf(EditLine *, size_t, size_t);
-#ifdef WIDECHAR
protected wchar_t *hist_convert(EditLine *, int, void *);
-#endif
#endif /* _h_el_hist */