Changeset 9c01a5e


Ignore:
Timestamp:
Aug 15, 2009, 7:08:20 PM (15 years ago)
Author:
Anders Kaseorg <andersk@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:
3eb599d
Parents:
eaa9053
git-author:
Anders Kaseorg <andersk@mit.edu> (07/22/09 03:34:57)
git-committer:
Anders Kaseorg <andersk@mit.edu> (08/15/09 19:08:20)
Message:
Add const qualifiers for owl_popwin *.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • keys.c

    rd43edd2 r9c01a5e  
    344344void owl_keys_popless_postalways(owl_input j) {
    345345  owl_viewwin *v = owl_global_get_viewwin(&g);
    346   owl_popwin *pw = owl_global_get_popwin(&g);
     346  const owl_popwin *pw = owl_global_get_popwin(&g);
    347347
    348348  if (pw && owl_popwin_is_active(pw) && v) {
  • popwin.c

    rd43edd2 r9c01a5e  
    6666}
    6767
    68 int owl_popwin_is_active(owl_popwin *pw)
     68int owl_popwin_is_active(const owl_popwin *pw)
    6969{
    7070  if (pw->active==1) return(1);
     
    7373
    7474/* this will refresh the border as well as the text area */
    75 int owl_popwin_refresh(owl_popwin *pw)
     75int owl_popwin_refresh(const owl_popwin *pw)
    7676{
    7777  touchwin(pw->borderwin);
     
    8484}
    8585
    86 WINDOW *owl_popwin_get_curswin(owl_popwin *pw)
     86WINDOW *owl_popwin_get_curswin(const owl_popwin *pw)
    8787{
    8888  return(pw->popwin);
    8989}
    9090
    91 int owl_popwin_get_lines(owl_popwin *pw)
     91int owl_popwin_get_lines(const owl_popwin *pw)
    9292{
    9393  return(pw->lines-2);
    9494}
    9595
    96 int owl_popwin_get_cols(owl_popwin *pw)
     96int owl_popwin_get_cols(const owl_popwin *pw)
    9797{
    9898  return(pw->cols-2);
    9999}
    100100
    101 int owl_popwin_needs_first_refresh(owl_popwin *pw)
     101int owl_popwin_needs_first_refresh(const owl_popwin *pw)
    102102{
    103103  if (pw->needsfirstrefresh) return(1);
Note: See TracChangeset for help on using the changeset viewer.