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.96 by root, Fri Feb 3 05:47:05 2006 UTC vs.
Revision 1.97 by root, Sat Feb 4 16:12:48 2006 UTC

762# include "optinc.h" 762# include "optinc.h"
763# undef nodef 763# undef nodef
764# undef def 764# undef def
765 765
766 HV *stash = gv_stashpv ("urxvt", 1); 766 HV *stash = gv_stashpv ("urxvt", 1);
767 struct { 767 static const struct {
768 const char *name; 768 const char *name;
769 IV iv; 769 IV iv;
770 } *civ, const_iv[] = { 770 } *civ, const_iv[] = {
771# define const_iv(name) { # name, (IV)name } 771# define const_iv(name) { # name, (IV)name }
772 const_iv (DEFAULT_RSTYLE), 772 const_iv (DEFAULT_RSTYLE),
1492 1492
1493void 1493void
1494rxvt_term::_resource (char *name, int index, SV *newval = 0) 1494rxvt_term::_resource (char *name, int index, SV *newval = 0)
1495 PPCODE: 1495 PPCODE:
1496{ 1496{
1497 struct resval { const char *name; int value; } rslist [] = { 1497 static const struct resval { const char *name; int value; } *rs, rslist [] = {
1498# define def(name) { # name, Rs_ ## name }, 1498# define def(name) { # name, Rs_ ## name },
1499# define reserve(name,count) 1499# define reserve(name,count)
1500# include "rsinc.h" 1500# include "rsinc.h"
1501# undef def 1501# undef def
1502# undef reserve 1502# undef reserve
1503 }; 1503 };
1504 1504
1505 struct resval *rs = rslist + sizeof (rslist) / sizeof (rslist [0]); 1505 rs = rslist + sizeof (rslist) / sizeof (rslist [0]);
1506 1506
1507 do { 1507 do {
1508 if (rs-- == rslist) 1508 if (rs-- == rslist)
1509 croak ("no such resource '%s', requested", name); 1509 croak ("no such resource '%s', requested", name);
1510 } while (strcmp (name, rs->name)); 1510 } while (strcmp (name, rs->name));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines