Some general refactoring in the builder / project code.

This commit is contained in:
Christoffer Lerno
2023-09-23 03:22:11 +02:00
parent ad776c76a7
commit 709fe1c2c0
14 changed files with 291 additions and 306 deletions

View File

@@ -13,6 +13,9 @@
#include <assert.h>
#include <stdlib.h>
#include <stdbool.h>
#ifndef _MSC_VER
#include <unistd.h>
#endif
#define NO_ARENA 0
#define MAX_VECTOR_WIDTH 65536
@@ -20,7 +23,6 @@
#define MAX_SOURCE_LOCATION_LEN 255
#define PROJECT_JSON "project.json"
#if defined( _WIN32 ) || defined( __WIN32__ ) || defined( _WIN64 )
#define PLATFORM_WINDOWS 1
#define PLATFORM_POSIX 0

View File

@@ -15,6 +15,7 @@
const char *download_file(const char *url, const char *resource, const char *file_path);
#endif
#define ELEMENTLEN(x) (sizeof(x) / sizeof(x[0]))
extern const char *compiler_exe_name;
typedef struct StringSlice_