Back to index

tetex-bin  3.0
types.h
Go to the documentation of this file.
00001 /* types.h: general types.
00002 
00003 Copyright (C) 1993, 95, 96 Free Software Foundation, Inc.
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Library General Public
00007 License as published by the Free Software Foundation; either
00008 version 2 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Library General Public License for more details.
00014 
00015 You should have received a copy of the GNU Library General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
00018 
00019 #ifndef KPATHSEA_TYPES_H
00020 #define KPATHSEA_TYPES_H
00021 
00022 /* Booleans.  */
00023 /* NeXT wants to define their own boolean type.  */
00024 #ifndef HAVE_BOOLEAN
00025 #define HAVE_BOOLEAN
00026 typedef int boolean;
00027 /* `true' and `false' are reserved words in C++.  */
00028 #ifndef __cplusplus
00029 #define true 1
00030 #define false 0
00031 #endif /* __cplusplus */
00032 #endif /* not HAVE_BOOLEAN */
00033 
00034 /* The X library (among other things) defines `FALSE' and `TRUE', and so
00035    we only want to define them if necessary, for use by application code.  */
00036 #ifndef FALSE
00037 #define FALSE false
00038 #define TRUE true
00039 #endif /* FALSE */
00040 
00041 /* The usual null-terminated string.  */
00042 typedef char *string;
00043 
00044 /* A pointer to constant data.  (ANSI says `const string' is
00045    `char * const', which is a constant pointer to non-constant data.)  */
00046 typedef const char *const_string;
00047 
00048 /* A generic pointer.  */
00049 typedef void *address;
00050 
00051 #endif /* not KPATHSEA_TYPES_H */