2 #include "xkbcomp-priv.h"
3 #include "parser-priv.h"
6 keyword_gperf_hash(const char *str, unsigned int len);
8 static const struct keyword_tok *
9 keyword_gperf_lookup(const char *str, unsigned int len);
12 struct keyword_tok { int name; int tok; };
14 %define hash-function-name keyword_gperf_hash
15 %define lookup-function-name keyword_gperf_lookup
26 alphanumeric_keys, ALPHANUMERIC_KEYS
27 alternate_group, ALTERNATE_GROUP
31 function_keys, FUNCTION_KEYS
37 keypad_keys, KEYPAD_KEYS
41 modifier_keys, MODIFIER_KEYS
42 modifier_map, MODIFIER_MAP
56 virtual_modifiers, VIRTUAL_MODS
58 xkb_compatibility_map, XKB_COMPATMAP
59 xkb_compatibility, XKB_COMPATMAP
60 xkb_compat_map, XKB_COMPATMAP
61 xkb_compat, XKB_COMPATMAP
62 xkb_geometry, XKB_GEOMETRY
63 xkb_keycodes, XKB_KEYCODES
64 xkb_keymap, XKB_KEYMAP
65 xkb_layout, XKB_LAYOUT
66 xkb_semantics, XKB_SEMANTICS
67 xkb_symbols, XKB_SYMBOLS
72 keyword_to_token(const char *string, unsigned int len)
74 const struct keyword_tok *kt = keyword_gperf_lookup(string, len);