mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
terminal: Define term_event_key_T as int32_t, not int.
int might be 16-bit and that is not enough.
This commit is contained in:
parent
abc66da432
commit
c5c36eba88
@ -7,8 +7,12 @@ struct itrm;
|
|||||||
* Values between -0xFF and -2 are not used yet; treat as special.
|
* Values between -0xFF and -2 are not used yet; treat as special.
|
||||||
* Value == -1 is KBD_UNDEF; not sent via socket.
|
* Value == -1 is KBD_UNDEF; not sent via socket.
|
||||||
* Values >= 0 are characters received from the terminal;
|
* Values >= 0 are characters received from the terminal;
|
||||||
* in UCS-4 #ifdef CONFIG_UTF_8. */
|
* in UCS-4 #ifdef CONFIG_UTF_8.
|
||||||
typedef int term_event_key_T;
|
*
|
||||||
|
* Any at least 32-bit signed integer type would work here; using an
|
||||||
|
* exact-width type hurts portability in principle, but some other
|
||||||
|
* parts of ELinks already require the existence of uint32_t. */
|
||||||
|
typedef int32_t term_event_key_T;
|
||||||
|
|
||||||
struct term_event_keyboard {
|
struct term_event_keyboard {
|
||||||
term_event_key_T key;
|
term_event_key_T key;
|
||||||
|
Loading…
Reference in New Issue
Block a user