organizing string builder
parent
dabda53ddc
commit
39a56b2aa9
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,5 @@
|
||||||
1
|
1
|
||||||
0
|
0
|
||||||
87
|
88
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,20 +1,15 @@
|
||||||
/*
|
/*
|
||||||
Builder for the 4coder_string.h header.
|
* Mr. 4th Dimention - Allen Webster
|
||||||
By Allen Webster
|
*
|
||||||
Created 21.01.2017 (dd.mm.yyyy)
|
* 21.01.2017
|
||||||
*/
|
*
|
||||||
|
* Builder for the 4coder_string.h header.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
// TOP
|
// TOP
|
||||||
|
|
||||||
#include "../4cpp/4cpp_lexer.h"
|
|
||||||
// TODO(allen): Make sure to only publish the 4coder_string.h if it builds and passes a series of tests.
|
// TODO(allen): Make sure to only publish the 4coder_string.h if it builds and passes a series of tests.
|
||||||
#define FSTRING_IMPLEMENTATION
|
|
||||||
#include "../4coder_lib/4coder_string.h"
|
|
||||||
|
|
||||||
#include "../4ed_defines.h"
|
|
||||||
#include "../meta/4ed_meta_defines.h"
|
|
||||||
#include "../meta/4ed_file_moving.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define BUILD_NUMBER_FILE "4coder_string_build_num.txt"
|
#define BUILD_NUMBER_FILE "4coder_string_build_num.txt"
|
||||||
|
|
||||||
|
@ -24,22 +19,29 @@ Created 21.01.2017 (dd.mm.yyyy)
|
||||||
#define BACKUP_FOLDER ".." SLASH ".." SLASH "string_backup"
|
#define BACKUP_FOLDER ".." SLASH ".." SLASH "string_backup"
|
||||||
#define PUBLISH_FOLDER ".." SLASH "4coder_helper"
|
#define PUBLISH_FOLDER ".." SLASH "4coder_helper"
|
||||||
|
|
||||||
|
#include "../4cpp/4cpp_lexer.h"
|
||||||
|
#define FSTRING_IMPLEMENTATION
|
||||||
|
#include "../4coder_lib/4coder_string.h"
|
||||||
|
|
||||||
|
#include "../4ed_defines.h"
|
||||||
|
#include "../meta/4ed_meta_defines.h"
|
||||||
|
#include "../meta/4ed_file_moving.h"
|
||||||
|
|
||||||
|
#include "../4coder_lib/4coder_mem.h"
|
||||||
|
|
||||||
|
#include "../meta/4ed_meta_parser.cpp"
|
||||||
|
#include "../meta/4ed_out_context.cpp"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "../4coder_lib/4coder_mem.h"
|
|
||||||
|
|
||||||
#define V_MAJ_NUM 1
|
#define V_MAJ_NUM 1
|
||||||
#define V_MIN_NUM 0
|
#define V_MIN_NUM 0
|
||||||
|
|
||||||
#define V_MAJ STR_(V_MAJ_NUM)
|
#define V_MAJ STR_(V_MAJ_NUM)
|
||||||
#define V_MIN STR_(V_MIN_NUM)
|
#define V_MIN STR_(V_MIN_NUM)
|
||||||
|
|
||||||
#include "../meta/4ed_meta_parser.cpp"
|
|
||||||
#include "../meta/4ed_out_context.cpp"
|
|
||||||
|
|
||||||
static b32
|
static b32
|
||||||
parse_build_number(char *file_name, i32 *major_out, i32 *minor_out, i32 *build_out){
|
parse_build_number(char *file_name, i32 *major_out, i32 *minor_out, i32 *build_out){
|
||||||
b32 result = false;
|
b32 result = false;
|
||||||
|
@ -162,6 +164,7 @@ file_move(char *path, char *file_name){
|
||||||
|
|
||||||
int main(){
|
int main(){
|
||||||
META_BEGIN();
|
META_BEGIN();
|
||||||
|
fm_init_system();
|
||||||
|
|
||||||
i32 size = (512 << 20);
|
i32 size = (512 << 20);
|
||||||
void *mem = malloc(size);
|
void *mem = malloc(size);
|
||||||
|
|
Loading…
Reference in New Issue