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

Comparing rxvt-unicode/src/command.C (file contents):
Revision 1.465 by sf-exg, Sat Dec 18 14:00:43 2010 UTC vs.
Revision 1.466 by sf-exg, Sat Dec 18 18:17:38 2010 UTC

2695 2695
2696 /* 8.3.87: NEXT LINE */ 2696 /* 8.3.87: NEXT LINE */
2697 case C1_NEL: /* ESC E */ 2697 case C1_NEL: /* ESC E */
2698 { 2698 {
2699 wchar_t nlcr[] = { C0_LF, C0_CR }; 2699 wchar_t nlcr[] = { C0_LF, C0_CR };
2700 scr_add_lines (nlcr, sizeof (nlcr) / sizeof (nlcr [0]), 1); 2700 scr_add_lines (nlcr, ARRAY_LENGTH(nlcr), 1);
2701 } 2701 }
2702 break; 2702 break;
2703 2703
2704 /* kidnapped escape sequence: Should be 8.3.48 */ 2704 /* kidnapped escape sequence: Should be 8.3.48 */
2705 case C1_ESA: /* ESC G */ 2705 case C1_ESA: /* ESC G */
2881 scr_soft_reset (); 2881 scr_soft_reset ();
2882 2882
2883 static const int pm_h[] = { 7, 25 }; 2883 static const int pm_h[] = { 7, 25 };
2884 static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1005, 1015, 1049 }; 2884 static const int pm_l[] = { 1, 3, 4, 5, 6, 9, 66, 1000, 1001, 1005, 1015, 1049 };
2885 2885
2886 process_terminal_mode ('h', 0, sizeof (pm_h) / sizeof (pm_h[0]), pm_h); 2886 process_terminal_mode ('h', 0, ARRAY_LENGTH(pm_h), pm_h);
2887 process_terminal_mode ('l', 0, sizeof (pm_l) / sizeof (pm_l[0]), pm_l); 2887 process_terminal_mode ('l', 0, ARRAY_LENGTH(pm_l), pm_l);
2888 } 2888 }
2889 break; 2889 break;
2890 } 2890 }
2891 2891
2892 return; 2892 return;
3701 for (i = 0; i < nargs; i++) 3701 for (i = 0; i < nargs; i++)
3702 { 3702 {
3703 state = -1; 3703 state = -1;
3704 3704
3705 /* basic handling */ 3705 /* basic handling */
3706 for (j = 0; j < (sizeof (argtopriv)/sizeof (argtopriv[0])); j++) 3706 for (j = 0; j < ARRAY_LENGTH(argtopriv); j++)
3707 if (argtopriv[j].argval == arg[i]) 3707 if (argtopriv[j].argval == arg[i])
3708 { 3708 {
3709 state = privcases (mode, argtopriv[j].bit); 3709 state = privcases (mode, argtopriv[j].bit);
3710 break; 3710 break;
3711 } 3711 }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines