"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/stdbool.in.h" between
le-1.16.5.tar.gz and le-1.16.6.tar.gz

About: le is a terminal text editor (many block operations with stream and rectangular blocks, tunable syntax highlighting, etc.).

stdbool.in.h  (le-1.16.5):stdbool.in.h  (le-1.16.6)
/* Copyright (C) 2001-2003, 2006-2017 Free Software Foundation, Inc. /* Copyright (C) 2001-2003, 2006-2019 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001. Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
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
the Free Software Foundation; either version 3, or (at your option) the Free Software Foundation; either version 3, or (at your option)
any later version. any later version.
This program is distributed in the hope that it will be useful, This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>. */ along with this program; if not, see <https://www.gnu.org/licenses/>. */
#ifndef _GL_STDBOOL_H #ifndef _GL_STDBOOL_H
#define _GL_STDBOOL_H #define _GL_STDBOOL_H
/* ISO C 99 <stdbool.h> for platforms that lack it. */ /* ISO C 99 <stdbool.h> for platforms that lack it. */
/* Usage suggestions: /* Usage suggestions:
Programs that use <stdbool.h> should be aware of some limitations Programs that use <stdbool.h> should be aware of some limitations
and standards compliance issues. and standards compliance issues.
skipping to change at line 84 skipping to change at line 84
/* If the compiler already has both 'bool' and '_Bool', we can assume they /* If the compiler already has both 'bool' and '_Bool', we can assume they
are the same types. */ are the same types. */
# if !@HAVE__BOOL@ # if !@HAVE__BOOL@
typedef bool _Bool; typedef bool _Bool;
# endif # endif
# else # else
# if !defined __GNUC__ # if !defined __GNUC__
/* If @HAVE__BOOL@: /* If @HAVE__BOOL@:
Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when Some HP-UX cc and AIX IBM C compiler versions have compiler bugs when
the built-in _Bool type is used. See the built-in _Bool type is used. See
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html https://lists.gnu.org/r/bug-coreutils/2005-10/msg00086.html
Similar bugs are likely with other compilers as well; this file Similar bugs are likely with other compilers as well; this file
wouldn't be used if <stdbool.h> was working. wouldn't be used if <stdbool.h> was working.
So we override the _Bool type. So we override the _Bool type.
If !@HAVE__BOOL@: If !@HAVE__BOOL@:
Need to define _Bool ourselves. As 'signed char' or as an enum type? Need to define _Bool ourselves. As 'signed char' or as an enum type?
Use of a typedef, with SunPRO C, leads to a stupid Use of a typedef, with SunPRO C, leads to a stupid
"warning: _Bool is a keyword in ISO C99". "warning: _Bool is a keyword in ISO C99".
Use of an enum type, with IRIX cc, leads to a stupid Use of an enum type, with IRIX cc, leads to a stupid
"warning(1185): enumerated type mixed with another type". "warning(1185): enumerated type mixed with another type".
Even the existence of an enum type, without a typedef, Even the existence of an enum type, without a typedef,
 End of changes. 3 change blocks. 
5 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)