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

Comparing rxvt-unicode/src/misc.C (file contents):
Revision 1.57 by root, Thu May 22 18:54:33 2014 UTC vs.
Revision 1.58 by sf-exg, Fri Sep 5 19:02:53 2014 UTC

327 if (!p) 327 if (!p)
328 rxvt_fatal ("memory allocation failure. aborting.\n"); 328 rxvt_fatal ("memory allocation failure. aborting.\n");
329 329
330 return p; 330 return p;
331} 331}
332
333KeySym
334rxvt_XKeycodeToKeysym (Display *dpy, KeyCode code, int index)
335{
336 int size;
337 KeySym *mapping = XGetKeyboardMapping (dpy, code, 1, &size);
338 KeySym keysym = IN_RANGE_EXC (index, 0, size) ? mapping[index] : NoSymbol;
339 XFree (mapping);
340 return keysym;
341}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines