aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/include/internal
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-23 16:06:31 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-23 16:06:31 +0100
commit0a9060e335d59f0ccaf5d9600abbcb938db30928 (patch)
tree874deccfe6c9b5a0d225cd892b06229378761b2f /vendor/librune/include/internal
parent851ca8da9d72fbc438420eab4a7de4d84fb5bc5d (diff)
Bump librune version
Diffstat (limited to 'vendor/librune/include/internal')
-rw-r--r--vendor/librune/include/internal/common.h2
-rw-r--r--vendor/librune/include/internal/gbrk_lookup.h1
-rw-r--r--vendor/librune/include/internal/types.h8
3 files changed, 7 insertions, 4 deletions
diff --git a/vendor/librune/include/internal/common.h b/vendor/librune/include/internal/common.h
index 7107528..af490d3 100644
--- a/vendor/librune/include/internal/common.h
+++ b/vendor/librune/include/internal/common.h
@@ -1,6 +1,8 @@
#ifndef RUNE_INTERNAL_COMMON_H
#define RUNE_INTERNAL_COMMON_H
+/* IWYU pragma: private */
+
#if __STDC_VERSION__ >= 202311L
# define RUNE_IS_23 1
#endif
diff --git a/vendor/librune/include/internal/gbrk_lookup.h b/vendor/librune/include/internal/gbrk_lookup.h
index 39dfa8e..043be97 100644
--- a/vendor/librune/include/internal/gbrk_lookup.h
+++ b/vendor/librune/include/internal/gbrk_lookup.h
@@ -5,6 +5,7 @@
#ifndef RUNE_INTERNAL_GBRK_LOOKUP_H
#define RUNE_INTERNAL_GBRK_LOOKUP_H
+/* IWYU pragma: private */
/* clang-format off */
#include "types.h"
diff --git a/vendor/librune/include/internal/types.h b/vendor/librune/include/internal/types.h
index b2fa34c..b7ce6f1 100644
--- a/vendor/librune/include/internal/types.h
+++ b/vendor/librune/include/internal/types.h
@@ -1,5 +1,4 @@
-#ifndef RUNE_INTERNAL_TYPES_H
-#define RUNE_INTERNAL_TYPES_H
+/* IWYU pragma: private */
#include <stddef.h> /* IWYU pragma: export */
#include <stdint.h>
@@ -8,10 +7,11 @@ typedef unsigned char char8_t;
typedef uint_least32_t rune;
#if _RUNE_NEEDS_U8VIEW
+# if !_RUNE_HAS_U8VIEW
struct u8view {
const char8_t *p;
size_t len;
};
+# define _RUNE_HAS_U8VIEW 1
+# endif
#endif
-
-#endif /* !RUNE_INTERNAL_TYPES_H */