support -Wwrite-strings and some other cleanup
[mplib] / src / texk / kpathsea / types.h
1 /* types.h: general types.
2
3    Copyright (C) 1993, 1995, 96, 2005 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
16    License along with this library; if not, write to the Free Software
17    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
19 */
20
21 #ifndef KPATHSEA_TYPES_H
22 #define KPATHSEA_TYPES_H
23
24 /* Booleans.  */
25 /* NeXT wants to define their own boolean type.  */
26 #ifndef HAVE_BOOLEAN
27 #define HAVE_BOOLEAN
28 typedef int boolean;
29 /* `true' and `false' are reserved words in C++.  */
30 #ifndef __cplusplus
31 #ifndef true
32 #define true 1
33 #define false 0
34 #endif /* not true */
35 #endif /* not __cplusplus */
36 #endif /* not HAVE_BOOLEAN */
37
38 /* The X library (among other things) defines `FALSE' and `TRUE', and so
39    we only want to define them if necessary, for use by application code.  */
40 #ifndef FALSE
41 #define FALSE false
42 #define TRUE true
43 #endif /* FALSE */
44
45 /* The usual null-terminated string.  */
46 typedef char *string;
47
48 /* A pointer to constant data.  (ANSI says `const string' is
49    `char * const', which is a constant pointer to non-constant data.)  */
50 typedef const char *const_string;
51
52 /* A generic pointer.  */
53 typedef void *address;
54
55 #endif /* not KPATHSEA_TYPES_H */