| #
5291651b |
| 14-Jul-2021 |
christos <christos@NetBSD.org> |
Via Jess Thrysoee, from Adrian Bunk: Fix libedit build on Linux/Alpha Alpha is the only Linux architecture that has SIGINFO: https://sources.debian.org/src/manpages/5.10-1/man7/signal.7/#L522
Bu
Via Jess Thrysoee, from Adrian Bunk: Fix libedit build on Linux/Alpha Alpha is the only Linux architecture that has SIGINFO: https://sources.debian.org/src/manpages/5.10-1/man7/signal.7/#L522
But even on Alpha Ctrl-T is not supported, and therefore no VSTATUS: https://sources.debian.org/src/manpages/5.10-1/man3/termios.3/#L603-L608
For consistency check both signal existence and character existence
show more ...
|
| #
58b288d8 |
| 31-May-2020 |
christos <christos@NetBSD.org> |
use strlcpy() instead of strncpy() for gcc happiness
|
| #
85390d73 |
| 02-Dec-2018 |
christos <christos@NetBSD.org> |
Add a couple more readline compat functions.
|
| #
ff1a7c8c |
| 01-Jan-2018 |
christos <christos@NetBSD.org> |
Only FLUSH if we are ending libedit; DRAIN if we suspend for readline. This allows pasting multiline buffers (Gerry Swislow)
|
| #
b2ad969a |
| 05-Sep-2017 |
christos <christos@NetBSD.org> |
For readline emulation, don't reset the tty to "sane" (cooked) mode if we did not start this way. Also set and reset the tty on entry and exit from readline() since this is what readline does.
|
| #
a2d6b270 |
| 09-May-2016 |
christos <christos@NetBSD.org> |
s/protected/libedit_private/g
|
| #
4fc1f47d |
| 18-Apr-2016 |
christos <christos@NetBSD.org> |
From Ingo Schwarze: * Replace fcns.c by a shorter and simpler func.h and include it only in the one file needing it, map.c. * Combine help.h and help.c into a simplified help.h and include it
From Ingo Schwarze: * Replace fcns.c by a shorter and simpler func.h and include it only in the one file needing it, map.c. * Combine help.h and help.c into a simplified help.h and include it only in the one file needing it, map.c. * Check the very simple, static files editline.c, historyn.c, and tokenizern.c into CVS rather than needlessly generating them. * So we no longer autogenerate any C files. :-) * Shorten and simplify makelist by deleting the options -n, -e, -bc, and -m; the latter was unused and useless in the first place. * Move the declaration of el_func_t from fcns.h to the header actually needing it, map.h. Since that header is already included by el.h for unrelated reasons, that makes el_func_t just as globally available as before. * No longer include the simplified fcns.h into el.h, include it directly into the *.c files needing it.
show more ...
|
| #
469d44f8 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Get rid of private/public; keep protected (Ingo Schwarze)
|
| #
0594af80 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
Char -> wchar_t from Ingo Schwarze.
|
| #
0aefc7f9 |
| 11-Apr-2016 |
christos <christos@NetBSD.org> |
more macro WIDECHAR undoing from Ingo Schwarze.
|
| #
fcf85103 |
| 09-Apr-2016 |
christos <christos@NetBSD.org> |
More WIDECHAR elimination (Ingo Schwarze)
|
| #
6b5dea1b |
| 22-Mar-2016 |
christos <christos@NetBSD.org> |
Fix reversed condition in tty_end() (Ingo Schwarze) Also don't succeed if calling setup twice.
|
| #
a1f44db7 |
| 27-Feb-2016 |
christos <christos@NetBSD.org> |
PR/50863: John Hein: libedit el_end() messes up term settings if piped Keep track if we initialized the tty, and only reset it if we did.
|
| #
22383670 |
| 17-Feb-2016 |
christos <christos@NetBSD.org> |
whitespace and header sorting changes (Ingo Schwarze). No functional changes.
|
| #
e84df91e |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
More header cleanups from Ingo Schwarze.
|
| #
747f6811 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
more include file cleanup (Ingo Schwarze)
|
| #
aefc1e44 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also ma
From Ingo Scharze: Let "el.h" include everything needed for struct editline, and don't include that stuff multiple times. That also improves consistency, also avoids circular inclusions, and also makes it easier to follow what is going on, even though not quite as nice. But it seems like the best we can do...
show more ...
|
| #
f09cb8c6 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup chartype.h includes (Ingo Schwarze)
|
| #
40850369 |
| 16-Feb-2016 |
christos <christos@NetBSD.org> |
cleanup inclusion of histedit.h (Ingo Schwarze)
|
| #
f54e4f97 |
| 14-Feb-2016 |
christos <christos@NetBSD.org> |
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces o
From Ingo Schwarze:
As we have seen before, "histedit.h" can never get rid of including the <wchar.h> header because using the data types defined there is deeply ingrained in the public interfaces of libedit.
Now POSIX unconditionally requires that <wchar.h> defines the type wint_t. Consequently, it can be used unconditionally, no matter whether WIDECHAR is active or not. Consequently, the #define Int is pointless.
Note that removing it is not gratuitious churn. Auditing for integer signedness problems is already hard when only fundamental types like "int" and "unsigned" are involved. It gets very hard when types come into the picture that have platform-dependent signedness, like "char" and "wint_t". Adding yet another layer on top, changing both the signedness and the width in a platform- dependent way, makes auditing yet harder, which IMHO is really dangerous. Note that while removing the #define, i already found one bug caused by this excessive complication - in the function re_putc() in refresh.c. If WIDECHAR was defined, it printed an Int = wint_t value with %c. Fortunately, that bug only affects debugging, not production. The fix is contained in the patch.
With WIDECHAR, this doesn't change anything. For the case without WIDECHAR, i checked that none of the places wants to store values that might not fit in wint_t.
This only changes internal interfaces; public ones remain unchanged.
show more ...
|
| #
6af8d673 |
| 11-Feb-2016 |
christos <christos@NetBSD.org> |
- Add some more Char casts - reduce ifdefs by providing empty defs for nls functions (Ingo Schwarze)
|
| #
07d23885 |
| 08-Dec-2015 |
gson <gson@NetBSD.org> |
unbreak the build
|
| #
8d14d38c |
| 08-Dec-2015 |
christos <christos@NetBSD.org> |
If we did not setup the tty, don't reset it.
|
| #
d2ed0c78 |
| 14-May-2015 |
christos <christos@NetBSD.org> |
fix warnings on ubuntu 32 bit (Miki Rozloznik)
|
| #
cc52c7c3 |
| 18-Jun-2014 |
christos <christos@NetBSD.org> |
Add stdlib.h for abort() (Jess Thrysoee)
|