Remove some dead code in cmd-move-window.c and make a load of local

functions static.
This commit is contained in:
nicm
2016-10-03 22:52:11 +00:00
parent 305c832a97
commit 1b31d148c9
9 changed files with 202 additions and 203 deletions

View File

@ -40,16 +40,17 @@
* We accept any but always output the latter (it comes first in the table).
*/
int xterm_keys_match(const char *, const char *, size_t, size_t *,
key_code *);
int xterm_keys_modifiers(const char *, size_t, size_t *, key_code *);
static int xterm_keys_match(const char *, const char *, size_t, size_t *,
key_code *);
static int xterm_keys_modifiers(const char *, size_t, size_t *,
key_code *);
struct xterm_keys_entry {
key_code key;
const char *template;
};
const struct xterm_keys_entry xterm_keys_table[] = {
static const struct xterm_keys_entry xterm_keys_table[] = {
{ KEYC_F1, "\033[1;_P" },
{ KEYC_F1, "\033O1;_P" },
{ KEYC_F1, "\033O_P" },
@ -114,7 +115,7 @@ const struct xterm_keys_entry xterm_keys_table[] = {
* Match key against buffer, treating _ as a wildcard. Return -1 for no match,
* 0 for match, 1 if the end of the buffer is reached (need more data).
*/
int
static int
xterm_keys_match(const char *template, const char *buf, size_t len,
size_t *size, key_code *modifiers)
{
@ -148,7 +149,7 @@ xterm_keys_match(const char *template, const char *buf, size_t len,
}
/* Find modifiers from buffer. */
int
static int
xterm_keys_modifiers(const char *buf, size_t len, size_t *pos,
key_code *modifiers)
{