Changeset a556caa for perlconfig.c


Ignore:
Timestamp:
Jul 11, 2009, 1:14:24 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
bd1a1ae
Parents:
a45786e
git-author:
Karl Ramm <kcr@1ts.org> (07/07/09 23:03:19)
git-committer:
Nelson Elhage <nelhage@mit.edu> (07/11/09 13:14:24)
Message:
Mostly refactor the editwin to use a linear buffer position.

Use a linear buffer positino to keep track of the point, rather than
(x, y).

In addition, make the editwin structure private to editwin.c. (No
abstraction violation for you!)

Add some abstractions for pointer movement, and use them in some places.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • perlconfig.c

    rd1ae4a4 ra556caa  
    482482void owl_perlconfig_edit_callback(owl_editwin *e)
    483483{
    484   SV *cb = (SV*)(e->cbdata);
     484  SV *cb = (SV*)owl_editwin_get_cbdata(e);
    485485  SV *text;
    486486  dSP;
     
    509509
    510510  SvREFCNT_dec(cb);
    511   e->cbdata = NULL;
     511  owl_editwin_set_cbdata(e, NULL);
    512512}
    513513
Note: See TracChangeset for help on using the changeset viewer.