summaryrefslogtreecommitdiffstats
path: root/lib/libmytinfo/config.h
blob: 87afa0508e56aee877db25100da2ff6d5aa28f40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 * config.h
 *
 * By Ross Ridge
 * Public Domain
 * 92/02/19 18:56:28
 *
 * @(#) mytinfo config.h 3.3 92/02/19 public domain, By Ross Ridge
 *
 * Read the file INSTALL for more information on configuring mytinfo
 *
 */

#ifndef _CONFIG_H_
#define _CONFIG_H_

#ifdef __STDC__
#define USE_ANSIC		/* undefine this if your compiler lies */
#endif

#define USE_TERMIOS             /* use POSIX termios */
#undef  USE_TERMIO              /* use termio (SysIII, SysV) */
#undef USE_SGTTY		/* use sgtty (v7, BSD) */
#define USE_WINSZ		/* get window size from the tty driver */
#undef USE_STRINGS		/* include <strings.h> instead of <string.h> */
#undef  USE_MYBSEARCH           /* your library doesn't have bsearch */
#undef  USE_MYSTRTOK            /* your library doesn't have strtok */
#undef  USE_MYQSORT             /* your library doesn't have qsort */
#undef  USE_MYMKDIR             /* your library doesn't have mkdir */
#define USE_MEMORY		/* you have an <memory.h> header */
#undef  USE_FAKE_STDIO          /* don't use real stdio */
#undef USE_DOPRNT		/* no vfprintf, use _doprnt */
#undef USE_TERMINFO             /* look in terminfo dirs for entry */
#define USE_TERMCAP             /* look in termcap dirs for entry */

#undef  USE_SHORT_BSEARCH       /* speeds up MYBSEARCH on most machines */

#undef  USE_SMALLMEM            /* save some memory */

#undef USE_UPBC_KLUDGE		/* do tgoto like real togo */
#undef USE_EXTERN_UPBC		/* get cuu1 and cub1 from externs UP and BC */
#undef USE_LITOUT_KLUDGE	/* an alternate tgoto kludge, not recommened */


#ifndef USE_ANSIC

#undef USE_PROTOTYPES		/* use ANSI C prototypes */
#undef USE_STDLIB		/* you have a <stdlib.h> */
#undef USE_STDARG		/* you have a <stdarg.h> */
#undef USE_STDDEF		/* you have a <stddef.h> */

#define const
#define volatile
#define noreturn		/* a function that doesn't return */

typedef char *anyptr;		/* a type that any pointer can be assigned to */

#define mysize_t unsigned	/* size_t, the size of an object */

#else /* USE_ANSIC */

#define USE_PROTOTYPES
#define USE_STDLIB
#define USE_STDARG
#define USE_STDDEF

typedef void *anyptr;

#define mysize_t size_t

#ifdef __GNUC__
#define noreturn volatile
#else
#define noreturn
#endif

#endif /* USE_ANSIC */

#ifdef __FreeBSD__
#define TERMCAPFILE "$TERMCAPFILE $HOME/.termcap /usr/share/misc/termcap"
#else
#define TERMCAPFILE "$TERMCAPFILE $HOME/.termcap /etc/termcap"
#endif

#define TERMINFOSRC "/usr/lib/terminfo/terminfo.src"

#define TERMINFODIR "/usr/lib/terminfo"

#endif
OpenPOWER on IntegriCloud