Blame missing_d/gawkbool.h
|
Packit |
575503 |
/*
|
|
Packit |
575503 |
* gawkbool.h -- replacement definitions for bool.
|
|
Packit |
575503 |
*/
|
|
Packit |
575503 |
|
|
Packit |
575503 |
/*
|
|
Packit |
575503 |
* Copyright (C) 2012 the Free Software Foundation, Inc.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* This file is part of GAWK, the GNU implementation of the
|
|
Packit |
575503 |
* AWK Programming Language.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* GAWK is free software; you can redistribute it and/or modify
|
|
Packit |
575503 |
* it under the terms of the GNU General Public License as published by
|
|
Packit |
575503 |
* the Free Software Foundation; either version 3 of the License, or
|
|
Packit |
575503 |
* (at your option) any later version.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* GAWK is distributed in the hope that it will be useful,
|
|
Packit |
575503 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
575503 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
Packit |
575503 |
* GNU General Public License for more details.
|
|
Packit |
575503 |
*
|
|
Packit |
575503 |
* You should have received a copy of the GNU General Public License
|
|
Packit |
575503 |
* along with this program; if not, write to the Free Software
|
|
Packit |
575503 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
|
Packit |
575503 |
*/
|
|
Packit |
575503 |
|
|
Packit |
575503 |
/* This stuff largely taken from the Autoconf doc. */
|
|
Packit |
575503 |
|
|
Packit |
575503 |
#ifndef __bool_true_false_are_defined
|
|
Packit |
575503 |
# ifndef HAVE__BOOL
|
|
Packit |
575503 |
# ifdef __cplusplus
|
|
Packit |
575503 |
typedef bool _Bool;
|
|
Packit |
575503 |
# else
|
|
Packit |
575503 |
# define _Bool signed char
|
|
Packit |
575503 |
# endif
|
|
Packit |
575503 |
# endif
|
|
Packit |
575503 |
# define bool _Bool
|
|
Packit |
575503 |
# define false 0
|
|
Packit |
575503 |
# define true 1
|
|
Packit |
575503 |
# define __bool_true_false_are_defined 1
|
|
Packit |
575503 |
#endif
|