Changeset b31f1c9 for window.c


Ignore:
Timestamp:
Nov 26, 2010, 4:04:03 AM (14 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
7aa1fa5
Parents:
1dd285b
git-author:
Anders Kaseorg <andersk@mit.edu> (11/06/10 18:40:11)
git-committer:
Anders Kaseorg <andersk@mit.edu> (11/26/10 04:04:03)
Message:
Move declarations before code

I don’t know if we still care about this, but we had few enough
violations that we might as well fix them.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    r6ad7bed rb31f1c9  
    297297void owl_window_show_all(owl_window *w)
    298298{
     299  FuncOneArg ptr = (FuncOneArg)owl_window_show;
    299300  owl_window_show(w);
    300   FuncOneArg ptr = (FuncOneArg)owl_window_show;
    301301  owl_window_children_foreach(w, first_arg_only, &ptr);
    302302}
     
    348348static void _owl_window_realize(owl_window *w)
    349349{
     350  FuncOneArg ptr = (FuncOneArg)_owl_window_realize_later;
    350351  /* check if we can create a window */
    351352  if (owl_window_is_realized(w) || !_owl_window_should_realize(w))
     
    359360  owl_window_dirty(w);
    360361  /* map the children */
    361   FuncOneArg ptr = (FuncOneArg)_owl_window_realize_later;
    362362  owl_window_children_foreach(w, first_arg_only, &ptr);
    363363}
     
    365365static void _owl_window_unrealize(owl_window *w)
    366366{
     367  FuncOneArg ptr = (FuncOneArg)_owl_window_unrealize;
    367368  if (w->win == NULL)
    368369    return;
    369370  /* unmap all the children */
    370   FuncOneArg ptr = (FuncOneArg)_owl_window_unrealize;
    371371  owl_window_children_foreach(w, first_arg_only, &ptr);
    372372  _owl_window_destroy_curses(w);
     
    445445static void _owl_window_redraw_subtree(owl_window *w)
    446446{
     447  FuncOneArg ptr = (FuncOneArg)_owl_window_redraw_subtree;
    447448  if (!w->dirty_subtree)
    448449    return;
    449450  _owl_window_redraw(w);
    450   FuncOneArg ptr = (FuncOneArg)_owl_window_redraw_subtree;
    451451  owl_window_children_foreach(w, first_arg_only, &ptr);
    452452  w->dirty_subtree = 0;
Note: See TracChangeset for help on using the changeset viewer.