Back to index

tetex-bin  3.0
Functions
lib_delwin.c File Reference
#include <curses.priv.h>

Go to the source code of this file.

Functions

static bool cannot_delete (WINDOW *win)
 delwin (WINDOW *win)

Function Documentation

static bool cannot_delete ( WINDOW win) [static]

Definition at line 46 of file lib_delwin.c.

{
    WINDOWLIST *p;
    bool result = TRUE;

    for (p = _nc_windows; p != 0; p = p->next) {
       if (&(p->win) == win) {
           result = FALSE;
       } else if ((p->win._flags & _SUBWIN) != 0
                 && p->win._parent == win) {
           result = TRUE;
           break;
       }
    }
    return result;
}

Here is the caller graph for this function:

delwin ( WINDOW win)

Definition at line 64 of file lib_delwin.c.

{
    T((T_CALLED("delwin(%p)"), win));

    if (win == 0
       || cannot_delete(win))
       returnCode(ERR);

    if (win->_flags & _SUBWIN)
       touchwin(win->_parent);
    else if (curscr != 0)
       touchwin(curscr);

    returnCode(_nc_freewin(win));
}

Here is the call graph for this function:

Here is the caller graph for this function: