From 23c98e14df1cc4b329a4934970632ad06b8ffee6 Mon Sep 17 00:00:00 2001 From: Timerix Date: Tue, 18 Nov 2025 16:29:37 +0500 Subject: [PATCH] moved magic.h to tlibc --- dependencies/tlibc | 2 +- src/db/idb.c | 2 +- src/magic.h | 12 ------------ src/network/tcp-chat-protocol/constant.h | 2 +- 4 files changed, 3 insertions(+), 15 deletions(-) delete mode 100644 src/magic.h diff --git a/dependencies/tlibc b/dependencies/tlibc index c68e4e8..ec164dc 160000 --- a/dependencies/tlibc +++ b/dependencies/tlibc @@ -1 +1 @@ -Subproject commit c68e4e87b327ad21cd664e50ee2b5ef4ded3aed9 +Subproject commit ec164dc4e92dd20401b97e979507ec8f04f04af7 diff --git a/src/db/idb.c b/src/db/idb.c index 82e8af6..135c717 100644 --- a/src/db/idb.c +++ b/src/db/idb.c @@ -1,5 +1,5 @@ #include "idb.h" -#include "magic.h" +#include "tlibc/magic.h" #include "tlibc/filesystem.h" #include "tlibc/collections/HashMap.h" #include "cryptography/AES.h" diff --git a/src/magic.h b/src/magic.h deleted file mode 100644 index d49e1cb..0000000 --- a/src/magic.h +++ /dev/null @@ -1,12 +0,0 @@ -#pragma once -#include "tlibc/std.h" - -typedef union Magic32 { - u32 n; - u8 bytes[4]; -} Magic32; - -typedef union Magic64 { - u64 n; - u8 bytes[8]; -} Magic64; diff --git a/src/network/tcp-chat-protocol/constant.h b/src/network/tcp-chat-protocol/constant.h index eaf760b..f9ac1f6 100644 --- a/src/network/tcp-chat-protocol/constant.h +++ b/src/network/tcp-chat-protocol/constant.h @@ -1,6 +1,6 @@ #pragma once #include "tlibc/errors.h" -#include "magic.h" +#include "tlibc/magic.h" #include "tcp-chat/common_constants.h" #define AES_SESSION_KEY_SIZE 32