1 | /*----------------------------------------------------------------------* |
1 | /*----------------------------------------------------------------------* |
2 | * File: rxvtperl.xs |
2 | * File: rxvtperl.xs |
3 | *----------------------------------------------------------------------* |
3 | *----------------------------------------------------------------------* |
4 | * |
4 | * |
5 | * All portions of code are copyright by their respective author/s. |
5 | * All portions of code are copyright by their respective author/s. |
6 | * Copyright (c) 2005-2005 Marc Lehmann <pcg@goof.com> |
6 | * Copyright (c) 2005-2006 Marc Lehmann <pcg@goof.com> |
7 | * |
7 | * |
8 | * This program is free software; you can redistribute it and/or modify |
8 | * This program is free software; you can redistribute it and/or modify |
9 | * it under the terms of the GNU General Public License as published by |
9 | * it under the terms of the GNU General Public License as published by |
10 | * the Free Software Foundation; either version 2 of the License, or |
10 | * the Free Software Foundation; either version 2 of the License, or |
11 | * (at your option) any later version. |
11 | * (at your option) any later version. |
… | |
… | |
101 | croak ("perl code used %s object, but C++ object is already destroyed, caught", klass); |
101 | croak ("perl code used %s object, but C++ object is already destroyed, caught", klass); |
102 | |
102 | |
103 | return (long)mg->mg_ptr; |
103 | return (long)mg->mg_ptr; |
104 | } |
104 | } |
105 | |
105 | |
106 | #define newSVterm(term) SvREFCNT_inc ((SV *)term->self) |
106 | #define newSVterm(term) SvREFCNT_inc ((SV *)term->perl.self) |
107 | #define SvTERM(sv) (rxvt_term *)SvPTR (sv, "urxvt::term") |
107 | #define SvTERM(sv) (rxvt_term *)SvPTR (sv, "urxvt::term") |
108 | |
108 | |
109 | ///////////////////////////////////////////////////////////////////////////// |
109 | ///////////////////////////////////////////////////////////////////////////// |
110 | |
110 | |
111 | struct perl_watcher |
111 | struct perl_watcher |
… | |
… | |
290 | void |
290 | void |
291 | overlay::show () |
291 | overlay::show () |
292 | { |
292 | { |
293 | char key[33]; sprintf (key, "%32lx", (long)this); |
293 | char key[33]; sprintf (key, "%32lx", (long)this); |
294 | |
294 | |
295 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)THIS->self), "_overlay", 8, 0)); |
295 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)THIS->perl.self), "_overlay", 8, 0)); |
296 | hv_store (hv, key, 32, newSViv ((long)this), 0); |
296 | hv_store (hv, key, 32, newSViv ((long)this), 0); |
297 | } |
297 | } |
298 | |
298 | |
299 | void |
299 | void |
300 | overlay::hide () |
300 | overlay::hide () |
301 | { |
301 | { |
302 | SV **ovs = hv_fetch ((HV *)SvRV ((SV *)THIS->self), "_overlay", 8, 0); |
302 | SV **ovs = hv_fetch ((HV *)SvRV ((SV *)THIS->perl.self), "_overlay", 8, 0); |
303 | |
303 | |
304 | if (ovs) |
304 | if (ovs) |
305 | { |
305 | { |
306 | char key[33]; sprintf (key, "%32lx", (long)this); |
306 | char key[33]; sprintf (key, "%32lx", (long)this); |
307 | |
307 | |
… | |
… | |
415 | if (!perl) |
415 | if (!perl) |
416 | return false; |
416 | return false; |
417 | |
417 | |
418 | if (htype == HOOK_INIT) // first hook ever called |
418 | if (htype == HOOK_INIT) // first hook ever called |
419 | { |
419 | { |
420 | term->self = (void *)newSVptr ((void *)term, "urxvt::term"); |
420 | term->perl.self = (void *)newSVptr ((void *)term, "urxvt::term"); |
421 | hv_store ((HV *)SvRV ((SV *)term->self), "_overlay", 8, newRV_noinc ((SV *)newHV ()), 0); |
421 | hv_store ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, newRV_noinc ((SV *)newHV ()), 0); |
422 | } |
422 | } |
423 | else if (!term->self) |
423 | else if (!term->perl.self) |
424 | return false; // perl not initialized for this instance |
424 | return false; // perl not initialized for this instance |
425 | else if (htype == HOOK_DESTROY) |
425 | else if (htype == HOOK_DESTROY) |
426 | { |
426 | { |
427 | // handled later |
427 | // handled later |
428 | } |
428 | } |
429 | else if (htype == HOOK_REFRESH_BEGIN || htype == HOOK_REFRESH_END) |
429 | else if (htype == HOOK_REFRESH_BEGIN || htype == HOOK_REFRESH_END) |
430 | { |
430 | { |
431 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->self), "_overlay", 8, 0)); |
431 | HV *hv = (HV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); |
432 | |
432 | |
433 | if (HvKEYS (hv)) |
433 | if (HvKEYS (hv)) |
434 | { |
434 | { |
435 | hv_iterinit (hv); |
435 | hv_iterinit (hv); |
436 | |
436 | |
… | |
… | |
465 | |
465 | |
466 | case DT_LONG: |
466 | case DT_LONG: |
467 | XPUSHs (sv_2mortal (newSViv (va_arg (ap, long)))); |
467 | XPUSHs (sv_2mortal (newSViv (va_arg (ap, long)))); |
468 | break; |
468 | break; |
469 | |
469 | |
470 | case DT_STRING: |
470 | case DT_STR: |
471 | XPUSHs (sv_2mortal (newSVpv (va_arg (ap, char *), 0))); |
471 | XPUSHs (sv_2mortal (newSVpv (va_arg (ap, char *), 0))); |
472 | break; |
472 | break; |
473 | |
473 | |
474 | case DT_USTRING_LEN: |
474 | case DT_STR_LEN: |
475 | { |
475 | { |
476 | unicode_t *ustr = va_arg (ap, unicode_t *); |
476 | char *str = va_arg (ap, char *); |
477 | int ulen = va_arg (ap, int); |
477 | int len = va_arg (ap, int); |
|
|
478 | |
|
|
479 | XPUSHs (sv_2mortal (newSVpvn (str, len))); |
|
|
480 | } |
|
|
481 | break; |
|
|
482 | |
|
|
483 | case DT_WCS_LEN: |
|
|
484 | { |
478 | wchar_t *wstr = new wchar_t [ulen]; |
485 | wchar_t *wstr = va_arg (ap, wchar_t *); |
|
|
486 | int wlen = va_arg (ap, int); |
479 | |
487 | |
480 | for (int i = ulen; i--; ) |
|
|
481 | wstr [i] = ustr [i]; |
|
|
482 | |
|
|
483 | XPUSHs (sv_2mortal (wcs2sv (wstr, ulen))); |
488 | XPUSHs (sv_2mortal (wcs2sv (wstr, wlen))); |
|
|
489 | } |
|
|
490 | break; |
484 | |
491 | |
485 | delete [] wstr; |
492 | case DT_XEVENT: |
486 | } |
493 | { |
|
|
494 | XEvent *xe = va_arg (ap, XEvent *); |
|
|
495 | HV *hv = newHV (); |
|
|
496 | |
|
|
497 | # define set(name, sv) hv_store (hv, # name, sizeof (# name) - 1, sv, 0) |
|
|
498 | # define setiv(name, val) hv_store (hv, # name, sizeof (# name) - 1, newSViv (val), 0) |
|
|
499 | # undef set |
|
|
500 | |
|
|
501 | setiv (type, xe->type); |
|
|
502 | setiv (send_event, xe->xany.send_event); |
|
|
503 | setiv (serial, xe->xany.serial); |
|
|
504 | |
|
|
505 | switch (xe->type) |
|
|
506 | { |
|
|
507 | case KeyPress: |
|
|
508 | case KeyRelease: |
|
|
509 | case ButtonPress: |
|
|
510 | case ButtonRelease: |
|
|
511 | case MotionNotify: |
|
|
512 | setiv (time, xe->xmotion.time); |
|
|
513 | setiv (x, xe->xmotion.x); |
|
|
514 | setiv (y, xe->xmotion.y); |
|
|
515 | setiv (row, xe->xmotion.y / term->fheight); |
|
|
516 | setiv (col, xe->xmotion.x / term->fwidth); |
|
|
517 | setiv (x_root, xe->xmotion.x_root); |
|
|
518 | setiv (y_root, xe->xmotion.y_root); |
|
|
519 | setiv (state, xe->xmotion.state); |
|
|
520 | break; |
|
|
521 | } |
|
|
522 | |
|
|
523 | switch (xe->type) |
|
|
524 | { |
|
|
525 | case KeyPress: |
|
|
526 | case KeyRelease: |
|
|
527 | setiv (keycode, xe->xkey.keycode); |
|
|
528 | break; |
|
|
529 | |
|
|
530 | case ButtonPress: |
|
|
531 | case ButtonRelease: |
|
|
532 | setiv (button, xe->xbutton.button); |
|
|
533 | break; |
|
|
534 | |
|
|
535 | case MotionNotify: |
|
|
536 | setiv (is_hint, xe->xmotion.is_hint); |
|
|
537 | break; |
|
|
538 | } |
|
|
539 | |
|
|
540 | XPUSHs (sv_2mortal (newRV_noinc ((SV *)hv))); |
|
|
541 | } |
|
|
542 | break; |
487 | |
543 | |
488 | case DT_END: |
544 | case DT_END: |
489 | { |
545 | { |
490 | va_end (ap); |
546 | va_end (ap); |
491 | |
547 | |
… | |
… | |
506 | if (SvTRUE (ERRSV)) |
562 | if (SvTRUE (ERRSV)) |
507 | rxvt_warn ("perl hook %d evaluation error: %s", htype, SvPV_nolen (ERRSV)); |
563 | rxvt_warn ("perl hook %d evaluation error: %s", htype, SvPV_nolen (ERRSV)); |
508 | |
564 | |
509 | if (htype == HOOK_DESTROY) |
565 | if (htype == HOOK_DESTROY) |
510 | { |
566 | { |
511 | clearSVptr ((SV *)term->self); |
567 | clearSVptr ((SV *)term->perl.self); |
512 | SvREFCNT_dec ((SV *)term->self); |
568 | SvREFCNT_dec ((SV *)term->perl.self); |
513 | } |
569 | } |
514 | |
570 | |
515 | return count; |
571 | return count; |
516 | } |
572 | } |
517 | |
573 | |
… | |
… | |
540 | export_const (RS_Bold); |
596 | export_const (RS_Bold); |
541 | export_const (RS_Italic); |
597 | export_const (RS_Italic); |
542 | export_const (RS_Blink); |
598 | export_const (RS_Blink); |
543 | export_const (RS_RVid); |
599 | export_const (RS_RVid); |
544 | export_const (RS_Uline); |
600 | export_const (RS_Uline); |
|
|
601 | export_const (CurrentTime); |
545 | |
602 | |
546 | sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); |
603 | sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); |
547 | } |
604 | } |
548 | |
605 | |
549 | SV * |
606 | SV * |
… | |
… | |
569 | { |
626 | { |
570 | term->destroy (); |
627 | term->destroy (); |
571 | croak ("exception caught while initializing new terminal instance"); |
628 | croak ("exception caught while initializing new terminal instance"); |
572 | } |
629 | } |
573 | |
630 | |
574 | RETVAL = term && term->self ? newSVterm (term) : &PL_sv_undef; |
631 | RETVAL = term && term->perl.self ? newSVterm (term) : &PL_sv_undef; |
575 | } |
632 | } |
576 | OUTPUT: |
633 | OUTPUT: |
577 | RETVAL |
634 | RETVAL |
578 | |
635 | |
579 | void |
636 | void |
… | |
… | |
648 | |
705 | |
649 | MODULE = urxvt PACKAGE = urxvt::term |
706 | MODULE = urxvt PACKAGE = urxvt::term |
650 | |
707 | |
651 | void |
708 | void |
652 | rxvt_term::destroy () |
709 | rxvt_term::destroy () |
|
|
710 | |
|
|
711 | void |
|
|
712 | rxvt_term::grab_button (int button, U32 modifiers) |
|
|
713 | CODE: |
|
|
714 | XGrabButton (THIS->display->display, button, modifiers, THIS->vt, 1, |
|
|
715 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
|
|
716 | GrabModeSync, GrabModeSync, None, None); |
|
|
717 | |
|
|
718 | bool |
|
|
719 | rxvt_term::grab (U32 eventtime, int sync = 0) |
|
|
720 | CODE: |
|
|
721 | { |
|
|
722 | int mode = sync ? GrabModeSync : GrabModeAsync; |
|
|
723 | |
|
|
724 | THIS->perl.grabtime = 0; |
|
|
725 | |
|
|
726 | if (!XGrabPointer (THIS->display->display, THIS->vt, 0, |
|
|
727 | ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, |
|
|
728 | mode, mode, None, None, eventtime)) |
|
|
729 | if (!XGrabKeyboard (THIS->display->display, THIS->vt, 0, mode, mode, eventtime)) |
|
|
730 | THIS->perl.grabtime = eventtime; |
|
|
731 | else |
|
|
732 | XUngrabPointer (THIS->display->display, eventtime); |
|
|
733 | |
|
|
734 | RETVAL = !!THIS->perl.grabtime; |
|
|
735 | } |
|
|
736 | OUTPUT: |
|
|
737 | RETVAL |
|
|
738 | |
|
|
739 | void |
|
|
740 | rxvt_term::allow_events_async (U32 eventtime = THIS->perl.grabtime) |
|
|
741 | CODE: |
|
|
742 | XAllowEvents (THIS->display->display, AsyncBoth, eventtime); |
|
|
743 | |
|
|
744 | void |
|
|
745 | rxvt_term::allow_events_sync (U32 eventtime = THIS->perl.grabtime) |
|
|
746 | CODE: |
|
|
747 | XAllowEvents (THIS->display->display, SyncBoth, eventtime); |
|
|
748 | |
|
|
749 | void |
|
|
750 | rxvt_term::allow_events_replay (U32 eventtime = THIS->perl.grabtime) |
|
|
751 | CODE: |
|
|
752 | XAllowEvents (THIS->display->display, ReplayPointer, eventtime); |
|
|
753 | XAllowEvents (THIS->display->display, ReplayKeyboard, eventtime); |
|
|
754 | |
|
|
755 | void |
|
|
756 | rxvt_term::ungrab (U32 eventtime = THIS->perl.grabtime) |
|
|
757 | CODE: |
|
|
758 | THIS->perl.grabtime = 0; |
|
|
759 | XUngrabKeyboard (THIS->display->display, eventtime); |
|
|
760 | XUngrabPointer (THIS->display->display, eventtime); |
653 | |
761 | |
654 | int |
762 | int |
655 | rxvt_term::strwidth (SV *str) |
763 | rxvt_term::strwidth (SV *str) |
656 | CODE: |
764 | CODE: |
657 | { |
765 | { |
… | |
… | |
736 | RETVAL = *(int *)((char *)THIS + ix); |
844 | RETVAL = *(int *)((char *)THIS + ix); |
737 | OUTPUT: |
845 | OUTPUT: |
738 | RETVAL |
846 | RETVAL |
739 | |
847 | |
740 | U32 |
848 | U32 |
|
|
849 | rxvt_term::parent () |
|
|
850 | CODE: |
|
|
851 | RETVAL = (U32)THIS->parent [0]; |
|
|
852 | OUTPUT: |
|
|
853 | RETVAL |
|
|
854 | |
|
|
855 | U32 |
|
|
856 | rxvt_term::vt () |
|
|
857 | CODE: |
|
|
858 | RETVAL = (U32)THIS->vt; |
|
|
859 | OUTPUT: |
|
|
860 | RETVAL |
|
|
861 | |
|
|
862 | U32 |
741 | rxvt_term::rstyle (U32 new_rstyle = THIS->rstyle) |
863 | rxvt_term::rstyle (U32 new_rstyle = THIS->rstyle) |
742 | CODE: |
864 | CODE: |
743 | { |
865 | { |
744 | RETVAL = THIS->rstyle; |
866 | RETVAL = THIS->rstyle; |
745 | THIS->rstyle = new_rstyle; |
867 | THIS->rstyle = new_rstyle; |
… | |
… | |
778 | |
900 | |
779 | if (GIMME_V != G_VOID) |
901 | if (GIMME_V != G_VOID) |
780 | { |
902 | { |
781 | wchar_t *wstr = new wchar_t [THIS->ncol]; |
903 | wchar_t *wstr = new wchar_t [THIS->ncol]; |
782 | |
904 | |
783 | for (int col = 0; col <THIS->ncol; col++) |
905 | for (int col = 0; col < THIS->ncol; col++) |
784 | wstr [col] = l.t [col]; |
906 | wstr [col] = l.t [col]; |
785 | |
907 | |
786 | XPUSHs (sv_2mortal (wcs2sv (wstr))); |
908 | XPUSHs (sv_2mortal (wcs2sv (wstr, THIS->ncol))); |
787 | |
909 | |
788 | delete [] wstr; |
910 | delete [] wstr; |
789 | } |
911 | } |
790 | |
912 | |
791 | if (new_text) |
913 | if (new_text) |
… | |
… | |
881 | } |
1003 | } |
882 | OUTPUT: |
1004 | OUTPUT: |
883 | RETVAL |
1005 | RETVAL |
884 | |
1006 | |
885 | SV * |
1007 | SV * |
886 | rxvt_term::special_encode (SV *str) |
1008 | rxvt_term::special_encode (SV *string) |
887 | CODE: |
1009 | CODE: |
888 | abort ();//TODO |
1010 | { |
|
|
1011 | wchar_t *wstr = sv2wcs (string); |
|
|
1012 | int wlen = wcslen (wstr); |
|
|
1013 | wchar_t *rstr = new wchar_t [wlen]; // cannot become longer |
|
|
1014 | |
|
|
1015 | rxvt_push_locale (THIS->locale); |
|
|
1016 | |
|
|
1017 | wchar_t *r = rstr; |
|
|
1018 | for (wchar_t *s = wstr; *s; s++) |
|
|
1019 | if (wcwidth (*s) == 0) |
|
|
1020 | { |
|
|
1021 | if (r == rstr) |
|
|
1022 | croak ("leading combining character unencodable"); |
|
|
1023 | |
|
|
1024 | unicode_t n = rxvt_compose (r[-1], *s); |
|
|
1025 | if (n == NOCHAR) |
|
|
1026 | n = rxvt_composite.compose (r[-1], *s); |
|
|
1027 | |
|
|
1028 | r[-1] = n; |
|
|
1029 | } |
|
|
1030 | #if !UNICODE_3 |
|
|
1031 | else if (*s >= 0x10000) |
|
|
1032 | *r++ = rxvt_composite.compose (*s); |
|
|
1033 | #endif |
|
|
1034 | else |
|
|
1035 | *r++ = *s; |
|
|
1036 | |
|
|
1037 | rxvt_pop_locale (); |
|
|
1038 | |
|
|
1039 | RETVAL = wcs2sv (rstr, r - rstr); |
|
|
1040 | |
|
|
1041 | delete [] rstr; |
|
|
1042 | } |
|
|
1043 | OUTPUT: |
|
|
1044 | RETVAL |
889 | |
1045 | |
890 | SV * |
1046 | SV * |
891 | rxvt_term::special_decode (SV *str) |
1047 | rxvt_term::special_decode (SV *text) |
892 | CODE: |
1048 | CODE: |
893 | abort ();//TODO |
1049 | { |
|
|
1050 | wchar_t *wstr = sv2wcs (text); |
|
|
1051 | int wlen = wcslen (wstr); |
|
|
1052 | int dlen = 0; |
|
|
1053 | |
|
|
1054 | // find length |
|
|
1055 | for (wchar_t *s = wstr; *s; s++) |
|
|
1056 | if (*s == NOCHAR) |
|
|
1057 | ; |
|
|
1058 | else if (IS_COMPOSE (*s)) |
|
|
1059 | dlen += rxvt_composite.expand (*s, 0); |
|
|
1060 | else |
|
|
1061 | dlen++; |
|
|
1062 | |
|
|
1063 | wchar_t *rstr = new wchar_t [dlen]; |
|
|
1064 | |
|
|
1065 | // decode |
|
|
1066 | wchar_t *r = rstr; |
|
|
1067 | for (wchar_t *s = wstr; *s; s++) |
|
|
1068 | if (*s == NOCHAR) |
|
|
1069 | ; |
|
|
1070 | else if (IS_COMPOSE (*s)) |
|
|
1071 | r += rxvt_composite.expand (*s, r); |
|
|
1072 | else |
|
|
1073 | *r++ = *s; |
|
|
1074 | |
|
|
1075 | RETVAL = wcs2sv (rstr, r - rstr); |
|
|
1076 | |
|
|
1077 | delete [] rstr; |
|
|
1078 | } |
|
|
1079 | OUTPUT: |
|
|
1080 | RETVAL |
894 | |
1081 | |
895 | void |
1082 | void |
896 | rxvt_term::_resource (char *name, int index, SV *newval = 0) |
1083 | rxvt_term::_resource (char *name, int index, SV *newval = 0) |
897 | PPCODE: |
1084 | PPCODE: |
898 | { |
1085 | { |
… | |
… | |
963 | THIS->want_refresh = 1; |
1150 | THIS->want_refresh = 1; |
964 | } |
1151 | } |
965 | } |
1152 | } |
966 | |
1153 | |
967 | int |
1154 | int |
968 | rxvt_term::selection_grab (int eventtime = CurrentTime) |
1155 | rxvt_term::selection_grab (U32 eventtime) |
969 | |
1156 | |
970 | void |
1157 | void |
971 | rxvt_term::selection (SV *newtext = 0) |
1158 | rxvt_term::selection (SV *newtext = 0) |
972 | PPCODE: |
1159 | PPCODE: |
973 | { |
1160 | { |
… | |
… | |
986 | void |
1173 | void |
987 | rxvt_term::scr_add_lines (SV *string) |
1174 | rxvt_term::scr_add_lines (SV *string) |
988 | CODE: |
1175 | CODE: |
989 | { |
1176 | { |
990 | wchar_t *wstr = sv2wcs (string); |
1177 | wchar_t *wstr = sv2wcs (string); |
991 | int wlen = wcslen (wstr); |
|
|
992 | unicode_t *ustr = new unicode_t [wlen]; |
|
|
993 | int nlines = 0; |
|
|
994 | |
|
|
995 | for (int i = wlen; i--; ) |
|
|
996 | { |
|
|
997 | ustr [i] = wstr [i]; |
|
|
998 | nlines += ustr [i] == '\012'; |
|
|
999 | } |
|
|
1000 | |
|
|
1001 | THIS->scr_add_lines (ustr, nlines, wlen); |
1178 | THIS->scr_add_lines (wstr, wcslen (wstr)); |
1002 | |
|
|
1003 | free (wstr); |
1179 | free (wstr); |
1004 | delete [] ustr; |
|
|
1005 | } |
1180 | } |
1006 | |
1181 | |
1007 | void |
1182 | void |
1008 | rxvt_term::tt_write (SV *octets) |
1183 | rxvt_term::tt_write (SV *octets) |
1009 | INIT: |
1184 | INIT: |
… | |
… | |
1023 | char *old_cmdbuf_endp = THIS->cmdbuf_endp; |
1198 | char *old_cmdbuf_endp = THIS->cmdbuf_endp; |
1024 | |
1199 | |
1025 | THIS->cmdbuf_ptr = str; |
1200 | THIS->cmdbuf_ptr = str; |
1026 | THIS->cmdbuf_endp = str + len; |
1201 | THIS->cmdbuf_endp = str + len; |
1027 | |
1202 | |
|
|
1203 | rxvt_push_locale (THIS->locale); |
1028 | THIS->cmd_parse (); |
1204 | THIS->cmd_parse (); |
|
|
1205 | rxvt_pop_locale (); |
1029 | |
1206 | |
1030 | THIS->cmdbuf_ptr = old_cmdbuf_ptr; |
1207 | THIS->cmdbuf_ptr = old_cmdbuf_ptr; |
1031 | THIS->cmdbuf_endp = old_cmdbuf_endp; |
1208 | THIS->cmdbuf_endp = old_cmdbuf_endp; |
1032 | } |
1209 | } |
1033 | |
1210 | |