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

Packit 5b56b6
/* Elementary types and macros for the GNU UniString library.
Packit 5b56b6
   Copyright (C) 2002, 2005-2006, 2009-2015 Free Software Foundation, Inc.
Packit 5b56b6
Packit 5b56b6
   This program is free software: you can redistribute it and/or modify it
Packit 5b56b6
   under the terms of the GNU General Public License as published
Packit 5b56b6
   by the Free Software Foundation; either version 3 of the License, or
Packit 5b56b6
   (at your option) any later version.
Packit 5b56b6
Packit 5b56b6
   This program is distributed in the hope that it will be useful,
Packit 5b56b6
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 5b56b6
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 5b56b6
   General Public License for more details.
Packit 5b56b6
Packit 5b56b6
   You should have received a copy of the GNU General Public License
Packit 5b56b6
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 5b56b6
Packit 5b56b6
#ifndef _UNITYPES_H
Packit 5b56b6
#define _UNITYPES_H
Packit 5b56b6
Packit 5b56b6
/* Get uint8_t, uint16_t, uint32_t.  */
Packit 5b56b6
#include <stdint.h>
Packit 5b56b6
Packit 5b56b6
/* Type representing a Unicode character.  */
Packit 5b56b6
typedef uint32_t ucs4_t;
Packit 5b56b6
Packit 5b56b6
/* Attribute of a function whose result depends only on the arguments
Packit 5b56b6
   (not pointers!) and which has no side effects.  */
Packit 5b56b6
#ifndef _UC_ATTRIBUTE_CONST
Packit 5b56b6
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95)
Packit 5b56b6
#  define _UC_ATTRIBUTE_CONST __attribute__ ((__const__))
Packit 5b56b6
# else
Packit 5b56b6
#  define _UC_ATTRIBUTE_CONST
Packit 5b56b6
# endif
Packit 5b56b6
#endif
Packit 5b56b6
Packit 5b56b6
/* Attribute of a function whose result depends only on the arguments
Packit 5b56b6
   (possibly pointers) and global memory, and which has no side effects.  */
Packit 5b56b6
#ifndef _UC_ATTRIBUTE_PURE
Packit 5b56b6
# if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96)
Packit 5b56b6
#  define _UC_ATTRIBUTE_PURE __attribute__ ((__pure__))
Packit 5b56b6
# else
Packit 5b56b6
#  define _UC_ATTRIBUTE_PURE
Packit 5b56b6
# endif
Packit 5b56b6
#endif
Packit 5b56b6
Packit 5b56b6
#endif /* _UNITYPES_H */