summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++/defines.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-01-09 02:31:16 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-01-09 02:31:16 +0100
commit365e1851ab1b2f2e7eca2fb0697e5b7ff1023b60 (patch)
tree4f82da02b080a6de9ba0756bf1f21c319569831f /include/LibC++/defines.h
parent3550c29636d9a46f40d02908605144221bb7eb9b (diff)
chore: Nectar grunt work on runtime library and test code.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/LibC++/defines.h')
-rw-r--r--include/LibC++/defines.h80
1 files changed, 0 insertions, 80 deletions
diff --git a/include/LibC++/defines.h b/include/LibC++/defines.h
deleted file mode 100644
index 061769c..0000000
--- a/include/LibC++/defines.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright 2024-2025, Amlal El Mahrouss (amlal@nekernel.org)
-// Licensed under the Apache License, Version 2.0 (See accompanying
-// file LICENSE or copy at http://www.apache.org/licenses/LICENSE-2.0)
-// Official repository: https://github.com/nekernel-org/nectar
-
-#ifndef __NECTAR_DEFINES_H__
-#define __NECTAR_DEFINES_H__
-
-#define __ATTRIBUTE(X) __attribute__((X))
-
-typedef __SIZE_TYPE__ size_t;
-typedef __INT64_TYPE__ ssize_t;
-typedef __INT32_TYPE__ int32_t;
-
-typedef void* ptr_type;
-typedef __SIZE_TYPE__ size_type;
-
-typedef __INT64_TYPE__ ptrdiff_t;
-typedef size_t uintptr_t;
-typedef void* voidptr_t;
-typedef void* any_t;
-typedef char* caddr_t;
-
-#ifndef NULL
-#define NULL ((voidptr_t) 0)
-#endif // !null
-
-#define __alloca(sz) __ck_alloca(sz)
-
-#define __deref(ptr) (*(ptr))
-
-#ifdef __cplusplus
-#define __init_decl() extern "C" {
-#define __fini_decl() \
- } \
- ;
-#else
-#define __init_decl()
-#define __fini_decl()
-#endif
-
-#if __has_builtin(__builtin_alloca)
-#define alloca(sz) __builtin_alloca(sz)
-#ifdef __alloca
-#undef __alloca
-#endif
-#define __alloca alloca
-#else
-#warning !! alloca not detected !!
-#endif
-
-typedef long long off_t;
-typedef unsigned long long uoff_t;
-
-typedef union float_cast {
- struct {
- unsigned int mantissa : 23;
- unsigned int exponent : 8;
- unsigned int sign : 1;
- };
-
- float f;
-} __ATTRIBUTE(packed) float_cast_t;
-
-typedef union double_cast {
- struct {
- unsigned long long int mantissa : 52;
- unsigned int exponent : 11;
- unsigned int sign : 1;
- };
-
- double f;
-} __ATTRIBUTE(packed) double_cast_t;
-
-namespace std {
-struct placement_t;
-struct nothrow_t;
-} // namespace std
-
-#endif /* __NECTAR_DEFINES_H__ */