X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Fprogs.priv.h;h=881c4af627b870884643e095331b3a7be67df644;hp=85d3acc6524054dde251b7715c1dc075e6d8d8a0;hb=5899b5e464ecec4b1613f6fef8cb7b75793c88e3;hpb=5e1e572b71ae31a6071daa24e2460a68a6f1003c diff --git a/progs/progs.priv.h b/progs/progs.priv.h index 85d3acc6..881c4af6 100644 --- a/progs/progs.priv.h +++ b/progs/progs.priv.h @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1998-2015,2017 Free Software Foundation, Inc. * + * Copyright 2019,2020 Thomas E. Dickey * + * Copyright 1998-2015,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -30,7 +31,7 @@ * Author: Thomas E. Dickey 1997-on * ****************************************************************************/ /* - * $Id: progs.priv.h,v 1.43 2017/04/06 23:02:26 tom Exp $ + * $Id: progs.priv.h,v 1.50 2020/07/25 22:56:33 tom Exp $ * * progs.priv.h * @@ -122,6 +123,11 @@ extern int optind; #define NCURSES_OPAQUE 0 #include + +#if !(defined(NCURSES_WGETCH_EVENTS) && defined(NEED_KEY_EVENT)) +#undef KEY_EVENT /* reduce compiler-warnings with Visual C++ */ +#endif + #include #include #include @@ -129,15 +135,24 @@ extern int optind; #include #include + #if HAVE_NC_FREEALL #undef ExitProgram #ifdef USE_LIBTINFO -#define ExitProgram(code) _nc_free_tinfo(code) +#define ExitProgram(code) exit_terminfo(code) #else #define ExitProgram(code) _nc_free_tic(code) #endif #endif +#define VtoTrace(opt) (unsigned) ((opt > 0) ? opt : (opt == 0)) + +/* error-returns for tput */ +#define ErrUsage 2 +#define ErrTermType 3 +#define ErrCapName 4 +#define ErrSystem(n) (4 + (n)) + #if defined(__GNUC__) && defined(_FORTIFY_SOURCE) #define IGNORE_RC(func) errno = (int) func #else @@ -145,6 +160,10 @@ extern int optind; #endif /* gcc workarounds */ /* usually in */ +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + #ifndef STDOUT_FILENO #define STDOUT_FILENO 1 #endif @@ -218,6 +237,7 @@ extern int optind; #if NCURSES_EXT_NUMBERS #else #define _nc_free_termtype2(t) _nc_free_termtype(t) +#define _nc_read_entry2(n,f,t) _nc_read_entry(n,f,t) #endif #endif /* PROGS_PRIV_H */