1 /******************************************************************************
2 * Copyright 1996 by Thomas E. Dickey <dickey@clark.net> *
3 * All Rights Reserved. *
5 * Permission to use, copy, modify, and distribute this software and its *
6 * documentation for any purpose and without fee is hereby granted, provided *
7 * that the above copyright notice appear in all copies and that both that *
8 * copyright notice and this permission notice appear in supporting *
9 * documentation, and that the name of the above listed copyright holder(s) *
10 * not be used in advertising or publicity pertaining to distribution of the *
11 * software without specific, written prior permission. THE ABOVE LISTED *
12 * COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, *
13 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO *
14 * EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY *
15 * SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER *
16 * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF *
17 * CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN *
18 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *
19 ******************************************************************************/
20 /* $Id: test.priv.h,v 1.13 1997/04/06 01:44:04 tom Exp $ */
22 #include <ncurses_cfg.h>
26 #include <sys/types.h>
34 #ifdef NCURSES_NOMACROS
41 /* 'getopt()' may be prototyped in <stdlib.h>, but declaring its variables
46 #endif /* HAVE_GETOPT_H */
49 #define GCC_NORETURN /* nothing */
52 #define GCC_UNUSED /* nothing */
55 #if defined(NCURSES_VERSION) && HAVE_NC_ALLOC_H
60 #define ExitProgram(code) return code
64 #define EXIT_SUCCESS 0
67 #define EXIT_FAILURE 1
70 /* Use this to quiet gcc's -Wwrite-strings warnings, but accommodate SVr4
71 * curses which doesn't have const parameters declared (so far) in the places
75 #define NCURSES_CONST /* nothing */