diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-03 05:17:59 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-12-03 05:17:59 +0000 |
commit | 7c742f381e7808d0b12c17b534305751f3ebb0cb (patch) | |
tree | 107e7dced85dc3de5216ee99d054dd38922d28cc /lib/libpanel/panel.priv.h | |
parent | 600477a0b0b78aeded717538f05df29039a4c6b0 (diff) |
merge of ncurses-4.1-971129
Diffstat (limited to 'lib/libpanel/panel.priv.h')
-rw-r--r-- | lib/libpanel/panel.priv.h | 61 |
1 files changed, 48 insertions, 13 deletions
diff --git a/lib/libpanel/panel.priv.h b/lib/libpanel/panel.priv.h index 1d12e1822c1..e2365b2f702 100644 --- a/lib/libpanel/panel.priv.h +++ b/lib/libpanel/panel.priv.h @@ -1,4 +1,6 @@ -/* $Id: panel.priv.h,v 1.1 1997/11/26 03:56:06 millert Exp $ */ +/* $OpenBSD: panel.priv.h,v 1.2 1997/12/03 05:17:57 millert Exp $ */ + +/* Id: panel.priv.h,v 1.8 1997/10/21 10:19:37 juergen Exp $ */ #ifndef _PANEL_PRIV_H #define _PANEL_PRIV_H @@ -8,45 +10,78 @@ #endif #include <stdlib.h> +#include <string.h> #include <assert.h> #if HAVE_LIBDMALLOC -#include <dmalloc.h> /* Gray Watson's library */ +# include <dmalloc.h> /* Gray Watson's library */ #endif #if HAVE_LIBDBMALLOC -#include <dbmalloc.h> /* Conor Cahill's library */ +# include <dbmalloc.h> /* Conor Cahill's library */ #endif +#include <nc_panel.h> #include "panel.h" - #if ( CC_HAS_INLINE_FUNCS && !defined(TRACE) ) # define INLINE inline #else # define INLINE #endif - typedef struct panelcons { struct panelcons *above; struct panel *pan; } PANELCONS; -#ifdef TRACE -# define dBug(x) _tracef x -#else -# define dBug(x) -#endif - #ifdef USE_RCS_IDS -#define MODULE_ID(id) static const char Ident[] = id; +# define MODULE_ID(id) static const char Ident[] = id; #else -#define MODULE_ID(id) /*nothing*/ +# define MODULE_ID(id) /*nothing*/ #endif #define P_TOUCH (0) #define P_UPDATE (1) +#ifdef TRACE + extern const char *_nc_my_visbuf(const void *); +# ifdef TRACE_TXT +# define USER_PTR(ptr) _nc_visbuf((const char *)ptr) +# else +# define USER_PTR(ptr) _nc_my_visbuf((const char *)ptr) +# endif + + extern void _nc_dPanel(const char*, const PANEL*); + extern void _nc_dStack(const char*, int, const PANEL*); + extern void _nc_Wnoutrefresh(const PANEL*); + extern void _nc_Touchpan(const PANEL*); + extern void _nc_Touchline(const PANEL*, int, int); + +# define dBug(x) _tracef x +# define dPanel(text,pan) _nc_dPanel(text,pan) +# define dStack(fmt,num,pan) _nc_dStack(fmt,num,pan) +# define Wnoutrefresh(pan) _nc_Wnoutrefresh(pan) +# define Touchpan(pan) _nc_Touchpan(pan) +# define Touchline(pan,start,count) _nc_Touchline(pan,start,count) +#else /* !TRACE */ +# define dBug(x) +# define dPanel(text,pan) +# define dStack(fmt,num,pan) +# define Wnoutrefresh(pan) wnoutrefresh((pan)->win) +# define Touchpan(pan) touchwin((pan)->win) +# define Touchline(pan,start,count) touchline((pan)->win,start,count) #endif + +#define _nc_stdscr_pseudo_panel _nc_panelhook()->stdscr_pseudo_panel +#define _nc_top_panel _nc_panelhook()->top_panel +#define _nc_bottom_panel _nc_panelhook()->bottom_panel + +extern void _nc_panel_link_bottom(PANEL*); +extern bool _nc_panel_is_linked(const PANEL*); +extern void _nc_calculate_obscure(void); +extern void _nc_free_obscure(PANEL*); +extern void _nc_override(const PANEL*,int); + +#endif /* _PANEL_PRIV_H */ |