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.112 by root, Thu Dec 14 17:40:03 2006 UTC vs.
Revision 1.114 by ayin, Mon Aug 27 18:31:00 2007 UTC

70 SV *sv = newSVpv (str, 0); 70 SV *sv = newSVpv (str, 0);
71 SvUTF8_on (sv); 71 SvUTF8_on (sv);
72 free (str); 72 free (str);
73 73
74 return sv; 74 return sv;
75}
76
77static SV *
78new_ref (HV *hv, const char *klass)
79{
80 return sv_bless (newRV ((SV *)hv), gv_stashpv (klass, 1));
81} 75}
82 76
83static SV * 77static SV *
84newSVptr (void *ptr, const char *klass) 78newSVptr (void *ptr, const char *klass)
85{ 79{
1401SV * 1395SV *
1402rxvt_term::special_decode (SV *text) 1396rxvt_term::special_decode (SV *text)
1403 CODE: 1397 CODE:
1404{ 1398{
1405 wchar_t *wstr = sv2wcs (text); 1399 wchar_t *wstr = sv2wcs (text);
1406 int wlen = wcslen (wstr);
1407 int dlen = 0; 1400 int dlen = 0;
1408 1401
1409 // find length 1402 // find length
1410 for (wchar_t *s = wstr; *s; s++) 1403 for (wchar_t *s = wstr; *s; s++)
1411 if (*s == NOCHAR) 1404 if (*s == NOCHAR)
1474 1467
1475const char * 1468const char *
1476rxvt_term::x_resource (const char *name) 1469rxvt_term::x_resource (const char *name)
1477 1470
1478bool 1471bool
1479rxvt_term::option (U32 optval, int set = -1) 1472rxvt_term::option (U8 optval, int set = -1)
1480 CODE: 1473 CODE:
1481{ 1474{
1482 RETVAL = THIS->options & optval; 1475 RETVAL = THIS->option (optval);
1483 1476
1484 if (set >= 0) 1477 if (set >= 0)
1485 { 1478 {
1486 if (set)
1487 THIS->options |= optval; 1479 THIS->set_option (optval, set);
1488 else
1489 THIS->options &= ~optval;
1490 1480
1491 if (THIS->check_ev.is_active ()) // avoid doing this before START 1481 if (THIS->check_ev.is_active ()) // avoid doing this before START
1492 switch (optval) 1482 switch (optval)
1493 { 1483 {
1494 case Opt_skipBuiltinGlyphs: 1484 case Opt_skipBuiltinGlyphs:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines