1 |
/* System-dependent definitions for Bison. |
/* System-dependent definitions for Bison. |
2 |
Copyright (C) 2000, 2001, 2002 Free Software Foundation, Inc. |
|
3 |
|
Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
4 |
|
|
5 |
This program is free software; you can redistribute it and/or modify |
This program is free software; you can redistribute it and/or modify |
6 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
186 |
#if HAVE_STDBOOL_H |
#if HAVE_STDBOOL_H |
187 |
# include <stdbool.h> |
# include <stdbool.h> |
188 |
#else |
#else |
189 |
typedef enum {false = 0, true = 1} bool; |
# ifndef __bool_true_false_are_defined |
190 |
|
# if ! HAVE__BOOL |
191 |
|
# ifdef __cplusplus |
192 |
|
typedef bool _Bool; |
193 |
|
# else |
194 |
|
typedef unsigned char _Bool; |
195 |
|
# endif |
196 |
|
# endif |
197 |
|
# define bool _Bool |
198 |
|
# define false 0 |
199 |
|
# define true 1 |
200 |
|
# define __bool_true_false_are_defined 1 |
201 |
|
# endif |
202 |
#endif |
#endif |
203 |
|
|
204 |
|
|