Allow the compiler to be called multiple times (while leaking)

This commit is contained in:
Christoffer Lerno
2021-12-02 22:38:37 +01:00
committed by Christoffer Lerno
parent e31d189837
commit 1bb9c2d249
17 changed files with 320 additions and 342 deletions

View File

@@ -5,14 +5,20 @@
// a copy of which can be found in the LICENSE file.
#include "common.h"
#include "setjmp.h"
#if PLATFORM_WINDOWS
#include "direct.h"
#endif
#define COMPILER_SUCCESS_EXIT -1000
extern jmp_buf on_err_jump;
extern bool debug_log;
extern bool debug_stats;
NORETURN void exit_compiler(int exit_value);
typedef struct Task_
{
void (*task)(void *arg);
@@ -30,6 +36,7 @@ void file_find_top_dir();
void file_add_wildcard_files(const char ***files, const char *path, bool recursive);
void *cmalloc(size_t size);
void memory_init(void);
void memory_release();
void *malloc_arena(size_t mem);
void free_arena(void);
void print_arena_status(void);