summaryrefslogtreecommitdiffstats
path: root/lib/libedit/read.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2016-04-11 21:17:29 +0000
committerschwarze <schwarze@openbsd.org>2016-04-11 21:17:29 +0000
commitddc81437857133802b1cf7d8d5bf0ff2198b602b (patch)
tree6795ae431cda27e79015bee1b68a17e30cd02af4 /lib/libedit/read.c
parentdrop -DWIDECHAR, it's no longer needed (diff)
downloadwireguard-openbsd-ddc81437857133802b1cf7d8d5bf0ff2198b602b.tar.xz
wireguard-openbsd-ddc81437857133802b1cf7d8d5bf0ff2198b602b.zip
delete the "private" and "public" preprocessor macros, just use standard C;
OK martijn@
Diffstat (limited to 'lib/libedit/read.c')
-rw-r--r--lib/libedit/read.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c
index c8599af8099..3d17dc1a9a3 100644
--- a/lib/libedit/read.c
+++ b/lib/libedit/read.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: read.c,v 1.34 2016/04/11 20:43:33 schwarze Exp $ */
-/* $NetBSD: read.c,v 1.90 2016/04/11 00:50:13 christos Exp $ */
+/* $OpenBSD: read.c,v 1.35 2016/04/11 21:17:29 schwarze Exp $ */
+/* $NetBSD: read.c,v 1.91 2016/04/11 18:56:31 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -51,10 +51,10 @@
#define OKCMD -1 /* must be -1! */
-private int read__fixio(int, int);
-private int read_char(EditLine *, wchar_t *);
-private int read_getcmd(EditLine *, el_action_t *, wchar_t *);
-private void read_pop(c_macro_t *);
+static int read__fixio(int, int);
+static int read_char(EditLine *, wchar_t *);
+static int read_getcmd(EditLine *, el_action_t *, wchar_t *);
+static void read_pop(c_macro_t *);
/* read_init():
* Initialize the read stuff
@@ -97,7 +97,7 @@ el_read_getfn(EditLine *el)
#endif
#ifdef DEBUG_EDIT
-private void
+static void
read_debug(EditLine *el)
{
@@ -119,7 +119,7 @@ read_debug(EditLine *el)
* Try to recover from a read error
*/
/* ARGSUSED */
-private int
+static int
read__fixio(int fd __attribute__((__unused__)), int e)
{
@@ -180,7 +180,7 @@ read__fixio(int fd __attribute__((__unused__)), int e)
/* el_push():
* Push a macro
*/
-public void
+void
el_wpush(EditLine *el, const wchar_t *str)
{
c_macro_t *ma = &el->el_chared.c_macro;
@@ -200,7 +200,7 @@ el_wpush(EditLine *el, const wchar_t *str)
* Get next command from the input stream, return OKCMD on success.
* Character values > 255 are not looked up in the map, but inserted.
*/
-private int
+static int
read_getcmd(EditLine *el, el_action_t *cmdnum, wchar_t *ch)
{
static const wchar_t meta = (wchar_t)0x80;
@@ -260,7 +260,7 @@ read_getcmd(EditLine *el, el_action_t *cmdnum, wchar_t *ch)
/* read_char():
* Read a character from the tty.
*/
-private int
+static int
read_char(EditLine *el, wchar_t *cp)
{
ssize_t num_read;
@@ -344,7 +344,7 @@ read_char(EditLine *el, wchar_t *cp)
/* read_pop():
* Pop a macro from the stack
*/
-private void
+static void
read_pop(c_macro_t *ma)
{
int i;
@@ -359,7 +359,7 @@ read_pop(c_macro_t *ma)
/* el_wgetc():
* Read a wide character
*/
-public int
+int
el_wgetc(EditLine *el, wchar_t *cp)
{
int num_read;
@@ -433,7 +433,7 @@ read_finish(EditLine *el)
sig_clr(el);
}
-public const wchar_t *
+const wchar_t *
el_wgets(EditLine *el, int *nread)
{
int retval;