--- rxvt-unicode/src/keyboard.h 2005/01/16 18:05:37 1.2 +++ rxvt-unicode/src/keyboard.h 2008/01/10 00:44:43 1.8 @@ -1,13 +1,36 @@ +/*----------------------------------------------------------------------* + * File: keyboard.h + *----------------------------------------------------------------------* + * + * All portions of code are copyright by their respective author/s. + * Copyright (c) 2005 WU Fengguang + * Copyright (c) 2005-2006 Marc Lehmann + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + *----------------------------------------------------------------------*/ + #ifndef KEYBOARD_H_ #define KEYBOARD_H_ +#ifdef KEYSYM_RESOURCE + #include #include "feature.h" #include "rxvtutil.h" -#ifdef KEYSYM_RESOURCE - #define KEYSYM_HASH_BITS 4 /* lowest #bits of keysym is used as hash key */ #define KEYSYM_HASH_BUDGETS (1< 0xff +# error FATAL: X modifiers might clash with rxvt-unicode ones #endif struct rxvt_term; @@ -33,7 +57,7 @@ struct keysym_t { enum keysym_type { - NORMAL, RANGE, RANGE_META8, LIST + STRING, RANGE, RANGE_META8, LIST, BUILTIN, }; KeySym keysym; @@ -67,13 +91,15 @@ uint16_t hash[KEYSYM_HASH_BUDGETS]; vector keymap; +#if STOCK_KEYMAP // stock keymaps are all static data static keysym_t stock_keymap[]; - // user keymaps and their .string are dynamicaly allocated and freed +#endif + // user keymaps and their .string are dynamically allocated and freed vector user_keymap; vector user_translations; }; #endif /* KEYSYM_RESOURCE */ + #endif /* KEYBOARD_H_ */ -// vim:et:sw=2