mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Reorder allocator list
This commit is contained in:
parent
babfc2395e
commit
60403e6b51
3 changed files with 5 additions and 5 deletions
|
@ -741,6 +741,9 @@ namespace IDE.Compiler
|
||||||
String freeLinkName;
|
String freeLinkName;
|
||||||
switch (options.mAllocType)
|
switch (options.mAllocType)
|
||||||
{
|
{
|
||||||
|
case .CRT:
|
||||||
|
mallocLinkName = "malloc";
|
||||||
|
freeLinkName = "free";
|
||||||
case .Debug:
|
case .Debug:
|
||||||
optionFlags |= .DebugAlloc;
|
optionFlags |= .DebugAlloc;
|
||||||
mallocLinkName = "";
|
mallocLinkName = "";
|
||||||
|
@ -748,9 +751,6 @@ namespace IDE.Compiler
|
||||||
case .Stomp:
|
case .Stomp:
|
||||||
mallocLinkName = "StompAlloc";
|
mallocLinkName = "StompAlloc";
|
||||||
freeLinkName = "StompFree";
|
freeLinkName = "StompFree";
|
||||||
case .CRT:
|
|
||||||
mallocLinkName = "malloc";
|
|
||||||
freeLinkName = "free";
|
|
||||||
case .JEMalloc, .JEMalloc_Debug:
|
case .JEMalloc, .JEMalloc_Debug:
|
||||||
mallocLinkName = "je_malloc";
|
mallocLinkName = "je_malloc";
|
||||||
freeLinkName = "je_free";
|
freeLinkName = "je_free";
|
||||||
|
|
|
@ -214,9 +214,9 @@ namespace IDE
|
||||||
|
|
||||||
public enum AllocType
|
public enum AllocType
|
||||||
{
|
{
|
||||||
|
CRT,
|
||||||
Debug,
|
Debug,
|
||||||
Stomp,
|
Stomp,
|
||||||
CRT,
|
|
||||||
JEMalloc,
|
JEMalloc,
|
||||||
JEMalloc_Debug,
|
JEMalloc_Debug,
|
||||||
TCMalloc,
|
TCMalloc,
|
||||||
|
|
|
@ -734,7 +734,7 @@ namespace IDE.ui
|
||||||
AddPropertiesItem(category, "Incremental Build", "mIncrementalBuild");
|
AddPropertiesItem(category, "Incremental Build", "mIncrementalBuild");
|
||||||
AddPropertiesItem(category, "Intermediate Type", "mIntermediateType");
|
AddPropertiesItem(category, "Intermediate Type", "mIntermediateType");
|
||||||
var (allocCategory, allocPropEntry) = AddPropertiesItem(category, "Memory Allocator", "mAllocType",
|
var (allocCategory, allocPropEntry) = AddPropertiesItem(category, "Memory Allocator", "mAllocType",
|
||||||
scope String[] ("Debug", "Stomp (Debug)", "CRT", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
|
scope String[] ("CRT", "Debug", "Stomp (Paranoid)", "JEMalloc", "JEMalloc Debug", "TCMalloc", "TCMalloc Debug"));
|
||||||
var (mallocItem, mallocPropEntry) = AddPropertiesItem(allocCategory, "Malloc", "mAllocMalloc");
|
var (mallocItem, mallocPropEntry) = AddPropertiesItem(allocCategory, "Malloc", "mAllocMalloc");
|
||||||
var (freeItem, freePropEntry) = AddPropertiesItem(allocCategory, "Free", "mAllocFree");
|
var (freeItem, freePropEntry) = AddPropertiesItem(allocCategory, "Free", "mAllocFree");
|
||||||
allocPropEntry.mOnUpdate.Add(new () =>
|
allocPropEntry.mOnUpdate.Add(new () =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue