diff --git a/src/libcxx/include/new b/src/libcxx/include/new deleted file mode 100644 index c4a1be3d5..000000000 --- a/src/libcxx/include/new +++ /dev/null @@ -1,55 +0,0 @@ - -/** - * @file new - * @brief 内存分配 - * @author Zone.N (Zone.Niuzh@hotmail.com) - * @version 1.0 - * @date 2023-03-31 - * @copyright MIT LICENSE - * https://github.com/Simple-XX/SimpleKernel - * @par change log: - * - *
DateAuthorDescription - *
2023-03-31Zone.N迁移到 doxygen - *
- */ - -#ifndef SIMPLEKERNEL_NEW -#define SIMPLEKERNEL_NEW - -#include "cstddef" - -// TODO -namespace std { -enum class align_val_t : size_t { -}; -}; // namespace std - -void* operator new(size_t size); - -void* operator new(size_t, void* p) throw(); - -void* operator new[](size_t size); - -void* operator new[](size_t, void* p) throw(); - -void operator delete(void* p); - -void operator delete(void* p, size_t size); - -void operator delete(void*, void*) throw(); - -void operator delete[](void* p); - -void operator delete[](void* p, size_t size); - -void operator delete[](void*, void*) throw(); - -void* operator new(size_t, std::align_val_t); -void operator delete(void*, std::align_val_t); -void* operator new[](size_t, std::align_val_t); -void operator delete[](void*, std::align_val_t); -void operator delete(void*, size_t, std::align_val_t); -void operator delete[](void*, size_t, std::align_val_t); - -#endif /* SIMPLEKERNEL_NEW */ diff --git a/src/libcxx/src/new.cpp b/src/libcxx/src/new.cpp index 2c81b5cf2..527ba8295 100644 --- a/src/libcxx/src/new.cpp +++ b/src/libcxx/src/new.cpp @@ -14,7 +14,7 @@ * */ -#include "new" +#include "cstddef" // TODO void* operator new(size_t) {