mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 08:24:32 -08:00
[kernel] Remove placement-new declaration from memory.h.cog
Finishing the trend of using `#include <new>` to define new, get rid of the last bits of custom-declared operator new.
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#include <new>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <util/misc.h> // for checksum
|
#include <util/misc.h> // for checksum
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <new>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
#include <new>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include <util/no_construct.h>
|
#include <util/no_construct.h>
|
||||||
|
|||||||
@@ -13,8 +13,6 @@ namespace bootproto {
|
|||||||
struct args;
|
struct args;
|
||||||
}
|
}
|
||||||
|
|
||||||
void * operator new (size_t, void *p) noexcept;
|
|
||||||
|
|
||||||
/// Allocate from the default allocator.
|
/// Allocate from the default allocator.
|
||||||
/// \arg size The size in bytes requested
|
/// \arg size The size in bytes requested
|
||||||
/// \returns A pointer to the newly allocated memory,
|
/// \returns A pointer to the newly allocated memory,
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
/// \file vector.h
|
/// \file vector.h
|
||||||
/// Definition of a simple dynamic vector collection for use in kernel space
|
/// Definition of a simple dynamic vector collection for use in kernel space
|
||||||
|
|
||||||
|
#include <new>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|||||||
Reference in New Issue
Block a user