Changeset a556caa for owl.h


Ignore:
Timestamp:
Jul 11, 2009, 1:14:24 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, 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
  • owl.h

    rd5cc1c5d ra556caa  
    424424} owl_history;
    425425
    426 typedef struct _owl_editwin {
    427   char *buff;
    428   owl_history *hist;
    429   int bufflen;
    430   int allocated;
    431   int buffx, buffy;
    432   int topline;
    433   int winlines, wincols, fillcol, wrapcol;
    434   WINDOW *curswin;
    435   int style;
    436   int lock;
    437   int dotsend;
    438   int echochar;
    439 
    440   char *command;
    441   void (*callback)(struct _owl_editwin*);
    442   void *cbdata;
    443 } owl_editwin;
     426typedef struct _owl_editwin owl_editwin;
    444427
    445428typedef struct _owl_keybinding {
     
    556539  int config_format;
    557540  void *buffercbdata;
    558   owl_editwin tw;
     541  owl_editwin *tw;
    559542  owl_viewwin vw;
    560543  void *perl;
Note: See TracChangeset for help on using the changeset viewer.