X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fterm.priv.h;h=03669cb4bf7792a4f4bf7bbe5784ae43bb4fe54f;hp=f31e9f587bc106ba6672eb3ad5d8ec3bd958584b;hb=461e72d1826483cb2c2cb243412f2dc5b00b2b1a;hpb=493e2f7b3fc309879f561a094fdfc15e5304b3d6 diff --git a/ncurses/term.priv.h b/ncurses/term.priv.h index f31e9f58..03669cb4 100644 --- a/ncurses/term.priv.h +++ b/ncurses/term.priv.h @@ -27,7 +27,7 @@ ****************************************************************************/ /* - * $Id: term.priv.h,v 1.4 2021/08/19 20:02:09 tom Exp $ + * $Id: term.priv.h,v 1.7 2021/11/20 23:33:33 tom Exp $ * * term.priv.h * @@ -55,6 +55,12 @@ extern "C" { #include /* time_t */ #include /* time_t */ +#ifdef USE_PTHREADS +#if USE_REENTRANT +#include +#endif +#endif + /* * State of tparm(). */ @@ -102,11 +108,6 @@ typedef struct { /* * Internals for term.h */ - -#if NCURSES_EXT_COLORS -typedef struct termtype2 TERMTYPE2; -#endif - typedef struct term { /* describe an actual terminal */ TERMTYPE type; /* terminal type description */ short Filedes; /* file description being written to */ @@ -118,6 +119,7 @@ typedef struct term { /* describe an actual terminal */ #if NCURSES_EXT_COLORS TERMTYPE2 type2; /* extended terminal type description */ #endif +#undef TERMINAL } TERMINAL; /* @@ -183,6 +185,7 @@ typedef struct { TGETENT_CACHE tgetent_cache[TGETENT_MAX]; int tgetent_index; long tgetent_sequence; + int terminal_count; char * dbd_blob; /* string-heap for dbd_list[] */ char ** dbd_list; /* distinct places to look for data */ @@ -321,6 +324,8 @@ typedef struct { extern NCURSES_EXPORT_VAR(NCURSES_PRESCREEN) _nc_prescreen; +extern NCURSES_EXPORT(void) _nc_free_tparm(TERMINAL*); + #ifdef __cplusplus } #endif