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

Packit Bot 06c835
/* Elementary types and macros for the GNU UniString library.
Packit Bot 06c835
   Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc.
Packit Bot 06c835
Packit Bot 06c835
   This program is free software: you can redistribute it and/or modify it
Packit Bot 06c835
   under the terms of the GNU General Public License as published
Packit Bot 06c835
   by the Free Software Foundation; either version 3 of the License, or
Packit Bot 06c835
   (at your option) 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 GNU
Packit Bot 06c835
   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 _UNITYPES_H
Packit Bot 06c835
#define _UNITYPES_H
Packit Bot 06c835
Packit Bot 06c835
/* Get uint8_t, uint16_t, uint32_t.  */
Packit Bot 06c835
#include <stdint.h>
Packit Bot 06c835
Packit Bot 06c835
/* Type representing a Unicode character.  */
Packit Bot 06c835
typedef uint32_t ucs4_t;
Packit Bot 06c835
Packit Bot 06c835
/* Attribute of a function whose result depends only on the arguments
Packit Bot 06c835
   (not pointers!) and which has no side effects.  */
Packit Bot 06c835
#ifndef _UC_ATTRIBUTE_CONST
Packit Bot 06c835
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
Packit Bot 06c835
#  define _UC_ATTRIBUTE_CONST __attribute__ ((__const__))
Packit Bot 06c835
# else
Packit Bot 06c835
#  define _UC_ATTRIBUTE_CONST
Packit Bot 06c835
# endif
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
/* Attribute of a function whose result depends only on the arguments
Packit Bot 06c835
   (possibly pointers) and global memory, and which has no side effects.  */
Packit Bot 06c835
#ifndef _UC_ATTRIBUTE_PURE
Packit Bot 06c835
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
Packit Bot 06c835
#  define _UC_ATTRIBUTE_PURE __attribute__ ((__pure__))
Packit Bot 06c835
# else
Packit Bot 06c835
#  define _UC_ATTRIBUTE_PURE
Packit Bot 06c835
# endif
Packit Bot 06c835
#endif
Packit Bot 06c835
Packit Bot 06c835
#endif /* _UNITYPES_H */