History log of /netbsd-src/lib/libedit/refresh.h (Results 1 – 11 of 11)
Revision Date Author Comments
# 3d09ba7b 27-Jun-2017 christos <christos@NetBSD.org>

- add literal sequence handling.


# a2d6b270 09-May-2016 christos <christos@NetBSD.org>

s/protected/libedit_private/g


# 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 ...


# 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 ...


# 34e53048 30-Dec-2009 christos <christos@NetBSD.org>

Wide character support (UTF-8) from Johny Mattsson; currently disabled.


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# 00ff7cac 10-Jan-2001 jdolecek <jdolecek@NetBSD.org>

Enlarge editline buffers as needed to support arbitrary length lines.
This also addresses lib/9712 by Phil Nelson.


# d30d584a 04-Sep-2000 lukem <lukem@NetBSD.org>

convert to new style guide, which includes:
- ansi prototypes & features (such as stdargs)
- 8 space indents


# 2543e3e6 11-Jan-1997 lukem <lukem@NetBSD.org>

RCSid police
editline first appeared in 4.4BSD not NetBSD1.0


# 6dc2f1db 06-May-1994 cgd <cgd@NetBSD.org>

libedit!