mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 04:10:07 +00:00
Make the heap_allocator just be the permanent_allocator
This improves the speed of the compiler with very little memory increase (which surprised me, Ginger Bill)
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
//
|
||||
// Here is the API you need to know about:
|
||||
//
|
||||
gb_global gbAllocator mc_allocator = heap_allocator();
|
||||
gb_global gbAllocator mc_allocator = permanent_allocator();
|
||||
|
||||
struct Find_Result {
|
||||
int windows_sdk_version; // Zero if no Windows SDK found.
|
||||
@@ -91,10 +91,6 @@ gb_internal void mc_free(String16 str) {
|
||||
if (str.len) gb_free(mc_allocator, str.text);
|
||||
}
|
||||
|
||||
gb_internal void mc_free_all() {
|
||||
gb_free_all(mc_allocator);
|
||||
}
|
||||
|
||||
typedef struct _MC_Find_Data {
|
||||
DWORD file_attributes;
|
||||
String filename;
|
||||
|
||||
Reference in New Issue
Block a user