Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:30:30

0001 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
0002 /* Elementary types and macros for the GNU UniString library.
0003    Copyright (C) 2002, 2005-2006, 2009-2026 Free Software Foundation, Inc.
0004 
0005    This file is free software: you can redistribute it and/or modify
0006    it under the terms of the GNU Lesser General Public License as
0007    published by the Free Software Foundation; either version 2.1 of the
0008    License, or (at your option) any later version.
0009 
0010    This file is distributed in the hope that it will be useful,
0011    but WITHOUT ANY WARRANTY; without even the implied warranty of
0012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013    GNU Lesser General Public License for more details.
0014 
0015    You should have received a copy of the GNU Lesser General Public License
0016    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
0017 
0018 #ifndef _UNITYPES_H
0019 #define _UNITYPES_H
0020 
0021 /* Get uint8_t, uint16_t, uint32_t.  */
0022 #include <unistring/stdint.h>
0023 
0024 #ifdef __cplusplus
0025 extern "C" {
0026 #endif
0027 
0028 
0029 /* Type representing a Unicode character.  */
0030 typedef uint32_t ucs4_t;
0031 
0032 /* Attribute of a function whose result depends only on the arguments
0033    (not pointers!) and which has no side effects.  */
0034 #ifndef _UC_ATTRIBUTE_CONST
0035 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || defined __clang__
0036 #  define _UC_ATTRIBUTE_CONST __attribute__ ((__const__))
0037 # else
0038 #  define _UC_ATTRIBUTE_CONST
0039 # endif
0040 #endif
0041 
0042 /* Attribute of a function whose result depends only on the arguments
0043    (possibly pointers) and global memory, and which has no side effects.  */
0044 #ifndef _UC_ATTRIBUTE_PURE
0045 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__
0046 #  define _UC_ATTRIBUTE_PURE __attribute__ ((__pure__))
0047 # else
0048 #  define _UC_ATTRIBUTE_PURE
0049 # endif
0050 #endif
0051 
0052 /* Qualifier in a function declaration, that asserts that the caller must
0053    pass a pointer to a different object in the specified pointer argument
0054    than in the other pointer arguments.  */
0055 #ifndef _UC_RESTRICT
0056 # if defined __restrict \
0057      || 2 < __GNUC__ + (95 <= __GNUC_MINOR__) \
0058      || __clang_major__ >= 3
0059 #  define _UC_RESTRICT __restrict
0060 # elif 199901L <= __STDC_VERSION__ || defined restrict
0061 #  define _UC_RESTRICT restrict
0062 # else
0063 #  define _UC_RESTRICT
0064 # endif
0065 #endif
0066 
0067 
0068 #ifdef __cplusplus
0069 }
0070 #endif
0071 
0072 #endif /* _UNITYPES_H */