Blame gettext-runtime/gnulib-lib/iconv.in.h

Packit Bot 06c835
/* A GNU-like <iconv.h>.
Packit Bot 06c835
Packit Bot 06c835
   Copyright (C) 2007-2015 Free Software Foundation, Inc.
Packit Bot 06c835
Packit Bot 06c835
   This program is free software; you can redistribute it and/or modify
Packit Bot 06c835
   it under the terms of the GNU General Public License as published by
Packit Bot 06c835
   the Free Software Foundation; either version 3, or (at your option)
Packit Bot 06c835
   any later version.
Packit Bot 06c835
Packit Bot 06c835
   This program is distributed in the hope that it will be useful,
Packit Bot 06c835
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 06c835
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 06c835
   GNU General Public License for more details.
Packit Bot 06c835
Packit Bot 06c835
   You should have received a copy of the GNU General Public License
Packit Bot 06c835
   along with this program; if not, see <http://www.gnu.org/licenses/>.  */
Packit Bot 06c835
Packit Bot 06c835
#ifndef _@GUARD_PREFIX@_ICONV_H
Packit Bot 06c835
Packit Bot 06c835
#if __GNUC__ >= 3
Packit Bot 06c835
@PRAGMA_SYSTEM_HEADER@
Packit Bot 06c835
#endif
Packit Bot 06c835
@PRAGMA_COLUMNS@
Packit Bot 06c835
Packit Bot 06c835
/* The include_next requires a split double-inclusion guard.  */
Packit Bot 06c835
#@INCLUDE_NEXT@ @NEXT_ICONV_H@
Packit Bot 06c835
Packit Bot 06c835
#ifndef _@GUARD_PREFIX@_ICONV_H
Packit Bot 06c835
#define _@GUARD_PREFIX@_ICONV_H
Packit Bot 06c835
Packit Bot 06c835
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
Packit Bot 06c835
Packit Bot 06c835
/* The definition of _GL_ARG_NONNULL is copied here.  */
Packit Bot 06c835
Packit Bot 06c835
/* The definition of _GL_WARN_ON_USE is copied here.  */
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#if @GNULIB_ICONV@
Packit Bot 06c835
# if @REPLACE_ICONV_OPEN@
Packit Bot 06c835
/* An iconv_open wrapper that supports the IANA standardized encoding names
Packit Bot 06c835
   ("ISO-8859-1" etc.) as far as possible.  */
Packit Bot 06c835
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Bot 06c835
#   define iconv_open rpl_iconv_open
Packit Bot 06c835
#  endif
Packit Bot 06c835
_GL_FUNCDECL_RPL (iconv_open, iconv_t,
Packit Bot 06c835
                  (const char *tocode, const char *fromcode)
Packit Bot 06c835
                  _GL_ARG_NONNULL ((1, 2)));
Packit Bot 06c835
_GL_CXXALIAS_RPL (iconv_open, iconv_t,
Packit Bot 06c835
                  (const char *tocode, const char *fromcode));
Packit Bot 06c835
# else
Packit Bot 06c835
_GL_CXXALIAS_SYS (iconv_open, iconv_t,
Packit Bot 06c835
                  (const char *tocode, const char *fromcode));
Packit Bot 06c835
# endif
Packit Bot 06c835
_GL_CXXALIASWARN (iconv_open);
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
#if @REPLACE_ICONV_UTF@
Packit Bot 06c835
/* Special constants for supporting UTF-{16,32}{BE,LE} encodings.
Packit Bot 06c835
   Not public.  */
Packit Bot 06c835
# define _ICONV_UTF8_UTF16BE (iconv_t)(-161)
Packit Bot 06c835
# define _ICONV_UTF8_UTF16LE (iconv_t)(-162)
Packit Bot 06c835
# define _ICONV_UTF8_UTF32BE (iconv_t)(-163)
Packit Bot 06c835
# define _ICONV_UTF8_UTF32LE (iconv_t)(-164)
Packit Bot 06c835
# define _ICONV_UTF16BE_UTF8 (iconv_t)(-165)
Packit Bot 06c835
# define _ICONV_UTF16LE_UTF8 (iconv_t)(-166)
Packit Bot 06c835
# define _ICONV_UTF32BE_UTF8 (iconv_t)(-167)
Packit Bot 06c835
# define _ICONV_UTF32LE_UTF8 (iconv_t)(-168)
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
#if @GNULIB_ICONV@
Packit Bot 06c835
# if @REPLACE_ICONV@
Packit Bot 06c835
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Bot 06c835
#   define iconv rpl_iconv
Packit Bot 06c835
#  endif
Packit Bot 06c835
_GL_FUNCDECL_RPL (iconv, size_t,
Packit Bot 06c835
                  (iconv_t cd,
Packit Bot 06c835
                   @ICONV_CONST@ char **inbuf, size_t *inbytesleft,
Packit Bot 06c835
                   char **outbuf, size_t *outbytesleft));
Packit Bot 06c835
_GL_CXXALIAS_RPL (iconv, size_t,
Packit Bot 06c835
                  (iconv_t cd,
Packit Bot 06c835
                   @ICONV_CONST@ char **inbuf, size_t *inbytesleft,
Packit Bot 06c835
                   char **outbuf, size_t *outbytesleft));
Packit Bot 06c835
# else
Packit Bot 06c835
_GL_CXXALIAS_SYS (iconv, size_t,
Packit Bot 06c835
                  (iconv_t cd,
Packit Bot 06c835
                   @ICONV_CONST@ char **inbuf, size_t *inbytesleft,
Packit Bot 06c835
                   char **outbuf, size_t *outbytesleft));
Packit Bot 06c835
# endif
Packit Bot 06c835
_GL_CXXALIASWARN (iconv);
Packit Bot 06c835
# ifndef ICONV_CONST
Packit Bot 06c835
#  define ICONV_CONST @ICONV_CONST@
Packit Bot 06c835
# endif
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
#if @GNULIB_ICONV@
Packit Bot 06c835
# if @REPLACE_ICONV@
Packit Bot 06c835
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
Packit Bot 06c835
#   define iconv_close rpl_iconv_close
Packit Bot 06c835
#  endif
Packit Bot 06c835
_GL_FUNCDECL_RPL (iconv_close, int, (iconv_t cd));
Packit Bot 06c835
_GL_CXXALIAS_RPL (iconv_close, int, (iconv_t cd));
Packit Bot 06c835
# else
Packit Bot 06c835
_GL_CXXALIAS_SYS (iconv_close, int, (iconv_t cd));
Packit Bot 06c835
# endif
Packit Bot 06c835
_GL_CXXALIASWARN (iconv_close);
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
Packit Bot 06c835
#endif /* _@GUARD_PREFIX@_ICONV_H */
Packit Bot 06c835
#endif /* _@GUARD_PREFIX@_ICONV_H */