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.247 by root, Tue Jun 30 07:31:24 2020 UTC vs.
Revision 1.253 by root, Sat Jul 24 11:58:27 2021 UTC

377/* but therse are not guaranteed anyway... */ 377/* but therse are not guaranteed anyway... */
378rxvt_perl_interp::~rxvt_perl_interp () 378rxvt_perl_interp::~rxvt_perl_interp ()
379{ 379{
380 if (perl) 380 if (perl)
381 { 381 {
382 localise_env set_environ (perl_environ);
382 perl_destruct (perl); 383 perl_destruct (perl);
383 perl_free (perl); 384 perl_free (perl);
384 PERL_SYS_TERM (); 385 PERL_SYS_TERM ();
385 } 386 }
386} 387}
820 } *civ, const_iv[] = { 821 } *civ, const_iv[] = {
821# define const_iv(name) { # name, (IV)name } 822# define const_iv(name) { # name, (IV)name }
822 const_iv (HOOK_INIT), 823 const_iv (HOOK_INIT),
823 const_iv (HOOK_DESTROY), 824 const_iv (HOOK_DESTROY),
824 const_iv (HOOK_ACTION), 825 const_iv (HOOK_ACTION),
826 const_iv (HOOK_OSC_SEQ),
827 const_iv (HOOK_OSC_SEQ_PERL),
825 828
826 const_iv (NUM_RESOURCES), 829 const_iv (NUM_RESOURCES),
827 const_iv (DEFAULT_RSTYLE), 830 const_iv (DEFAULT_RSTYLE),
828 const_iv (OVERLAY_RSTYLE), 831 const_iv (OVERLAY_RSTYLE),
829 const_iv (Color_Bits), 832 const_iv (Color_Bits),
1050 const_iv (PrivMode_vt52), 1053 const_iv (PrivMode_vt52),
1051 const_iv (PrivMode_LFNL), 1054 const_iv (PrivMode_LFNL),
1052 const_iv (PrivMode_MouseBtnEvent), 1055 const_iv (PrivMode_MouseBtnEvent),
1053 const_iv (PrivMode_MouseAnyEvent), 1056 const_iv (PrivMode_MouseAnyEvent),
1054 const_iv (PrivMode_BracketPaste), 1057 const_iv (PrivMode_BracketPaste),
1055 const_iv (PrivMode_ExtModeMouse), 1058 const_iv (PrivMode_ExtMouseUTF8),
1056 const_iv (PrivMode_ExtMouseRight), 1059 const_iv (PrivMode_ExtMouseUrxvt),
1057 const_iv (PrivMode_BlinkingCursor), 1060 const_iv (PrivMode_BlinkingCursor),
1058 const_iv (PrivMode_mouse_report), 1061 const_iv (PrivMode_mouse_report),
1059 const_iv (PrivMode_Default), 1062 const_iv (PrivMode_Default),
1060 }; 1063 };
1061 1064
1561 THIS->rstyle = new_rstyle; 1564 THIS->rstyle = new_rstyle;
1562 OUTPUT: 1565 OUTPUT:
1563 RETVAL 1566 RETVAL
1564 1567
1565int 1568int
1566rxvt_term::view_start (int newval = 1) 1569rxvt_term::view_start (int newval = 0)
1567 PROTOTYPE: $;$ 1570 PROTOTYPE: $;$
1568 CODE: 1571 CODE:
1569{ 1572{
1570 RETVAL = THIS->view_start; 1573 RETVAL = THIS->view_start;
1571 1574 if (items > 1)
1572 if (newval <= 0)
1573 THIS->scr_changeview (max (newval, THIS->top_row)); 1575 THIS->scr_changeview (newval);
1574} 1576}
1575 OUTPUT: 1577 OUTPUT:
1576 RETVAL 1578 RETVAL
1577 1579
1578void 1580void
1788 // find length 1790 // find length
1789 for (wchar_t *s = wstr; *s; s++) 1791 for (wchar_t *s = wstr; *s; s++)
1790 if (*s == NOCHAR) 1792 if (*s == NOCHAR)
1791 ; 1793 ;
1792 else if (IS_COMPOSE (*s)) 1794 else if (IS_COMPOSE (*s))
1793 dlen += rxvt_composite.expand (*s, 0); 1795 dlen += rxvt_composite.expand (*s);
1794 else 1796 else
1795 dlen++; 1797 dlen++;
1796 1798
1797 wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen); 1799 wchar_t *rstr = rxvt_temp_buf<wchar_t> (dlen);
1798 1800

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines