1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-12 23:10:51 +00:00

[kbd] Compilation warning

This commit is contained in:
Witold Filipczyk 2021-08-06 19:20:17 +02:00
parent 365bacfa96
commit 56ec5c69dd
2 changed files with 6 additions and 7 deletions

View File

@ -10,12 +10,6 @@ extern "C" {
struct terminal;
/* Some constants for the strings inside of {struct terminal}. */
#define MAX_TERM_LEN 32 /* this must be multiple of 8! (alignment problems) */
#define MAX_CWD_LEN 256 /* this must be multiple of 8! (alignment problems) */
/** Type of an event received from a terminal. */
enum term_event_type {
EVENT_INIT,

View File

@ -7,6 +7,11 @@
extern "C" {
#endif
/* Some constants for the strings inside of {struct terminal}. */
#define MAX_TERM_LEN 32 /* this must be multiple of 8! (alignment problems) */
#define MAX_CWD_LEN 256 /* this must be multiple of 8! (alignment problems) */
struct itrm;
/** A character received from a terminal. */
@ -135,7 +140,7 @@ void resize_terminal(void);
void dispatch_special(char *);
void kbd_ctrl_c(void);
int is_blocked(void);
void get_terminal_name(char *);
void get_terminal_name(char[MAX_TERM_LEN]);
#define kbd_get_key(kbd_) ((kbd_)->key)
#define kbd_key_is(kbd_, key) (kbd_get_key(kbd_) == (key))