From 042e43247f396a9000fead59d9bff87bf12806d6 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 30 Oct 2024 01:51:14 +0100 Subject: 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) --- src/flags.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/flags.h (limited to 'src/flags.h') diff --git a/src/flags.h b/src/flags.h new file mode 100644 index 0000000..a4a4709 --- /dev/null +++ b/src/flags.h @@ -0,0 +1,23 @@ +#ifndef GRAB2_FLAGS_H +#define GRAB2_FLAGS_H + +typedef struct { + bool c : 1; + bool i : 1; + bool l : 1; + bool p : 1; + bool s : 1; + bool U : 1; + bool z : 1; + +#if !GIT_GRAB + bool do_header : 1; +#endif +} flags_t; + +#if !MAIN_C +extern +#endif +flags_t flags; + +#endif /* !GRAB2_FLAGS_H */ -- cgit v1.2.3