Edit

kc3-lang/libxkbcommon/scripts/update-keysyms

Branch :

  • Show log

    Commit

  • Author : Pierre Le Marre
    Date : 2023-12-14 09:13:35
    Hash : 82f138c6
    Message : keysyms: Add min and max assigned keysyms internal API Currently there is no direct way to know the minimum and maximum keysym values that are assigned, i.e. that have an explicit name or are Unicode keysyms. Introduce the new following internal API: - XKB_KEYSYM_MIN_ASSIGNED - XKB_KEYSYM_MAX_ASSIGNED - XKB_KEYSYM_MIN_EXPLICIT - XKB_KEYSYM_MAX_EXPLICIT - XKB_KEYSYM_COUNT_EXPLICIT Also add a bunch of tests to ensure consistant keysyms bounds.

  • scripts/update-keysyms
  • #!/bin/sh
    # Run this to regenerate xkbcommon-keysyms.h from the X11 headers
    # defining the keysyms and update the name <-> keysym mapping.
    export LC_CTYPE=C
    scripts/makeheader > include/xkbcommon/xkbcommon-keysyms.h
    scripts/makekeys include/xkbcommon/xkbcommon-keysyms.h > src/ks_tables.h
    scripts/update-headers