Remove termkey_pushinput() from external API; declare static, rename it
This commit is contained in:
parent
3e520f30e0
commit
37d8f18ab5
|
@ -933,7 +933,7 @@ retry:
|
||||||
/* UNREACHABLE */
|
/* UNREACHABLE */
|
||||||
}
|
}
|
||||||
|
|
||||||
void termkey_pushinput(TermKey *tk, const unsigned char *input, size_t inputlen)
|
static void push_bytes(TermKey *tk, const unsigned char *input, size_t inputlen)
|
||||||
{
|
{
|
||||||
if(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) {
|
if(tk->buffstart + tk->buffcount + inputlen > tk->buffsize) {
|
||||||
while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize)
|
while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize)
|
||||||
|
@ -970,7 +970,7 @@ retry:
|
||||||
return TERMKEY_RES_NONE;
|
return TERMKEY_RES_NONE;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
termkey_pushinput(tk, buffer, len);
|
push_bytes(tk, buffer, len);
|
||||||
return TERMKEY_RES_AGAIN;
|
return TERMKEY_RES_AGAIN;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,8 +177,6 @@ TermKeyResult termkey_getkey(TermKey *tk, TermKeyKey *key);
|
||||||
TermKeyResult termkey_getkey_force(TermKey *tk, TermKeyKey *key);
|
TermKeyResult termkey_getkey_force(TermKey *tk, TermKeyKey *key);
|
||||||
TermKeyResult termkey_waitkey(TermKey *tk, TermKeyKey *key);
|
TermKeyResult termkey_waitkey(TermKey *tk, TermKeyKey *key);
|
||||||
|
|
||||||
void termkey_pushinput(TermKey *tk, const unsigned char *input, size_t inputlen);
|
|
||||||
|
|
||||||
TermKeyResult termkey_advisereadable(TermKey *tk);
|
TermKeyResult termkey_advisereadable(TermKey *tk);
|
||||||
|
|
||||||
TermKeySym termkey_register_keyname(TermKey *tk, TermKeySym sym, const char *name);
|
TermKeySym termkey_register_keyname(TermKey *tk, TermKeySym sym, const char *name);
|
||||||
|
|
Loading…
Reference in New Issue