Blame lib/unitypes.in.h

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