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.58 by sf-exg, Thu Jan 19 13:33:43 2012 UTC vs.
Revision 1.59 by root, Fri May 18 00:10:47 2012 UTC

168 168
169void 169void
170keyboard_manager::register_done () 170keyboard_manager::register_done ()
171{ 171{
172 unsigned int i, index, hashkey; 172 unsigned int i, index, hashkey;
173 vector <keysym_t *> sorted_keymap;
174 uint16_t hash_bucket_size[KEYSYM_HASH_BUCKETS]; // size of each bucket 173 uint16_t hash_bucket_size[KEYSYM_HASH_BUCKETS]; // size of each bucket
175 174
176 memset (hash_bucket_size, 0, sizeof (hash_bucket_size)); 175 memset (hash_bucket_size, 0, sizeof (hash_bucket_size));
177 176
178 // determine hash bucket size 177 // determine hash bucket size
190 index += hash_bucket_size [i - 1]; 189 index += hash_bucket_size [i - 1];
191 hash [i] = index; 190 hash [i] = index;
192 } 191 }
193 192
194 // and allocate just enough space 193 // and allocate just enough space
195 sorted_keymap.insert (sorted_keymap.begin (), index + hash_bucket_size [i - 1], 0); 194 simplevec <keysym_t *> sorted_keymap (index + hash_bucket_size [i - 1], 0);
196 195
197 memset (hash_bucket_size, 0, sizeof (hash_bucket_size)); 196 memset (hash_bucket_size, 0, sizeof (hash_bucket_size));
198 197
199 // fill in sorted_keymap 198 // fill in sorted_keymap
200 // it is sorted in each bucket 199 // it is sorted in each bucket

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines