aboutsummaryrefslogtreecommitdiff
path: root/vendor/librune/include/internal/qmacros.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/qmacros.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/qmacros.h')
-rw-r--r--vendor/librune/include/internal/qmacros.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/librune/include/internal/qmacros.h b/vendor/librune/include/internal/qmacros.h
deleted file mode 100644
index 5369c48..0000000
--- a/vendor/librune/include/internal/qmacros.h
+++ /dev/null
@@ -1,25 +0,0 @@
-#ifndef RUNE_INTERNAL_QMACROS_H
-#define RUNE_INTERNAL_QMACROS_H
-
-/* Macros for qualifier-preserving functions. These are wrappers around some
- functions declared above which will return a const-qualified pointer if the
- input string is const-qualified, and a non-const-qualified pointer otherwise.
-
- The macros are taken from the N3020 proposal for C23. */
-
-/* clang-format off */
-#define _RUNE_PTR_IS_CONST(P) \
- _Generic(1 ? (P) : (void *)(P), \
- const void *: 1, \
- default: 0)
-#define _RUNE_STATIC_IF(P, T, E) \
- _Generic(&(char[!!(P) + 1]){0}, \
- char(*)[2]: T, \
- char(*)[1]: E)
-#define _RUNE_Q_PTR(F, S, ...) \
- _RUNE_STATIC_IF(_RUNE_PTR_IS_CONST((S)), \
- (const char8_t *)(F)(__VA_ARGS__), \
- ( char8_t *)(F)(__VA_ARGS__))
-/* clang-format on */
-
-#endif /* !RUNE_INTERNAL_QMACROS_H */