reorganizing includes a little more

This commit is contained in:
Allen Webster 2016-08-30 21:05:24 -04:00
parent 452f266d5a
commit ca1607013d
4 changed files with 12 additions and 14 deletions

View File

@ -2,6 +2,10 @@
#ifndef FCODER_MEM_H #ifndef FCODER_MEM_H
#define FCODER_MEM_H #define FCODER_MEM_H
#ifndef Assert
# define Assert(n) do{ if(!(n)){*(int*)0 = 0xA11E;} }while(0)
#endif
struct Partition{ struct Partition{
char *base; char *base;
int32_t pos, max; int32_t pos, max;
@ -78,10 +82,6 @@ This is a very week general purpose allocator system.
It should only be used for infrequent large allocations (4K+). It should only be used for infrequent large allocations (4K+).
*/ */
//#include <stdint.h>
//#include <assert.h>
//#include <string.h>
enum{ enum{
MEM_BUBBLE_FLAG_INIT = 0x0, MEM_BUBBLE_FLAG_INIT = 0x0,
MEM_BUBBLE_USED = 0x1, MEM_BUBBLE_USED = 0x1,

View File

@ -9,6 +9,10 @@
// TOP // TOP
// TODO(allen): can I get away from this one?
#include <assert.h>
#include "4ed_defines.h"
#include "4coder_custom.h" #include "4coder_custom.h"
#define FSTRING_IMPLEMENTATION #define FSTRING_IMPLEMENTATION
@ -17,8 +21,6 @@
#define BUFFER_EXPERIMENT_SCALPEL 0 #define BUFFER_EXPERIMENT_SCALPEL 0
#include "4ed_defines.h"
#include "4ed_math.h" #include "4ed_math.h"
#include "4ed_system.h" #include "4ed_system.h"
@ -26,9 +28,6 @@
#include "4ed.h" #include "4ed.h"
// TODO(allen): can I get away from this one?
#include <assert.h>
#define FCPP_FORBID_MALLOC #define FCPP_FORBID_MALLOC
#include "4cpp_lexer.h" #include "4cpp_lexer.h"

View File

@ -1,4 +1,4 @@
Distribution Date: 20.7.2016 (dd.mm.yyyy) Distribution Date: 30.8.2016 (dd.mm.yyyy)
Thank you for contributing to the 4coder project! Thank you for contributing to the 4coder project!

View File

@ -9,10 +9,11 @@
// TOP // TOP
#if FRED_SUPER #include <assert.h>
#include "4ed_defines.h" #include "4ed_defines.h"
#if FRED_SUPER
# define FSTRING_IMPLEMENTATION # define FSTRING_IMPLEMENTATION
# define FSTRING_C # define FSTRING_C
# include "4coder_string.h" # include "4coder_string.h"
@ -22,8 +23,6 @@
# include "4coder_style.h" # include "4coder_style.h"
# include "4coder_rect.h" # include "4coder_rect.h"
# include <assert.h>
# include "4coder_mem.h" # include "4coder_mem.h"
// TODO(allen): This is duplicated from 4coder_custom.h // TODO(allen): This is duplicated from 4coder_custom.h