X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=include%2FMKterm.h.awk.in;h=b72136d813eac4a511bb3dbe6fd71e022b40682f;hp=b6062c8b87e25478b5a27a49c7f2adea179cefcd;hb=493e2f7b3fc309879f561a094fdfc15e5304b3d6;hpb=5a107d6f2a641ef5a33c8976fbd6cd26a3196a0d diff --git a/include/MKterm.h.awk.in b/include/MKterm.h.awk.in index b6062c8b..b72136d8 100644 --- a/include/MKterm.h.awk.in +++ b/include/MKterm.h.awk.in @@ -60,7 +60,7 @@ BEGIN { print "/* and: Thomas E. Dickey 1995-on */" print "/****************************************************************************/" print "" - print "/* $Id: MKterm.h.awk.in,v 1.79 2021/03/20 16:08:03 tom Exp $ */" + print "/* $Id: MKterm.h.awk.in,v 1.81 2021/08/18 20:52:42 tom Exp $ */" print "" print "/*" print "** term.h -- Definition of struct term" @@ -244,6 +244,9 @@ END { print " * The only reason these structures are visible is for read-only use." print " * Programs which modify the data are not, never were, portable across" print " * curses implementations." + print " *" + print " * The first field in TERMINAL is used in macros." + print " * The remaining fields are private." print " */" print "#ifdef NCURSES_INTERNALS" print "" @@ -253,19 +256,13 @@ END { print "typedef TERMTYPE TERMTYPE2;" } print "" + print "typedef struct term TERMINAL;" + print "#else" + print "" print "typedef struct term { /* describe an actual terminal */" print " TERMTYPE type; /* terminal type description */" - print " short Filedes; /* file description being written to */" - print " TTY Ottyb; /* original state of the terminal */" - print " TTY Nttyb; /* current state of the terminal */" - print " int _baudrate; /* used to compute padding */" - print " char * _termname; /* used for termname() */" - if (@NCURSES_EXT_COLORS@) { - print " TERMTYPE2 type2; /* extended terminal type description */" - } print "} TERMINAL;" - print "#else" - print "typedef struct term TERMINAL;" + print "" print "#endif /* NCURSES_INTERNALS */" print "" print ""