… | |
… | |
24 | #include "../config.h" |
24 | #include "../config.h" |
25 | #include "rxvt.h" |
25 | #include "rxvt.h" |
26 | |
26 | |
27 | #ifdef KEYSYM_RESOURCE |
27 | #ifdef KEYSYM_RESOURCE |
28 | |
28 | |
29 | #include <cstring> |
29 | #include <string.h> |
30 | |
30 | |
31 | #include "rxvtperl.h" |
31 | #include "rxvtperl.h" |
32 | #include "keyboard.h" |
32 | #include "keyboard.h" |
33 | #include "command.h" |
|
|
34 | |
33 | |
35 | /* an intro to the data structure: |
34 | /* an intro to the data structure: |
36 | * |
35 | * |
37 | * vector keymap[] is grouped. |
36 | * vector keymap[] is grouped. |
38 | * |
37 | * |
… | |
… | |
112 | { |
111 | { |
113 | char *translation = rxvt_wcstoutf8 (ws); |
112 | char *translation = rxvt_wcstoutf8 (ws); |
114 | |
113 | |
115 | keysym_t *key = new keysym_t; |
114 | keysym_t *key = new keysym_t; |
116 | |
115 | |
117 | if (!key) |
|
|
118 | rxvt_fatal ("memory allocation failure. aborting.\n"); |
|
|
119 | |
|
|
120 | key->keysym = keysym; |
116 | key->keysym = keysym; |
121 | key->state = state; |
117 | key->state = state; |
122 | key->str = translation; |
118 | key->str = translation; |
123 | key->type = keysym_t::STRING; |
119 | key->type = keysym_t::STRING; |
124 | |
120 | |