]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/term.priv.h
ncurses 6.3 - patch 20211120
[ncurses.git] / ncurses / term.priv.h
index f31e9f587bc106ba6672eb3ad5d8ec3bd958584b..03669cb4bf7792a4f4bf7bbe5784ae43bb4fe54f 100644 (file)
@@ -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.h>              /* time_t */
 #include <term.h>              /* time_t */
 
+#ifdef USE_PTHREADS
+#if USE_REENTRANT
+#include <pthread.h>
+#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