Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new warning for deprecated keysyms #356

Merged
merged 4 commits into from
Sep 23, 2024

Commits on Sep 23, 2024

  1. Add benchark for compile-keymap

    Implement `tasty-bench` method:
    1. Set n = 1.
    2. Measure execution time t_n of n iterations and execution time t_2n
       of 2n iterations.
    3. Find t which minimizes deviation of (n·t, 2·n·t) from (t_n, t_2n),
       namely t = (t_n + 2·t_2n)/5n.
    4. If deviation is small enough (see --stdev CLI parameter), return t
       as a mean execution time.
    5. Otherwise set n = 2·n and jump back to Step 2.
    
    See: https://hackage.haskell.org/package/tasty-bench
    wismill committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    3577024 View commit details
    Browse the repository at this point in the history
  2. Add function xkb_keysym_is_deprecated

    This function allow to check whether a keysym is deprecated, based
    on the keysym and optionally its name.
    
    The generation of the table of deprecated keysyms relies on the
    rules described in `xkbcommon-keysyms.h`.
    
    The `ks_table.h` is now generated deterministically by setting
    explicitly the random seed to a constant. This will avoid noisy
    diffs in the future.
    wismill committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    0af9c50 View commit details
    Browse the repository at this point in the history
  3. Add new warnings for deprecated keysyms

    Add 2 new warnings:
    - Deprecated keysym name (typo, historical alias, etc.);
    - Deprecated keysym (all names and forms).
    
    Guard deprecated keysym tests with verbosity level ≥2, so they are
    run only when actually needed.
    wismill committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    888aa60 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b146193 View commit details
    Browse the repository at this point in the history