]> ncurses.scripts.mit.edu Git - ncurses.git/blob - test/test.priv.h
ncurses 4.1
[ncurses.git] / test / test.priv.h
1 /******************************************************************************
2  * Copyright 1996 by Thomas E. Dickey <dickey@clark.net>                      *
3  * All Rights Reserved.                                                       *
4  *                                                                            *
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 $ */
21 #if HAVE_CONFIG_H
22 #include <ncurses_cfg.h>
23 #endif
24
25 #include <stdlib.h>
26 #include <sys/types.h>
27
28 #if HAVE_UNISTD_H
29 #include <unistd.h>
30 #endif
31
32 #include <curses.h>
33
34 #ifdef NCURSES_NOMACROS
35 #include <nomacros.h>
36 #endif
37
38 #if HAVE_GETOPT_H
39 #include <getopt.h>
40 #else
41 /* 'getopt()' may be prototyped in <stdlib.h>, but declaring its variables
42  * doesn't hurt.
43  */
44 extern char *optarg;
45 extern int optind;
46 #endif /* HAVE_GETOPT_H */
47
48 #ifndef GCC_NORETURN
49 #define GCC_NORETURN /* nothing */
50 #endif
51 #ifndef GCC_UNUSED
52 #define GCC_UNUSED /* nothing */
53 #endif
54
55 #if defined(NCURSES_VERSION) && HAVE_NC_ALLOC_H
56 #include <nc_alloc.h>
57 #endif
58
59 #ifndef ExitProgram
60 #define ExitProgram(code) return code
61 #endif
62
63 #ifndef EXIT_SUCCESS
64 #define EXIT_SUCCESS 0
65 #endif
66 #ifndef EXIT_FAILURE
67 #define EXIT_FAILURE 1
68 #endif
69
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
72  * that XSI shows.
73  */
74 #ifndef NCURSES_CONST
75 #define NCURSES_CONST /* nothing */
76 #endif