static void add_keysym(char *line, int keysym, int keycode, kbd_layout_t *k) {

    if (keysym < MAX_NORMAL_KEYCODE) {

        trace_keymap_add("normal", keysym, keycode, line);

        k->keysym2keycode[keysym] = keycode;

    } else {

        if (k->extra_count >= MAX_EXTRA_COUNT) {

            fprintf(stderr, "Warning: Could not assign keysym %s (0x%x)"

                    " because of memory constraints.\n", line, keysym);

        } else {

            trace_keymap_add("extra", keysym, keycode, line);

            k->keysym2keycode_extra[k->extra_count].

            keysym = keysym;

            k->keysym2keycode_extra[k->extra_count].

            keycode = keycode;

            k->extra_count++;

        }

    }

}

static void add_keysym(char *line, int keysym, int keycode, kbd_layout_t *k) {

    if (keysym < MAX_NORMAL_KEYCODE) {

        trace_keymap_add("normal", keysym, keycode, line);

        k->keysym2keycode[keysym] = keycode;

    } else {

        if (k->extra_count >= MAX_EXTRA_COUNT) {

            fprintf(stderr, "Warning: Could not assign keysym %s (0x%x)"

                    " because of memory constraints.\n", line, keysym);

        } else {

            trace_keymap_add("extra", keysym, keycode, line);

            k->keysym2keycode_extra[k->extra_count].

            keysym = keysym;

            k->keysym2keycode_extra[k->extra_count].

            keycode = keycode;

            k->extra_count++;

        }

    }

}

static void FUNC_0(char *VAR_0, int VAR_1, int VAR_2, kbd_layout_t *VAR_3) {

    if (VAR_1 < MAX_NORMAL_KEYCODE) {

        trace_keymap_add("normal", VAR_1, VAR_2, VAR_0);

        VAR_3->keysym2keycode[VAR_1] = VAR_2;

    } else {

        if (VAR_3->extra_count >= MAX_EXTRA_COUNT) {

            fprintf(stderr, "Warning: Could not assign VAR_1 %s (0x%x)"

                    " because of memory constraints.\n", VAR_0, VAR_1);

        } else {

            trace_keymap_add("extra", VAR_1, VAR_2, VAR_0);

            VAR_3->keysym2keycode_extra[VAR_3->extra_count].

            VAR_1 = VAR_1;

            VAR_3->keysym2keycode_extra[VAR_3->extra_count].

            VAR_2 = VAR_2;

            VAR_3->extra_count++;

        }

    }

}

static void FUNC_0(char *VAR_0, int VAR_1, int VAR_2, kbd_layout_t *VAR_3) { if (VAR_1 < MAX_NORMAL_KEYCODE) { trace_keymap_add("normal", VAR_1, VAR_2, VAR_0); VAR_3->keysym2keycode[VAR_1] = VAR_2; } else { if (VAR_3->extra_count >= MAX_EXTRA_COUNT) { fprintf(stderr, "Warning: Could not assign VAR_1 %s (0x%x)"
" because of memory constraints.\n", VAR_0, VAR_1); } else { trace_keymap_add("extra", VAR_1, VAR_2, VAR_0); VAR_3->keysym2keycode_extra[VAR_3->extra_count].
VAR_1 = VAR_1; VAR_3->keysym2keycode_extra[VAR_3->extra_count].
VAR_2 = VAR_2; VAR_3->extra_count++; } } }