mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-26 16:18:31 +00:00
Vendor import NetBSD's libedit of "2010/08/04 20:29:18 UTC".
Obtained from: NetBSD
This commit is contained in:
parent
703cb6130c
commit
c83d78a785
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/vendor/NetBSD/libedit/dist/; revision=220329 svn path=/vendor/NetBSD/libedit/2010-08-04/; revision=220330; tag=vendor/NetBSD/libedit/2010-08-04
13
read.c
13
read.c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: read.c,v 1.55 2010/03/22 22:59:06 christos Exp $ */
|
||||
/* $NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -37,7 +37,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: read.c,v 1.55 2010/03/22 22:59:06 christos Exp $");
|
||||
__RCSID("$NetBSD: read.c,v 1.57 2010/07/21 18:18:52 christos Exp $");
|
||||
#endif
|
||||
#endif /* not lint && not SCCSID */
|
||||
|
||||
@ -321,10 +321,15 @@ read_char(EditLine *el, Char *cp)
|
||||
again:
|
||||
el->el_signal->sig_no = 0;
|
||||
while ((num_read = read(el->el_infd, cbuf + cbp, 1)) == -1) {
|
||||
if (el->el_signal->sig_no == SIGCONT) {
|
||||
sig_set(el);
|
||||
switch (el->el_signal->sig_no) {
|
||||
case SIGCONT:
|
||||
el_set(el, EL_REFRESH);
|
||||
/*FALLTHROUGH*/
|
||||
case SIGWINCH:
|
||||
sig_set(el);
|
||||
goto again;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (!tried && read__fixio(el->el_infd, errno) == 0)
|
||||
tried = 1;
|
||||
|
10
readline.c
10
readline.c
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: readline.c,v 1.89 2010/04/15 00:57:33 christos Exp $ */
|
||||
/* $NetBSD: readline.c,v 1.90 2010/08/04 20:29:18 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#if !defined(lint) && !defined(SCCSID)
|
||||
__RCSID("$NetBSD: readline.c,v 1.89 2010/04/15 00:57:33 christos Exp $");
|
||||
__RCSID("$NetBSD: readline.c,v 1.90 2010/08/04 20:29:18 christos Exp $");
|
||||
#endif /* not lint && not SCCSID */
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -2234,3 +2234,9 @@ void
|
||||
rl_cleanup_after_signal(void)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
rl_on_new_line(void)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: readline.h,v 1.30 2009/09/07 21:24:34 christos Exp $ */
|
||||
/* $NetBSD: readline.h,v 1.31 2010/08/04 20:29:18 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997 The NetBSD Foundation, Inc.
|
||||
@ -202,6 +202,7 @@ int _rl_qsort_string_compare(char **, char **);
|
||||
char **rl_completion_matches(const char *, rl_compentry_func_t *);
|
||||
void rl_forced_update_display(void);
|
||||
int rl_set_prompt(const char *);
|
||||
int rl_on_new_line(void);
|
||||
|
||||
/*
|
||||
* The following are not implemented
|
||||
|
Loading…
Reference in New Issue
Block a user