Changeset cf83b7a for editwin.c


Ignore:
Timestamp:
Jun 30, 2003, 6:12:40 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
453bd70
Parents:
c9334b1
Message:
Started adding code to do question/response stuff
File:
1 edited

Legend:

Unmodified
Added
Removed
  • editwin.c

    rc9334b1 rcf83b7a  
    99#define INCR 5000
    1010
     11/* initialize the editwin e.
     12 * 'win' is an already initialzed curses window that will be used by editwin
     13 */
    1114void owl_editwin_init(owl_editwin *e, WINDOW *win, int winlines, int wincols, int style, owl_history *hist)
    1215{
    13   /* initialize the editwin e.
    14    * 'win' is an already initialzed curses window that will be used by editwin
    15    */
    1616  e->buff=owl_malloc(INCR); 
    1717  e->buff[0]='\0';
     
    2424  e->winlines=winlines;
    2525  e->wincols=wincols;
    26   e->fillcol=owl_editwin_limit_maxcols(wincols-1,
    27                                        owl_global_get_edit_maxfillcols(&g));
    28   e->wrapcol=owl_editwin_limit_maxcols(wincols-1,
    29                                        owl_global_get_edit_maxwrapcols(&g));
     26  e->fillcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxfillcols(&g));
     27  e->wrapcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxwrapcols(&g));
    3028  e->curswin=win;
    3129  e->style=style;
     
    4543  e->winlines=winlines;
    4644  e->wincols=wincols;
    47   e->fillcol=owl_editwin_limit_maxcols(wincols-1,
    48                                        owl_global_get_edit_maxfillcols(&g));
    49   e->wrapcol=owl_editwin_limit_maxcols(wincols-1,
    50                                        owl_global_get_edit_maxwrapcols(&g));
     45  e->fillcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxfillcols(&g));
     46  e->wrapcol=owl_editwin_limit_maxcols(wincols-1, owl_global_get_edit_maxwrapcols(&g));
    5147}
    5248
     
    205201 
    206202  char *ptr1, *ptr2, *ptr3, *buff;
    207   int i, j;
     203  int i;
    208204
    209205  werase(e->curswin);
     
    855851}
    856852
    857 /* returns if only whitespace remains */
     853/* returns true if only whitespace remains */
    858854int owl_editwin_is_at_end(owl_editwin *e)
    859855{
Note: See TracChangeset for help on using the changeset viewer.