зеркало из https://github.com/microsoft/snmalloc.git
[NFC] Rename some PALs to make the naming more consistent.
This commit is contained in:
Родитель
2b44b6b5ea
Коммит
896cc9cf6f
|
@ -10,7 +10,7 @@ namespace snmalloc
|
|||
// If simultating OE, then we need the underlying platform
|
||||
#if !defined(OPEN_ENCLAVE) || defined(OPEN_ENCLAVE_SIMULATION)
|
||||
# include "pal_apple.h"
|
||||
# include "pal_free_bsd_kernel.h"
|
||||
# include "pal_freebsd_kernel.h"
|
||||
# include "pal_freebsd.h"
|
||||
# include "pal_linux.h"
|
||||
# include "pal_netbsd.h"
|
||||
|
@ -33,11 +33,11 @@ namespace snmalloc
|
|||
# elif defined(FreeBSD_KERNEL)
|
||||
PALFreeBSDKernel;
|
||||
# elif defined(__FreeBSD__)
|
||||
PALFBSD;
|
||||
PALFreeBSD;
|
||||
# elif defined(__NetBSD__)
|
||||
PALNetBSD;
|
||||
# elif defined(__OpenBSD__)
|
||||
PALOBSD;
|
||||
PALOpenBSD;
|
||||
# else
|
||||
# error Unsupported platform
|
||||
# endif
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace snmalloc
|
|||
* This adds FreeBSD-specific aligned allocation to the generic BSD
|
||||
* implementation.
|
||||
*/
|
||||
class PALFBSD : public PALBSD_Aligned<PALFBSD>
|
||||
class PALFreeBSD : public PALBSD_Aligned<PALFreeBSD>
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace snmalloc
|
|||
* OpenBSD behaves exactly like a generic BSD platform but this class exists
|
||||
* as a place to add OpenBSD-specific behaviour later, if required.
|
||||
*/
|
||||
class PALOBSD : public PALBSD<PALOBSD>
|
||||
class PALOpenBSD : public PALBSD<PALOpenBSD>
|
||||
{
|
||||
public:
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче