Changeset 818f19c for perlglue.xs


Ignore:
Timestamp:
Sep 18, 2010, 5:07:39 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
1d74663
Parents:
005eae5
git-author:
David Benjamin <davidben@mit.edu> (08/07/10 15:55:04)
git-committer:
David Benjamin <davidben@mit.edu> (09/18/10 17:07:39)
Message:
Rename owl_global_get_typwin to owl_global_current_typwin

The new name is more explicitly the currently active typwin.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlglue.xs

    r9186c75 r818f19c  
    554554                owl_editwin *e;
    555555        CODE:
    556                 e = owl_global_get_typwin(&g);
     556                e = owl_global_current_typwin(&g);
    557557                if (e) {
    558558                        RETVAL = owl_editwin_replace(e, count, string);
     
    569569                owl_editwin *e;
    570570        CODE:
    571                 e = owl_global_get_typwin(&g);
     571                e = owl_global_current_typwin(&g);
    572572                if (e) {
    573573                        RETVAL = owl_editwin_point_move(e, delta);
     
    584584                owl_editwin *e;
    585585        CODE:
    586                 e = owl_global_get_typwin(&g);
     586                e = owl_global_current_typwin(&g);
    587587                if (e) {
    588588                        RETVAL = owl_editwin_replace_region(e, string);
     
    599599                owl_editwin *e;
    600600        CODE:
    601                 e = owl_global_get_typwin(&g);
     601                e = owl_global_current_typwin(&g);
    602602                if (e) {
    603                         region = owl_editwin_get_region(owl_global_get_typwin(&g));
     603                        region = owl_editwin_get_region(owl_global_current_typwin(&g));
    604604                } else {
    605605                        region = NULL;
     
    621621        CODE:
    622622        {
    623                 e = owl_global_get_typwin(&g);
     623                e = owl_global_current_typwin(&g);
    624624                if(!e)
    625625                        croak("The edit window is not currently active!");
    626626
    627                 x = owl_editwin_begin_excursion(owl_global_get_typwin(&g));
     627                x = owl_editwin_begin_excursion(owl_global_current_typwin(&g));
    628628                PUSHMARK(SP);
    629629                count = call_sv(sub, G_SCALAR|G_EVAL|G_NOARGS);
    630630                SPAGAIN;
    631                 owl_editwin_end_excursion(owl_global_get_typwin(&g), x);
     631                owl_editwin_end_excursion(owl_global_current_typwin(&g), x);
    632632
    633633                if(SvTRUE(ERRSV)) {
     
    649649                owl_editwin *e;
    650650        CODE:
    651                 e = owl_global_get_typwin(&g);
     651                e = owl_global_current_typwin(&g);
    652652                if (e) {
    653653                        RETVAL = owl_editwin_current_column(e);
     
    663663                owl_editwin *e;
    664664        CODE:
    665                 e = owl_global_get_typwin(&g);
     665                e = owl_global_current_typwin(&g);
    666666                if (e) {
    667667                        RETVAL = owl_editwin_get_point(e);
     
    677677                owl_editwin *e;
    678678        CODE:
    679                 e = owl_global_get_typwin(&g);
     679                e = owl_global_current_typwin(&g);
    680680                if (e) {
    681681                        RETVAL = owl_editwin_get_mark(e);
Note: See TracChangeset for help on using the changeset viewer.