aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/include/internal/common.h
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-10-30 01:51:14 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-10-30 01:51:14 +0100
commit042e43247f396a9000fead59d9bff87bf12806d6 (patch)
treee902784464cbe9ce3c5114d513b016523e7e4b29 /vendor/librune/include/internal/common.h
parent170b8a92434233241c990c3e9432786de3262bcd (diff)
Completely revamp the grab source code
Some of the (many) few changes are: - Multithreading for significantly faster performance - The -p/--predicate flag - Byte offsets as the default - No customizable colors (maybe this will come back later) - Newer edition of mlib (formerly librune)
Diffstat (limited to 'vendor/librune/include/internal/common.h')
-rw-r--r--vendor/librune/include/internal/common.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/vendor/librune/include/internal/common.h b/vendor/librune/include/internal/common.h
deleted file mode 100644
index a05f33c..0000000
--- a/vendor/librune/include/internal/common.h
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef RUNE_INTERNAL_COMMON_H
-#define RUNE_INTERNAL_COMMON_H
-
-/* IWYU pragma: private */
-
-#include <limits.h>
-
-#define lengthof(a) (sizeof(a) / sizeof(*(a)))
-
-#define U1(x) (((x)&0x80) == 0x00)
-#define U2(x) (((x)&0xE0) == 0xC0)
-#define U3(x) (((x)&0xF0) == 0xE0)
-#define U4(x) (((x)&0xF8) == 0xF0)
-#define UC(x) (((x)&0xC0) == 0x80)
-
-/* Maximum value of a 1–4-byte long UTF-8 sequence */
-#include "rune.h"
-#define _1B_MAX RUNE_C(0x00007F)
-#define _2B_MAX RUNE_C(0x0007FF)
-#define _3B_MAX RUNE_C(0x00FFFF)
-#define _4B_MAX RUNE_C(0x10FFFF)
-
-#define LATIN1_MAX 0xFF
-
-#if BITINT_MAXWIDTH >= LATIN1_MAX + 1
-# define BIT_LOOKUP 1
-#endif
-
-#endif /* !RUNE_INTERNAL_COMMON_H */