dvitomp fix from Akira
[mplib] / src / texk / kpathsea / types.h
1 /* types.h: general types for kpathsea.
2
3    Copyright 1993, 1995, 1996, 2005, 2008 Karl Berry.
4
5    This library is free software; you can redistribute it and/or
6    modify it under the terms of the GNU Lesser General Public
7    License as published by the Free Software Foundation; either
8    version 2.1 of the License, or (at your option) any later version.
9
10    This library is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    Lesser General Public License for more details.
14
15    You should have received a copy of the GNU Lesser General Public License
16    along with this library; if not, see <http://www.gnu.org/licenses/>.  */
17
18 #ifndef KPATHSEA_TYPES_H
19 #define KPATHSEA_TYPES_H
20
21 /* Booleans.  */
22 /* NeXT wants to define their own boolean type.  */
23 #ifndef HAVE_BOOLEAN
24 #define HAVE_BOOLEAN
25 typedef int boolean;
26 /* `true' and `false' are reserved words in C++.  */
27 #ifndef __cplusplus
28 #ifndef true
29 #define true 1
30 #define false 0
31 #endif /* not true */
32 #endif /* not __cplusplus */
33 #endif /* not HAVE_BOOLEAN */
34
35 /* The X library (among other things) defines `FALSE' and `TRUE', and so
36    we only want to define them if necessary, for use by application code.  */
37 #ifndef FALSE
38 #define FALSE false
39 #define TRUE true
40 #endif /* FALSE */
41
42 /* The usual null-terminated string.  */
43 typedef char *string;
44
45 /* A pointer to constant data.  (ANSI says `const string' is
46    `char * const', which is a constant pointer to non-constant data.)  */
47 typedef const char *const_string;
48
49 /* A generic pointer.  */
50 typedef void *address;
51
52 #endif /* not KPATHSEA_TYPES_H */