1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-28 01:35:32 +00: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:
Kalle Olavi Niemitalo 2006-08-13 17:16:10 +03:00 committed by Kalle Olavi Niemitalo
parent abc66da432
commit c5c36eba88

View File

@ -7,8 +7,12 @@ struct itrm;
* Values between -0xFF and -2 are not used yet; treat as special.
* Value == -1 is KBD_UNDEF; not sent via socket.
* Values >= 0 are characters received from the terminal;
* in UCS-4 #ifdef CONFIG_UTF_8. */
typedef int term_event_key_T;
* in UCS-4 #ifdef CONFIG_UTF_8.
*
* 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 {
term_event_key_T key;