From c8abe9e1aa396609a6457e3ddb57f3cb0b656d4a Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Mon, 1 Sep 2025 23:05:23 +0200 Subject: [PATCH] Put bool into stdbool.h --- kern/libkern/stdbool.h | 8 ++++++++ kern/libkern/stdint.h | 2 -- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 kern/libkern/stdbool.h diff --git a/kern/libkern/stdbool.h b/kern/libkern/stdbool.h new file mode 100644 index 0000000..1bab927 --- /dev/null +++ b/kern/libkern/stdbool.h @@ -0,0 +1,8 @@ +#ifndef _STDBOOL_H +#define _STDBOOL_H + +/*TODO*/ +typedef char bool; +enum { false = 0, true = 1 }; + +#endif diff --git a/kern/libkern/stdint.h b/kern/libkern/stdint.h index 69e74d4..0ce4c00 100644 --- a/kern/libkern/stdint.h +++ b/kern/libkern/stdint.h @@ -12,5 +12,3 @@ typedef unsigned long uint64_t; typedef uint64_t size_t; typedef uint64_t uintptr_t; - -typedef u8 bool;