ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/keyboard.C
(Generate patch)

Comparing rxvt-unicode/src/keyboard.C (file contents):
Revision 1.55 by sf-exg, Sat Dec 3 11:47:19 2011 UTC vs.
Revision 1.58 by sf-exg, Thu Jan 19 13:33:43 2012 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines