aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libedit/src/prompt.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libedit/src/prompt.h')
-rw-r--r--lib/libedit/src/prompt.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/libedit/src/prompt.h b/lib/libedit/src/prompt.h
index cde7462859ba..2931428dbb35 100644
--- a/lib/libedit/src/prompt.h
+++ b/lib/libedit/src/prompt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: prompt.h,v 1.10 2009/12/30 22:37:40 christos Exp $ */
+/* $NetBSD: prompt.h,v 1.15 2016/05/09 21:46:56 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -40,21 +40,19 @@
#ifndef _h_el_prompt
#define _h_el_prompt
-#include "histedit.h"
-
-typedef Char *(*el_pfunc_t)(EditLine *);
+typedef wchar_t *(*el_pfunc_t)(EditLine *);
typedef struct el_prompt_t {
el_pfunc_t p_func; /* Function to return the prompt */
coord_t p_pos; /* position in the line after prompt */
- Char p_ignore; /* character to start/end literal */
+ wchar_t p_ignore; /* character to start/end literal */
int p_wide;
} el_prompt_t;
-protected void prompt_print(EditLine *, int);
-protected int prompt_set(EditLine *, el_pfunc_t, Char, int, int);
-protected int prompt_get(EditLine *, el_pfunc_t *, Char *, int);
-protected int prompt_init(EditLine *);
-protected void prompt_end(EditLine *);
+libedit_private void prompt_print(EditLine *, int);
+libedit_private int prompt_set(EditLine *, el_pfunc_t, wchar_t, int, int);
+libedit_private int prompt_get(EditLine *, el_pfunc_t *, wchar_t *, int);
+libedit_private int prompt_init(EditLine *);
+libedit_private void prompt_end(EditLine *);
#endif /* _h_el_prompt */