Blame lib/unitypes.in.h

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