Reorganize files to base/ folder #1
@@ -2,4 +2,4 @@
|
|||||||
CFLAGS=${CFLAGS:-"-fsanitize=address -ggdb"}
|
CFLAGS=${CFLAGS:-"-fsanitize=address -ggdb"}
|
||||||
CC=${CC:-gcc}
|
CC=${CC:-gcc}
|
||||||
set -x
|
set -x
|
||||||
${CC} -DDEBUG -pipe -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -std=gnu2x $CFLAGS src/*c
|
${CC} -DDEBUG -pipe -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -std=gnu2x $CFLAGS src/*c src/base/*c
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#include "arena.h"
|
#include "arena.h"
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
|
|
||||||
|
|
||||||
typedef U32 ArenaFlags;
|
typedef U32 ArenaFlags;
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
|
|
||||||
// Mini Arena for arena allocations from a supplied buffer
|
// Mini Arena for arena allocations from a supplied buffer
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
|
|
||||||
void *platform_malloc(size_t size);
|
void *platform_malloc(size_t size);
|
||||||
void platform_free(void *mem);
|
void platform_free(void *mem);
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
|
|
||||||
typedef union APoolElement APoolElement;
|
typedef union APoolElement APoolElement;
|
||||||
union APoolElement {
|
union APoolElement {
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "base_core.h"
|
#include "core.h"
|
||||||
|
|
||||||
typedef struct Str Str;
|
typedef struct Str Str;
|
||||||
struct Str {
|
struct Str {
|
||||||
|
|||||||
+6
-6
@@ -1,9 +1,9 @@
|
|||||||
#include "base_core.h"
|
#include "base/core.h"
|
||||||
#include "arena.h"
|
#include "base/arena.h"
|
||||||
#include "mini_arena.h"
|
#include "base/marena.h"
|
||||||
#include "platform.h"
|
#include "base/platform.h"
|
||||||
#include "pool.h"
|
#include "base/pool.h"
|
||||||
#include "string.h"
|
#include "base/string.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user