From: root Date: Sat, 4 Feb 2006 16:12:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=29d9d634c059d9b1315c00168b41e6129cf8cc3f;p=dana%2Furxvt.git *** empty log message *** --- diff --git a/src/rxvtperl.xs b/src/rxvtperl.xs index 7056a6e0..70ec1473 100644 --- a/src/rxvtperl.xs +++ b/src/rxvtperl.xs @@ -764,7 +764,7 @@ BOOT: # undef def HV *stash = gv_stashpv ("urxvt", 1); - struct { + static const struct { const char *name; IV iv; } *civ, const_iv[] = { @@ -1494,7 +1494,7 @@ void rxvt_term::_resource (char *name, int index, SV *newval = 0) PPCODE: { - struct resval { const char *name; int value; } rslist [] = { + static const struct resval { const char *name; int value; } *rs, rslist [] = { # define def(name) { # name, Rs_ ## name }, # define reserve(name,count) # include "rsinc.h" @@ -1502,7 +1502,7 @@ rxvt_term::_resource (char *name, int index, SV *newval = 0) # undef reserve }; - struct resval *rs = rslist + sizeof (rslist) / sizeof (rslist [0]); + rs = rslist + sizeof (rslist) / sizeof (rslist [0]); do { if (rs-- == rslist)