OSDN Git Service

update.
[putex/putex.git] / src / texsourc / types.h
1 /* types.h: general types.
2
3    Copyright 1992 Karl Berry
4    Copyright 2007 TeX Users Group
5    Copyright 2014 Clerk Ma
6
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License as published by
9    the Free Software Foundation; either version 2 of the License, or
10    (at your option) any later version.
11
12    This program is distributed in the hope that it will be useful, but
13    WITHOUT ANY WARRANTY; without even the implied warranty of
14    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15    General Public License for more details.
16
17    You should have received a copy of the GNU General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301 USA.  */
21
22 #ifndef TYPES_H
23 #define TYPES_H
24
25 /* Booleans.  */
26 typedef enum { false = 0, true = 1 } bool;
27
28 /* The X11 library defines `FALSE' and `TRUE', and so we only want to
29    define them if necessary.  */
30 #ifndef FALSE
31   #define FALSE false
32   #define TRUE true
33 #endif /* FALSE */
34
35 /* The usual null-terminated string.  */
36 typedef char *string;
37
38 /* A generic pointer in ANSI C.  */
39 typedef void *address;
40
41 #endif /* not TYPES_H */