From 68ff2eb3d2d7874e780000143cbee9a8e7c2e57f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 4 Apr 2003 20:19:12 +0000 Subject: add the keyboard plugin into the build systems keyboard bindings are parsed from the rc file --- plugins/keyboard/keysrc.l | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 plugins/keyboard/keysrc.l (limited to 'plugins/keyboard/keysrc.l') diff --git a/plugins/keyboard/keysrc.l b/plugins/keyboard/keysrc.l deleted file mode 100644 index c6f3a363..00000000 --- a/plugins/keyboard/keysrc.l +++ /dev/null @@ -1,38 +0,0 @@ -%{ -#include -#include "y.tab.h" - -extern void kparseerror(char *s); -int kparselineno; -%} - -field [A-Za-z0-9][-A-Za-z0-9]* -number (-[0-9]|[0-9])[0-9]* -string \"[^"\n]*\" - -%% - -^[ \t]*#.*\n kparselineno++; -{number} kparselval.integer = atoi(kparsetext); return INTEGER; -{field} kparselval.string = g_strdup(kparsetext); return FIELD; -{string} { - /* drop the quotes */ - kparselval.string = g_strdup(kparsetext+1); - if (kparselval.string[kparseleng-2] != '"') { - g_warning("improperly terminated string on line %d\n", - kparselineno); - kparseerror(""); - } else - kparselval.string[kparseleng-2] = '\0'; - return STRING; - } - -[ \t] -\n kparselineno++; return *yytext; -. kparseerror(""); - -%% - -int kparsewrap() { - return 1; -} -- cgit v1.2.3