got string builder working without mem.h

master
Allen Webster 2017-07-10 10:52:19 -04:00
parent 312035ac8c
commit 95c33280db
3 changed files with 4 additions and 8 deletions

View File

@ -188,7 +188,7 @@ umem fm_arena_max = 0;
internal void
fm__init_memory(){
Assert(fm_arena_memory == 0);
fm_arena_max = MB(16);
fm_arena_max = MB(512);
fm_arena_memory = (char*)malloc(fm_arena_max);
}

View File

@ -1,5 +1,5 @@
1
0
95
96

View File

@ -25,7 +25,6 @@
#include "../4ed_defines.h"
#include "../meta/4ed_meta_defines.h"
#include "../4coder_lib/4coder_mem.h"
#define FTECH_FILE_MOVING_IMPLEMENTATION
#include "../meta/4ed_file_moving.h"
@ -165,12 +164,9 @@ int main(){
void *mem = malloc(size);
memset(mem, 0, size);
Partition part_ = make_part(mem, size);
//Partition *part = &part_;
// NOTE(allen): Parse the internal string file.
char *string_files[] = { INTERNAL_STRING, 0 };
Meta_Unit string_unit = compile_meta_unit(part, ".", string_files, ExpandArray(meta_keywords));
Meta_Unit string_unit = compile_meta_unit(".", string_files, ExpandArray(meta_keywords));
if (string_unit.parse == 0){
Assert(!"Missing one or more input files!");
@ -202,7 +198,7 @@ int main(){
}
// NOTE(allen): Output
String out = str_alloc(part, 10 << 20);
String out = str_alloc(10 << 20);
Out_Context context = {0};
// NOTE(allen): String Library