aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/include/internal/types.h
blob: d216749aa700f565e165ca8c27c841503ab1f5a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* IWYU pragma: private */

#include <stddef.h> /* IWYU pragma: export */
#include <stdint.h>

typedef unsigned char char8_t;
typedef uint_least32_t rune;

#if _RUNE_NEEDS_U8VIEW && !_RUNE_HAS_U8VIEW
struct u8view {
	const char8_t *p;
	size_t len;
};
#	define _RUNE_HAS_U8VIEW 1
#endif