aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 09:36:36 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-18 09:36:36 +0000
commit37d8f18ab5ec138c79ec3b0fbbf8277826992a33 (patch)
treedb2567d69660c188618a7d0aa800dbdf77be8f37
parent3e520f30e06ded318c6a0a976ca509fa301ba5b8 (diff)
downloadtermo-37d8f18ab5ec138c79ec3b0fbbf8277826992a33.tar.gz
termo-37d8f18ab5ec138c79ec3b0fbbf8277826992a33.tar.xz
termo-37d8f18ab5ec138c79ec3b0fbbf8277826992a33.zip
Remove termkey_pushinput() from external API; declare static, rename it
-rw-r--r--termkey.c4
-rw-r--r--termkey.h.in2
2 files changed, 2 insertions, 4 deletions
diff --git a/termkey.c b/termkey.c
index a93e00f..d16f42e 100644
--- a/termkey.c
+++ b/termkey.c
@@ -933,7 +933,7 @@ retry:
/* 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) {
while(tk->buffstart + tk->buffcount + inputlen > tk->buffsize)
@@ -970,7 +970,7 @@ retry:
return TERMKEY_RES_NONE;
}
else {
- termkey_pushinput(tk, buffer, len);
+ push_bytes(tk, buffer, len);
return TERMKEY_RES_AGAIN;
}
}
diff --git a/termkey.h.in b/termkey.h.in
index a3dbab2..7dd50b2 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -177,8 +177,6 @@ TermKeyResult termkey_getkey(TermKey *tk, TermKeyKey *key);
TermKeyResult termkey_getkey_force(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);
TermKeySym termkey_register_keyname(TermKey *tk, TermKeySym sym, const char *name);