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

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.121 by ayin, Sun Jan 27 22:48:33 2008 UTC vs.
Revision 1.124 by root, Thu Jul 31 03:24:08 2008 UTC

639 static const struct { 639 static const struct {
640 const char *name; 640 const char *name;
641 IV iv; 641 IV iv;
642 } *civ, const_iv[] = { 642 } *civ, const_iv[] = {
643# define const_iv(name) { # name, (IV)name } 643# define const_iv(name) { # name, (IV)name }
644 const_iv (NUM_RESOURCES),
644 const_iv (DEFAULT_RSTYLE), 645 const_iv (DEFAULT_RSTYLE),
645 const_iv (OVERLAY_RSTYLE), 646 const_iv (OVERLAY_RSTYLE),
646 const_iv (RS_Bold), 647 const_iv (RS_Bold),
647 const_iv (RS_Italic), 648 const_iv (RS_Italic),
648 const_iv (RS_Blink), 649 const_iv (RS_Blink),
1096 { 1097 {
1097 case 0: RETVAL = THIS->ModLevel3Mask; break; 1098 case 0: RETVAL = THIS->ModLevel3Mask; break;
1098 case 1: RETVAL = THIS->ModMetaMask; break; 1099 case 1: RETVAL = THIS->ModMetaMask; break;
1099 case 2: RETVAL = THIS->ModNumLockMask; break; 1100 case 2: RETVAL = THIS->ModNumLockMask; break;
1100 case 3: RETVAL = THIS->current_screen; break; 1101 case 3: RETVAL = THIS->current_screen; break;
1102#ifdef CURSOR_BLINK
1101 case 4: RETVAL = THIS->hidden_cursor; break; 1103 case 4: RETVAL = THIS->hidden_cursor; break;
1104#endif
1102 } 1105 }
1103 OUTPUT: 1106 OUTPUT:
1104 RETVAL 1107 RETVAL
1105 1108
1106char * 1109char *
1430# undef reserve 1433# undef reserve
1431 }; 1434 };
1432 1435
1433 rs = rslist + sizeof (rslist) / sizeof (rslist [0]); 1436 rs = rslist + sizeof (rslist) / sizeof (rslist [0]);
1434 1437
1438 if (*name)
1435 do { 1439 {
1440 do {
1436 if (rs-- == rslist) 1441 if (rs-- == rslist)
1437 croak ("no such resource '%s', requested", name); 1442 croak ("no such resource '%s', requested", name);
1438 } while (strcmp (name, rs->name)); 1443 } while (strcmp (name, rs->name));
1439 1444
1440 index += rs->value; 1445 index += rs->value;
1446 }
1447 else
1448 {
1449 --rs;
1450 name = "";
1451 }
1441 1452
1442 if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES)) 1453 if (!IN_RANGE_EXC (index, 0, NUM_RESOURCES))
1443 croak ("requested out-of-bound resource %s+%d,", name, index - rs->value); 1454 croak ("requested out-of-bound resource %s+%d,", name, index - rs->value);
1444 1455
1445 if (GIMME_V != G_VOID) 1456 if (GIMME_V != G_VOID)
1703 XFree (prop); 1714 XFree (prop);
1704 } 1715 }
1705} 1716}
1706 1717
1707void 1718void
1708rxvt_term::XChangeWindowProperty (Window window, Atom property, Atom type, int format, SV *data) 1719rxvt_term::XChangeProperty (Window window, Atom property, Atom type, int format, SV *data)
1709 CODE: 1720 CODE:
1710{ 1721{
1711 STRLEN len; 1722 STRLEN len;
1712 char *data_ = SvPVbyte (data, len); 1723 char *data_ = SvPVbyte (data, len);
1713 1724

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines