|
||||
File indexing completed on 2025-01-17 09:56:14
0001 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 0002 /* Elementary types and macros for the GNU UniString library. 0003 Copyright (C) 2002, 2005-2006, 2009-2024 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 /* Type representing a Unicode character. */ 0025 typedef uint32_t ucs4_t; 0026 0027 /* Attribute of a function whose result depends only on the arguments 0028 (not pointers!) and which has no side effects. */ 0029 #ifndef _UC_ATTRIBUTE_CONST 0030 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95) || defined __clang__ 0031 # define _UC_ATTRIBUTE_CONST __attribute__ ((__const__)) 0032 # else 0033 # define _UC_ATTRIBUTE_CONST 0034 # endif 0035 #endif 0036 0037 /* Attribute of a function whose result depends only on the arguments 0038 (possibly pointers) and global memory, and which has no side effects. */ 0039 #ifndef _UC_ATTRIBUTE_PURE 0040 # if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 96) || defined __clang__ 0041 # define _UC_ATTRIBUTE_PURE __attribute__ ((__pure__)) 0042 # else 0043 # define _UC_ATTRIBUTE_PURE 0044 # endif 0045 #endif 0046 0047 /* Qualifier in a function declaration, that asserts that the caller must 0048 pass a pointer to a different object in the specified pointer argument 0049 than in the other pointer arguments. */ 0050 #ifndef _UC_RESTRICT 0051 # if defined __restrict \ 0052 || 2 < __GNUC__ + (95 <= __GNUC_MINOR__) \ 0053 || __clang_major__ >= 3 0054 # define _UC_RESTRICT __restrict 0055 # elif 199901L <= __STDC_VERSION__ || defined restrict 0056 # define _UC_RESTRICT restrict 0057 # else 0058 # define _UC_RESTRICT 0059 # endif 0060 #endif 0061 0062 #endif /* _UNITYPES_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |