"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/wchar.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.).

wchar.in.h  (le-1.16.5):wchar.in.h  (le-1.16.6)
/* A substitute for ISO C99 <wchar.h>, for platforms that have issues. /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
Copyright (C) 2007-2017 Free Software Foundation, Inc. Copyright (C) 2007-2019 Free Software Foundation, Inc.
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/>. */
/* Written by Eric Blake. */ /* Written by Eric Blake. */
/* /*
* ISO C 99 <wchar.h> for platforms that have issues. * ISO C 99 <wchar.h> for platforms that have issues.
* <http://www.opengroup.org/susv3xbd/wchar.h.html> * <http://www.opengroup.org/susv3xbd/wchar.h.html>
* *
* For now, this just ensures proper prerequisite inclusion order and * For now, this just ensures proper prerequisite inclusion order and
* the declaration of wcwidth(). * the declaration of wcwidth().
*/ */
#if __GNUC__ >= 3 #if __GNUC__ >= 3
@PRAGMA_SYSTEM_HEADER@ @PRAGMA_SYSTEM_HEADER@
#endif #endif
@PRAGMA_COLUMNS@ @PRAGMA_COLUMNS@
#if (((defined __need_mbstate_t || defined __need_wint_t) \ #if (((defined __need_mbstate_t || defined __need_wint_t) \
&& !defined __MINGW32__ && !defined __KLIBC__) \ && !defined __MINGW32__) \
|| (defined __hpux \ || (defined __hpux \
&& ((defined _INTTYPES_INCLUDED && !defined strtoimax) \ && ((defined _INTTYPES_INCLUDED && !defined strtoimax) \
|| defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \ || defined _GL_JUST_INCLUDE_SYSTEM_WCHAR_H)) \
|| (defined __MINGW32__ && defined __STRING_H_SOURCED__) \ || (defined __MINGW32__ && defined __STRING_H_SOURCED__) \
|| defined _GL_ALREADY_INCLUDING_WCHAR_H) || defined _GL_ALREADY_INCLUDING_WCHAR_H)
/* Special invocation convention: /* Special invocation convention:
- Inside glibc and uClibc header files, but not MinGW. - Inside glibc and uClibc header files, but not MinGW.
- On HP-UX 11.00 we have a sequence of nested includes - On HP-UX 11.00 we have a sequence of nested includes
<wchar.h> -> <stdlib.h> -> <stdint.h>, and the latter includes <wchar.h>, <wchar.h> -> <stdlib.h> -> <stdint.h>, and the latter includes <wchar.h>,
once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h> once indirectly <stdint.h> -> <sys/types.h> -> <inttypes.h> -> <wchar.h>
skipping to change at line 442 skipping to change at line 442
# if !(defined __cplusplus && defined GNULIB_NAMESPACE) # if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef wcwidth # undef wcwidth
# define wcwidth rpl_wcwidth # define wcwidth rpl_wcwidth
# endif # endif
_GL_FUNCDECL_RPL (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); _GL_FUNCDECL_RPL (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE);
_GL_CXXALIAS_RPL (wcwidth, int, (wchar_t)); _GL_CXXALIAS_RPL (wcwidth, int, (wchar_t));
# else # else
# if !@HAVE_DECL_WCWIDTH@ # if !@HAVE_DECL_WCWIDTH@
/* wcwidth exists but is not declared. */ /* wcwidth exists but is not declared. */
_GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE); _GL_FUNCDECL_SYS (wcwidth, int, (wchar_t) _GL_ATTRIBUTE_PURE);
# elif defined __KLIBC__
/* On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
static inline function. The implementation of wcwidth in wcwidth.c
causes a "conflicting types" error. */
# undef wcwidth
# endif # endif
_GL_CXXALIAS_SYS (wcwidth, int, (wchar_t)); _GL_CXXALIAS_SYS (wcwidth, int, (wchar_t));
# endif # endif
_GL_CXXALIASWARN (wcwidth); _GL_CXXALIASWARN (wcwidth);
#elif defined GNULIB_POSIXCHECK #elif defined GNULIB_POSIXCHECK
# undef wcwidth # undef wcwidth
# if HAVE_RAW_DECL_WCWIDTH # if HAVE_RAW_DECL_WCWIDTH
_GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - " _GL_WARN_ON_USE (wcwidth, "wcwidth is unportable - "
"use gnulib module wcwidth for portability"); "use gnulib module wcwidth for portability");
# endif # endif
 End of changes. 4 change blocks. 
8 lines changed or deleted 3 lines changed or added

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