aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-27 19:32:39 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-08-27 19:32:39 +0100
commit83ca948d7818b88fa604a39a73465ba6932d4ce5 (patch)
tree3d0e9ced115cda19fc025daf366175463c3d2ff3
parent5fc3aff57a6869e666037d53e6be91ba94ccc5e7 (diff)
downloadtermo-83ca948d7818b88fa604a39a73465ba6932d4ce5.tar.gz
termo-83ca948d7818b88fa604a39a73465ba6932d4ce5.tar.xz
termo-83ca948d7818b88fa604a39a73465ba6932d4ce5.zip
Deleted legacy type name typedefs and declaration of termkey_snprint_key()
-rw-r--r--termkey.c5
-rw-r--r--termkey.h.in12
2 files changed, 4 insertions, 13 deletions
diff --git a/termkey.c b/termkey.c
index 18ad980..e1969c2 100644
--- a/termkey.c
+++ b/termkey.c
@@ -995,7 +995,10 @@ static TermKeySym register_c0_full(TermKey *tk, TermKeySym sym, int modifier_set
return sym;
}
-/* Previous name for this function */
+/* Previous name for this function
+ * No longer declared in termkey.h but it remains in the compiled library for
+ * backward-compatibility reasons.
+ */
size_t termkey_snprint_key(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format)
{
return termkey_strfkey(tk, buffer, len, key, format);
diff --git a/termkey.h.in b/termkey.h.in
index a22ce5f..f0bce90 100644
--- a/termkey.h.in
+++ b/termkey.h.in
@@ -197,18 +197,6 @@ char *termkey_strpkey(TermKey *tk, const char *str, TermKeyKey *key, TermKeyFo
int termkey_keycmp(TermKey *tk, const TermKeyKey *key1, const TermKeyKey *key2);
-// Old name for termkey_strfkey()
-size_t termkey_snprint_key(TermKey *tk, char *buffer, size_t len, TermKeyKey *key, TermKeyFormat format);
-
-// Legacy name typedefs
-
-typedef TermKeySym termkey_keysym;
-typedef TermKeyType termkey_type;
-typedef TermKeyResult termkey_result;
-typedef TermKeyKey termkey_key;
-
-typedef TermKey termkey_t;
-
#endif
#ifdef __cplusplus