mirror of
git://git.sv.gnu.org/nano.git
synced 2024-12-24 19:36:52 +03:00
make get_escape_seq_kbinput()'s escape_seq parameter a const int*, since
it's never modified git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1987 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
e53181d423
commit
5780b24759
@ -190,6 +190,9 @@ CVS code -
|
|||||||
new first parameter to the first character of the sequence
|
new first parameter to the first character of the sequence
|
||||||
instead of putting that character back and reading the entire
|
instead of putting that character back and reading the entire
|
||||||
sequence afterwards. (DLR)
|
sequence afterwards. (DLR)
|
||||||
|
get_escape_seq_kbinput()
|
||||||
|
- Make the escape_seq parameter a const int*, since it's never
|
||||||
|
modified. (DLR)
|
||||||
get_verbatim_kbinput()
|
get_verbatim_kbinput()
|
||||||
- Add new parameter first. If first isn't ERR, make it the
|
- Add new parameter first. If first isn't ERR, make it the
|
||||||
first character in the returned sequence instead of reading
|
first character in the returned sequence instead of reading
|
||||||
|
@ -516,7 +516,7 @@ int get_ascii_kbinput(int kbinput, size_t ascii_digits
|
|||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
int get_control_kbinput(int kbinput);
|
int get_control_kbinput(int kbinput);
|
||||||
int get_escape_seq_kbinput(int *escape_seq, size_t es_len, bool
|
int get_escape_seq_kbinput(const int *escape_seq, size_t es_len, bool
|
||||||
*ignore_seq);
|
*ignore_seq);
|
||||||
int get_escape_seq_abcd(int kbinput);
|
int get_escape_seq_abcd(int kbinput);
|
||||||
int *get_verbatim_kbinput(WINDOW *win, int first, int *v_kbinput, size_t
|
int *get_verbatim_kbinput(WINDOW *win, int first, int *v_kbinput, size_t
|
||||||
|
@ -581,7 +581,7 @@ int get_control_kbinput(int kbinput)
|
|||||||
* ERR and set ignore_seq to TRUE; if it's unrecognized, return ERR and
|
* ERR and set ignore_seq to TRUE; if it's unrecognized, return ERR and
|
||||||
* set ignore_seq to FALSE. Assume that Escape has already been read
|
* set ignore_seq to FALSE. Assume that Escape has already been read
|
||||||
* in. */
|
* in. */
|
||||||
int get_escape_seq_kbinput(int *escape_seq, size_t es_len, bool
|
int get_escape_seq_kbinput(const int *escape_seq, size_t es_len, bool
|
||||||
*ignore_seq)
|
*ignore_seq)
|
||||||
{
|
{
|
||||||
int retval = ERR;
|
int retval = ERR;
|
||||||
|
Loading…
Reference in New Issue
Block a user