Simplify parsing of numeric keysyms in parser.y
authorPierre Le Marre <dev@wismill.eu>
Tue, 4 Jul 2023 07:23:24 +0000 (09:23 +0200)
committerWismill <dev@wismill.eu>
Fri, 14 Jul 2023 07:22:24 +0000 (09:22 +0200)
commit0da68bc648de409b61d691fc9a3c31ada8a00958
tree56379f337a330d34ed48976d89a9c8d72b379753
parent397e7e013def98b751bd91eb2a0b8a614dd28e2b
Simplify parsing of numeric keysyms in parser.y

In `parser.y`, a numeric keysym is parsed by formatting it in its
hexadecimal form then parsed as a keysym name. This is convoluted.

Fixed by checking directly the upper bound.
src/xkbcomp/parser.y