aboutsummaryrefslogtreecommitdiff
path: root/console-client/xkb/lex.l
Commit message (Collapse)AuthorAgeFilesLines
* console-client: use xkbcommon instead of x11 for xkb extended supportEtienne Brateau2024-03-101-386/+0
| | | | | | | | | | | | | | | | | | This allow to reduce the dependencies, only xkbcommon (keyboard support only) is required instead of the whole x11 library + lex + yacc. This replacement allow to reduce the code size, now features are handled by xkbcommon itself. The functionnalites remain the sames (actions are reimplemented but in the code directly as it’s impossible to add custom actions). The custom xkb data files are removed as we can now directly use the standard ones from xkeyboard-config. The configuration to launch the console keyboard modules changed to now directly configure the model+layout+variat+options directly. Tested by compiling with and without xkbcommon. Tested X11 (ran i3 correctly). Composing is still working. Message-ID: <20240309234838.31923-1-etienne.brateau@gmail.com>
* Modernize code by removing use of old style definitions.Flavio Cruz2023-04-031-2/+2
| | | | | Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
* 'vmods' is an alias for 'virtual_modifiers'.Diego Nieto Cid2011-04-081-0/+1
|
* Add debugging messages.Diego Nieto Cid2011-04-081-0/+3
| | | | | | | | | * console-client/xkb/lex.l(include_file): Log file changes. * console-client/xkb/parser.y(key_set_keysym): Log symbol associations. (include_section): Log section being read. (symbolssect,keycodesect,key_new): Log current key. * console-client/xkb/xkbdata.c(keyname_add): Log keyname, keycode and hash. (set_rmod_keycode): Log modifier, keyname and keycode.
* Add function to read the state of the scanner.Diego Nieto Cid2011-04-081-0/+12
| | | | | * console-client/xkb/lex.l (scanner_get_current_location): New function. (scanner_get_current_file): Likewise.
* Propagate error on unexpected end of files.Diego Nieto Cid2011-04-081-7/+9
| | | | | | * console-client/xkb/lex.l (close_include): Return an error code on failure. (yywrap): Indicate termination when close_include fails.
* Give the file name and line number where an unexpected end of file was found.Diego Nieto Cid2011-04-081-1/+1
|
* Lexer support for keycodes with +/- symbols and arbitrary level numbers.Diego Nieto Cid2011-04-081-1/+2
|
* Add XKB parser and implementation.Marco Gerards2011-03-171-0/+367
* console-client/xkb/Compose: New file. * console-client/xkb/MISSING-FEATURES: Likewise. * console-client/xkb/README: Likewise. * console-client/xkb/TODO: Likewise. * console-client/xkb/compose.c: Likewise. * console-client/xkb/default.xkb: Likewise. * console-client/xkb/keysymdef.h: Likewise. * console-client/xkb/ks_tables.h: Likewise. * console-client/xkb/kstoucs.c: Likewise. * console-client/xkb/lex.l: Likewise. * console-client/xkb/makeconf.sh: Likewise. * console-client/xkb/parser.y: Likewise. * console-client/xkb/symname.c: Likewise. * console-client/xkb/xkb-data/keymap/hurd: Likewise. * console-client/xkb/xkb-data/symbols/hurd: Likewise. * console-client/xkb/xkb-data/types/hurd: Likewise. * console-client/xkb/xkb.c: Likewise. * console-client/xkb/xkb.h: Likewise. * console-client/xkb/xkbdata.c: Likewise. * console-client/xkb/xkbdefaults.c: Likewise. * console-client/xkb/xkbtimer.c: Likewise.