annotate src/readline-1-input.patch @ 6516:5ef7d51c2195

readline: Update to version 8.2-001. * src/readline.mk: Update version and checksum. * src/readline-0-001-upstream.patch: Upstream patch re-formatted to apply in MXE Octave. See: https://ftp.gnu.org/pub/gnu/readline/readline-8.2-patches/readline82-001 * src/readline-0-002-upstream.patch: Remove upstream patch for previous version. * src/readline-1-input.patch, src/readline-1-sigwinch.patch: Update patches. * src/readline-3-fd_set.patch: Add patch to guard functions that use types that aren't available on Windows. * src/gdb-1-readline-8.2.patch: Cherry-pick upstream patch. * dist-files.mk: Update files in list.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 12 Nov 2022 17:00:41 +0100
parents 41e50d658de0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5607
41e50d658de0 readline: update to v8.1
John Donoghue <john.donoghue@ieee.org>
parents: 5031
diff changeset
1 diff -ur readline-8.1.1/input.c readline-8.1.2/input.c
41e50d658de0 readline: update to v8.1
John Donoghue <john.donoghue@ieee.org>
parents: 5031
diff changeset
2 --- readline-8.1.1/input.c 2020-12-19 07:54:06.883500144 -0500
41e50d658de0 readline: update to v8.1
John Donoghue <john.donoghue@ieee.org>
parents: 5031
diff changeset
3 +++ readline-8.1.2/input.c 2020-12-19 07:55:29.042995655 -0500
6516
5ef7d51c2195 readline: Update to version 8.2-001.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5607
diff changeset
4 @@ -819,7 +819,12 @@
5031
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
5
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
6 #if defined (__MINGW32__)
6516
5ef7d51c2195 readline: Update to version 8.2-001.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5607
diff changeset
7 - if (isatty (fd)
5031
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
8 - return (_getch ()); /* "There is no error return." */
6516
5ef7d51c2195 readline: Update to version 8.2-001.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5607
diff changeset
9 + if (isatty (fd))
5031
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
10 + {
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
11 + int c = _getch ();
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
12 + if (c == 0xe0)
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
13 + rl_execute_next (_getch ());
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
14 + return (c);
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
15 + }
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
16 #endif
5049ab5e66f6 Re-add readline patches to work with readline 8 (Bug #55957)
John Donoghue
parents:
diff changeset
17 result = 0;
6516
5ef7d51c2195 readline: Update to version 8.2-001.
Markus Mützel <markus.muetzel@gmx.de>
parents: 5607
diff changeset
18 #if defined (HAVE_PSELECT) || defined (HAVE_SELECT)