X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Ftest.priv.h;h=4f472d33a4b90773843597b40f65bea053b74024;hb=eb312e0bb90463a33aa8a53f825b32dc189af023;hp=edba4ec3ea9ee4c3d25b1001c01d221132791579;hpb=027ae42953e3186daed8f3882da73de48291b606;p=ncurses.git diff --git a/test/test.priv.h b/test/test.priv.h index edba4ec3..4f472d33 100644 --- a/test/test.priv.h +++ b/test/test.priv.h @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. * + * Copyright (c) 1998-2006,2007 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.63 2006/07/15 18:27:24 tom Exp $ */ +/* $Id: test.priv.h,v 1.68 2007/06/30 17:53:09 tom Exp $ */ #ifndef __TEST_PRIV_H #define __TEST_PRIV_H 1 @@ -309,7 +309,7 @@ extern int optind; #ifndef HAVE_TYPE_ATTR_T #if !USE_WIDEC_SUPPORT -#define attr_t long +#define attr_t chtype #endif #endif @@ -320,6 +320,10 @@ extern int optind; #define NCURSES_CH_T cchar_t #endif +#ifndef NCURSES_OPAQUE +#define NCURSES_OPAQUE 0 +#endif + #ifndef CCHARW_MAX #define CCHARW_MAX 5 #endif @@ -404,6 +408,10 @@ extern int optind; #if defined(NCURSES_VERSION) && HAVE_NC_ALLOC_H #include +#if HAVE_NC_FREEALL && defined(USE_TINFO) +#undef ExitProgram +#define ExitProgram(code) _nc_free_tinfo(code) +#endif #else #define typeMalloc(type,n) (type *) malloc((n) * sizeof(type)) #define typeRealloc(type,n,p) (type *) realloc(p, (n) * sizeof(type))