X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Ftest.priv.h;h=f4c11aa5506791777c71c8c1fdc84c5f29a030db;hp=c2b4bd4695cbee29d83bdc5706bea3210b47e809;hb=7d6371e47006c8aef4ac94f52998a35b03bf89cf;hpb=7fa7badf32c514211478cf9f79c70f20d435c2f2 diff --git a/test/test.priv.h b/test/test.priv.h index c2b4bd46..f4c11aa5 100644 --- a/test/test.priv.h +++ b/test/test.priv.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2016,2017 Free Software Foundation, Inc. * + * Copyright (c) 1998-2017,2018 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 * @@ -29,7 +29,7 @@ /**************************************************************************** * Author: Thomas E. Dickey 1996-on * ****************************************************************************/ -/* $Id: test.priv.h,v 1.160 2017/10/12 01:00:59 tom Exp $ */ +/* $Id: test.priv.h,v 1.169 2018/08/19 00:28:27 tom Exp $ */ #ifndef __TEST_PRIV_H #define __TEST_PRIV_H 1 @@ -206,6 +206,10 @@ #define HAVE_PUTWIN 0 #endif +#ifndef HAVE_RESET_COLOR_PAIRS +#define HAVE_RESET_COLOR_PAIRS 0 +#endif + #ifndef HAVE_RESIZE_TERM #define HAVE_RESIZE_TERM 0 #endif @@ -438,6 +442,9 @@ extern int optind; #ifndef GCC_PRINTFLIKE #define GCC_PRINTFLIKE(a,b) /* nothing */ #endif +#ifndef GCC_SCANFLIKE +#define GCC_SCANFLIKE(a,b) /* nothing */ +#endif #ifndef GCC_UNUSED #define GCC_UNUSED /* nothing */ #endif @@ -607,9 +614,17 @@ extern int optind; #ifndef WA_NORMAL #define WA_NORMAL A_NORMAL +#endif +#ifndef WA_BOLD #define WA_BOLD A_BOLD +#endif +#ifndef WA_REVERSE #define WA_REVERSE A_REVERSE +#endif +#ifndef WA_UNDERLINE #define WA_UNDERLINE A_UNDERLINE +#endif +#ifndef WA_BLINK #define WA_BLINK A_BLINK #endif @@ -850,7 +865,7 @@ extern char *strnames[], *strcodes[], *strfnames[]; #define EXIT_FAILURE 1 #endif -#if defined(__MINGW32__) || defined(USE_WIN32CON_DRIVER) +#if defined(_WIN32) || defined(USE_WIN32CON_DRIVER) #if defined(PDCURSES) #ifdef WINVER @@ -887,8 +902,12 @@ extern char *strnames[], *strcodes[], *strfnames[]; * that XSI shows. */ #ifndef NCURSES_CONST +#ifdef PDCURSES +#define NCURSES_CONST const /* close enough */ +#else #define NCURSES_CONST /* nothing */ #endif +#endif /* out-of-band values for representing absent capabilities */ #define ABSENT_BOOLEAN ((signed char)-1) /* 255 */ @@ -974,7 +993,7 @@ extern char *tgoto(char *, int, int); /* available, but not prototyped */ /* * ncurses uses const in some places where X/Open does (or did) not allow. */ -#ifdef NCURSES_VERSION +#if defined(NCURSES_VERSION) || defined(PDCURSES) #define CONST_MENUS const #else #define CONST_MENUS /* nothing */ @@ -986,10 +1005,12 @@ extern char *tgoto(char *, int, int); /* available, but not prototyped */ #if HAVE_USE_WINDOW #define USING_WINDOW(w,func) use_window(w, (NCURSES_WINDOW_CB) func, w) +#define USING_WINDOW1(w,func,safe) use_window(w, (NCURSES_WINDOW_CB) safe, NULL) #define USING_WINDOW2(w,func,data) use_window(w, (NCURSES_WINDOW_CB) func, data) #define WANT_USE_WINDOW() extern void _nc_want_use_window(void) #else -#define USING_WINDOW(w,func) func(w) +#define USING_WINDOW(w,func) func(w, NULL) +#define USING_WINDOW1(w,func,safe) func(w) #define USING_WINDOW2(w,func,data) func(w,data) #define WANT_USE_WINDOW() extern void _nc_want_use_window(void) #endif