NetBSD/lib/libedit
christos f54e4f97f9 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.
2016-02-14 14:49:34 +00:00
..
readline remove duplicate declaration 2015-06-02 15:36:45 +00:00
TEST cast gotsig because it is long on some systems. 2014-06-18 20:12:15 +00:00
chared.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
chared.h From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
chartype.c From Ingo Schwartze: 2016-02-14 14:47:48 +00:00
chartype.h From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
common.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
config.h
editline.3 Fix descriptions of el_set functions. 2015-11-03 21:36:59 +00:00
editrc.5 Bump date for previous. 2014-12-25 13:39:41 +00:00
el.c - Add some more Char casts 2016-02-11 19:21:04 +00:00
el.h GC IGNORE_EXTCHARS and simplify code (Ingo Schwarze) 2016-02-12 15:36:08 +00:00
eln.c Avoid c99 for now. 2016-02-12 17:23:21 +00:00
emacs.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
filecomplete.c callers's -> caller's 2014-10-18 15:07:02 +00:00
filecomplete.h
hist.c
hist.h Whitespace fix (Ingo Schwarze) 2016-01-30 15:05:27 +00:00
histedit.h Don't depend on weak aliases to define the vi "alias" expansion function, 2014-06-18 18:12:28 +00:00
history.c Add a history function that takes a FILE pointer; needed for Capsicum. 2014-05-11 01:05:17 +00:00
keymacro.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
keymacro.h One macro is enough (Ingo Schwarze) 2016-01-29 19:59:11 +00:00
Makefile Disable -Wcast-qual for clang for now. 2015-01-29 20:30:02 +00:00
makelist From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
map.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
map.h Bounds search for reallocated index, from OpenBSD via Andreas Fett 2014-07-06 18:15:34 +00:00
parse.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
parse.h
prompt.c
prompt.h
read.c From Ingo Schwartze: 2016-02-14 14:47:48 +00:00
read.h
readline.c Adjust API to a more modern readline (Ryo Onodera) 2015-06-02 15:35:31 +00:00
refresh.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
refresh.h From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
search.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
search.h From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
shlib_version provide an el_init_fd function. 2013-01-22 20:23:21 +00:00
sig.c
sig.h
sys.h - Add some more Char casts 2016-02-11 19:21:04 +00:00
terminal.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
terminal.h From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
tokenizer.c Fix misplaced parentheses (Ingo Schwarze) 2016-01-30 04:02:51 +00:00
tty.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00
tty.h more tty modes refactoring, no functional change intended. 2014-05-19 19:54:12 +00:00
vi.c From Ingo Schwarze: 2016-02-14 14:49:34 +00:00