1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-17 15:01:40 +02:00
zsh/Src/Modules
Daniel Shahaf c6a8516361 github #64: Fix a build-time error when building against ncurses that hadn't been built with --enable-wgetch-events.
The --enable-wgetch-events codepath is experimental (according to
ncurses-6.2/INSTALL) and off by default (according to
ncurses-6.2/configure.in).  With that codepath disabled, the macro
KEY_EVENT is not provided, which (before this commit) manifested as a
build-time error:

    [  245s] gcc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I.  -DHAVE_CONFIG_H -DMODULE -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -flto=auto -g -fPIE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -I/usr/include/ncursesw -fPIC -o curses..o curses.c
    [  246s] In file included from curses.c:210:
    [  246s] curses_keys.h:93:15: error: 'KEY_EVENT' undeclared here (not in a function); did you mean 'KEY_RESET'?
    [  246s]    93 |     {"EVENT", KEY_EVENT},
    [  246s]       |               ^~~~~~~~~
    [  246s]       |               KEY_RESET

curses_keys.h is only used for setting the "kevent" output parameter of
'zcurses input' (and the associated $zcurses_keycodes special variable),
so there's no harm in just leaving KEY_EVENT out of it.  (That codepath
deals gracefully with numeric values that don't correspond to any of the
known compile-time values, as that can happen whenever the build- and
run-time versions of ncurses don't provide the same set of KEY_* macros,
with or without relation to that configure flag.)

Reported by Martin Liska.
2020-08-28 02:54:51 +00:00
..
.cvsignore fallout from 24050: add curses_keys.h to .cvsignore 2007-11-04 16:45:53 +00:00
.distfiles 33047: use git to simplify massively source distribution file selection 2014-08-23 21:01:58 +01:00
.exrc Initial revision 1999-04-15 18:05:38 +00:00
attr.c 36302: attr: Fix compilation with libcap 2.24 2015-08-28 05:12:29 +02:00
attr.mdd 26697: test for Linux- and Mac-style xattr functions 2009-03-08 20:20:47 +00:00
cap.c Richard Hartmann: 27440: typos in module warnings 2009-11-30 09:59:40 +00:00
cap.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
clone.c 43791: File descriptor could be closed twice in clone 2018-11-09 10:54:47 +00:00
clone.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
curses.c 45729: internal: Add a second parameter to zlinklist2array(), analogously to hlinklist2array(). 2020-05-03 01:27:36 +00:00
curses.mdd 36661: replace obsolete "autobins" setting with "autofeatures" 2015-09-27 12:43:03 -07:00
curses_keys.awk github #64: Fix a build-time error when building against ncurses that hadn't been built with --enable-wgetch-events. 2020-08-28 02:54:51 +00:00
datetime.c 43935: Reject too-large nanosecond values given to strftime 2018-12-24 02:42:18 -06:00
datetime.mdd fix datetime autofeatures 2011-08-11 19:43:46 +00:00
db_gdbm.c 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
db_gdbm.mdd 40558, 40562: General improvements to zsh/db/gdbm module 2017-02-17 09:22:02 +00:00
errnames1.awk 18980: new zsh/system module 2003-08-30 19:06:06 +00:00
errnames2.awk 18980: new zsh/system module 2003-08-30 19:06:06 +00:00
example.c 40524: do not free a null array 2017-02-13 18:09:34 -08:00
example.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
files.c 44153: rm: Accept -R as equivalent to -r 2019-03-21 22:04:55 -05:00
files.mdd 24972: Phil Pennock: zf_* variants of zsh/files builtins plus extra options 2008-05-08 09:03:49 +00:00
langinfo.c 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
langinfo.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
mapfile.c 42605: properly free the vi registers hash 2018-04-07 18:52:37 +02:00
mapfile.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
mathfunc.c 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
mathfunc.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
nearcolor.c 43829: nearcolor.c: use double instead of float 2018-11-19 14:57:30 +09:00
nearcolor.mdd 43747: new module to map colours from hex triplets to the nearest matching colour 2018-11-05 22:24:05 +01:00
newuser.c 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
newuser.mdd 21500: Add script and function as framework for new user stuff. 2005-07-20 18:08:39 +00:00
param_private.c 37868: add 'static' to file local variables 2016-02-03 01:25:33 +09:00
param_private.mdd 37081: new module zsh/param/private for private-scoped parameters in functions 2015-11-08 16:19:37 -08:00
parameter.c 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
parameter.mdd 43039: Mark functions_source (et al.) for auto-loading 2018-06-17 20:34:17 -05:00
pcre.c 43219 (except term{cap,info}.c): fix several memory leaks 2018-07-31 22:15:58 +09:00
pcre.mdd 29865: don't compile pcre if no pcre-config 2011-10-26 16:46:09 +00:00
regex.c 40486: Don't warn on creation of MATCH etc. in regex. 2017-02-02 10:03:57 +00:00
regex.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
socket.c 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
socket.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
stat.c 43823: remove unnecessary metafy() in stattimeprint() 2018-11-15 10:59:09 +09:00
stat.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
system.c 46152: zsh/system: Re-allow '0' timeout in zsystem flock 2020-07-11 00:14:58 -05:00
system.mdd 39217: fix error name generation with GCC. 2016-09-07 11:50:00 +01:00
tcp.c unposted: silence warnings on Cygwin 2017-03-10 18:41:25 +09:00
tcp.h 26584: use bind/netdb.h where appropriate 2009-02-20 10:17:43 +00:00
tcp.mdd revert that 2007-07-12 03:09:12 +00:00
termcap.c 43227: fix memory leaks in term{cap,info}.c 2018-08-01 21:36:44 +09:00
termcap.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
terminfo.c 43227: fix memory leaks in term{cap,info}.c 2018-08-01 21:36:44 +09:00
terminfo.mdd 26852: make terminfo.mdd test agree with one in terminfo.c 2009-04-20 17:05:32 +00:00
zftp.c Fix typos reported by codespell in Src/ 2020-01-09 14:49:55 +01:00
zftp.mdd revert that 2007-07-12 03:09:12 +00:00
zprof.c 45923 (with memory leak fixed, cf. 45924): zprof: Don't tally all anonymous functions as though they were a single function named "(anon)". 2020-05-28 19:40:40 +00:00
zprof.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
zpty.c 45058: internal: Add symbolic names to possible values of zexit()'s "from_where" parameter. No functional change. 2019-12-17 05:12:36 +00:00
zpty.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
zselect.c 37838: use UNUSED() consistently 2016-01-30 00:26:23 +09:00
zselect.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00
zutil.c 45737 (+ docs, and update the test from 45722): zstyle: When determining the weight (specificity) of a pattern, consider the number of components before anything else, as documented. 2020-05-02 01:12:07 +00:00
zutil.mdd 23578: make standard features autoloadable, 2007-06-20 20:59:15 +00:00