Debian Codegraph @

test/keysym.h.jinja

raw
1 /*
2 * NOTE: This file has been generated automatically by “{{script}}”.
3 * Do not edit manually!
4 */
5
6 /*
7 * Copyright © 2024 Pierre Le Marre <[email protected]>
8 * SPDX-License-Identifier: MIT
9 */
10 #pragma once
11
12 #include "config.h"
13
14 #include "xkbcommon/xkbcommon.h"
15 #include "xkbcommon/xkbcommon-keysyms.h"
16
17 struct ambiguous_icase_ks_names_entry {
18 xkb_keysym_t keysym;
19 const int count;
20 const char *names[{{ MAX_AMBIGUOUS_NAMES }}];
21 };
22
23 static const struct ambiguous_icase_ks_names_entry
24 ambiguous_icase_ks_names[] = {
25 {% for names in ambiguous_case_insensitive_names.values() %}
26 { XKB_KEY_{{ names[-1] }}, {{ names | length }}, { {# -#}
27 {% for name in names -%}
28 "{{ name }}"{% if not loop.last %}, {% endif -%}
29 {% endfor %}
30 {#- #} } }
31 {%- if not loop.last %},{% endif +%}
32 {% endfor %}
33 };