mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[kbd] Compilation warning
This commit is contained in:
parent
365bacfa96
commit
56ec5c69dd
@ -10,12 +10,6 @@ extern "C" {
|
|||||||
|
|
||||||
struct terminal;
|
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. */
|
/** Type of an event received from a terminal. */
|
||||||
enum term_event_type {
|
enum term_event_type {
|
||||||
EVENT_INIT,
|
EVENT_INIT,
|
||||||
|
@ -7,6 +7,11 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#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;
|
struct itrm;
|
||||||
|
|
||||||
/** A character received from a terminal. */
|
/** A character received from a terminal. */
|
||||||
@ -135,7 +140,7 @@ void resize_terminal(void);
|
|||||||
void dispatch_special(char *);
|
void dispatch_special(char *);
|
||||||
void kbd_ctrl_c(void);
|
void kbd_ctrl_c(void);
|
||||||
int is_blocked(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_get_key(kbd_) ((kbd_)->key)
|
||||||
#define kbd_key_is(kbd_, key) (kbd_get_key(kbd_) == (key))
|
#define kbd_key_is(kbd_, key) (kbd_get_key(kbd_) == (key))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user