=== modified file 'demo-async.c' --- demo-async.c 2008-11-16 12:40:14 +0000 +++ demo-async.c 2008-11-06 20:29:50 +0000 @@ -11,8 +11,6 @@ } int main(int argc, char *argv[]) { - TERMKEY_CHECK_VERSION; - termkey_t *tk = termkey_new(0, 0); if(!tk) { === modified file 'demo.c' --- demo.c 2008-11-16 12:40:14 +0000 +++ demo.c 2008-10-09 21:41:07 +0000 @@ -3,8 +3,6 @@ #include "termkey.h" int main(int argc, char *argv[]) { - TERMKEY_CHECK_VERSION; - char buffer[50]; termkey_t *tk = termkey_new(0, 0); === modified file 'termkey.c' --- termkey.c 2008-11-16 12:40:14 +0000 +++ termkey.c 2008-11-10 21:21:19 +0000 @@ -8,23 +8,6 @@ #include -void termkey_check_version(int major, int minor) -{ - if(major != TERMKEY_VERSION_MAJOR) { - fprintf(stderr, "libtermkey major version mismatch; %d (wants) != %d (library)\n", - major, TERMKEY_VERSION_MAJOR); - exit(1); - } - - if(minor > TERMKEY_VERSION_MINOR) { - fprintf(stderr, "libtermkey minor version mismatch; %d (wants) > %d (library)\n", - minor, TERMKEY_VERSION_MINOR); - exit(1); - } - - // Happy -} - static struct termkey_driver *drivers[] = { &termkey_driver_ti, &termkey_driver_csi, === modified file 'termkey.h.in' --- termkey.h.in 2008-11-16 12:40:14 +0000 +++ termkey.h.in 2008-11-16 12:28:38 +0000 @@ -7,9 +7,6 @@ #define TERMKEY_VERSION_MAJOR @@VERSION_MAJOR@@ #define TERMKEY_VERSION_MINOR @@VERSION_MINOR@@ -#define TERMKEY_CHECK_VERSION \ - termkey_check_version(TERMKEY_VERSION_MAJOR, TERMKEY_VERSION_MINOR) - typedef enum { TERMKEY_SYM_UNKNOWN = -1, TERMKEY_SYM_NONE = 0, @@ -131,8 +128,6 @@ TERMKEY_FLAG_NOTERMIOS = 1 << 4, // Do not make initial termios calls on construction }; -void termkey_check_version(int major, int minor); - termkey_t *termkey_new(int fd, int flags); void termkey_free(termkey_t *tk); void termkey_destroy(termkey_t *tk);