all files moved out from src/
This commit is contained in:
parent
9776a2c423
commit
8c9431460e
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,9 +1,11 @@
|
|||||||
*.user
|
*.user
|
||||||
[Bb]in/
|
[Bb]in/
|
||||||
|
.bin/
|
||||||
[Oo]bj/
|
[Oo]bj/
|
||||||
[Oo]ut/
|
[Oo]ut/
|
||||||
[Ll]og/
|
[Ll]og/
|
||||||
[Ll]ogs/
|
[Ll]ogs/
|
||||||
.vs/
|
.vs/
|
||||||
.vshistory/
|
.vshistory/
|
||||||
.idea/
|
.idea/
|
||||||
|
.vscode/
|
||||||
19
.vscode/settings.json
vendored
19
.vscode/settings.json
vendored
@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"*.h": "c",
|
|
||||||
"type_traits": "c",
|
|
||||||
"*.tcc": "c",
|
|
||||||
"functional": "c",
|
|
||||||
"istream": "c",
|
|
||||||
"ranges": "c",
|
|
||||||
"streambuf": "c",
|
|
||||||
"chrono": "c",
|
|
||||||
"string": "c",
|
|
||||||
"deque": "c",
|
|
||||||
"list": "c",
|
|
||||||
"unordered_map": "c",
|
|
||||||
"vector": "c",
|
|
||||||
"system_error": "c"
|
|
||||||
},
|
|
||||||
"C_Cpp.errorSquiggles": "Disabled"
|
|
||||||
}
|
|
||||||
16
DtsodC/.vscode/c_cpp_properties.json
vendored
16
DtsodC/.vscode/c_cpp_properties.json
vendored
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"configurations": [
|
|
||||||
{
|
|
||||||
"name": "Linux",
|
|
||||||
"includePath": [
|
|
||||||
"${workspaceFolder}/**"
|
|
||||||
],
|
|
||||||
"defines": [],
|
|
||||||
"compilerPath": "/usr/bin/gcc",
|
|
||||||
"cStandard": "gnu17",
|
|
||||||
"cppStandard": "gnu++14",
|
|
||||||
"intelliSenseMode": "linux-gcc-x64"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"version": 4
|
|
||||||
}
|
|
||||||
13
DtsodC/.vscode/settings.json
vendored
13
DtsodC/.vscode/settings.json
vendored
@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"files.associations": {
|
|
||||||
"*.h": "c",
|
|
||||||
"cstdint": "c",
|
|
||||||
"limits": "c",
|
|
||||||
"cstdio": "c",
|
|
||||||
"cwchar": "c",
|
|
||||||
"compare": "c",
|
|
||||||
"type_traits": "c"
|
|
||||||
},
|
|
||||||
"C_Cpp.default.defines": [],
|
|
||||||
"C_Cpp.intelliSenseCacheSize": 10
|
|
||||||
}
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
SRC=$(wildcard src/*c) $(wildcard src/**/*.c)
|
SRC=$(wildcard [^tests]**/*.c)
|
||||||
TESTS=$(wildcard tests/*c) $(wildcard tests/**/*.c)
|
TESTS=$(wildcard tests/*c) $(wildcard tests/**/*.c)
|
||||||
OUTDIR=bin/
|
OUTDIR=.bin
|
||||||
OUTFILE=$(OUTDIR)dtsodc.com
|
OUTFILE=$(OUTDIR)/dtsodc.com
|
||||||
CMP=gcc
|
CMP=gcc
|
||||||
all: clear_c build test
|
all: clear_c build test
|
||||||
|
|
||||||
@ -9,19 +9,20 @@ clear_c:
|
|||||||
clear
|
clear
|
||||||
clear_bin:
|
clear_bin:
|
||||||
@echo -e '\e[96m--------------[clear_bin]--------------\e[0m'
|
@echo -e '\e[96m--------------[clear_bin]--------------\e[0m'
|
||||||
touch $(OUTDIR)_.com
|
touch $(OUTDIR)/_.com
|
||||||
rm $(OUTDIR)*.com
|
rm $(OUTDIR)/*.com
|
||||||
|
|
||||||
clang: CMP=clang
|
clang: CMP=clang
|
||||||
clang: all
|
clang: all
|
||||||
|
|
||||||
CMPARGS= -Wall -Wno-discarded-qualifiers $(SRC) $(TESTS) -o $(OUTFILE)
|
CMPARGS= -Wall -Wno-discarded-qualifiers $(SRC) $(TESTS) -o $(OUTFILE)
|
||||||
build:
|
build:
|
||||||
|
@echo $(SRC)
|
||||||
@echo -e '\n\e[96m----------------[build]----------------\e[0m'
|
@echo -e '\n\e[96m----------------[build]----------------\e[0m'
|
||||||
@mkdir -p bin
|
@mkdir -p $(OUTDIR)
|
||||||
$(CMP) -O1 -flto $(CMPARGS)
|
$(CMP) -O1 -flto $(CMPARGS)
|
||||||
build_dbg:
|
build_dbg:
|
||||||
@mkdir -p bin
|
@mkdir -p $(OUTDIR)
|
||||||
@echo -e '\n\e[96m--------------[build_dbg]--------------\e[0m'
|
@echo -e '\n\e[96m--------------[build_dbg]--------------\e[0m'
|
||||||
$(CMP) -O0 -g $(CMPARGS).dbg
|
$(CMP) -O0 -g $(CMPARGS).dbg
|
||||||
test:
|
test:
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
#include "../src/base/base.h"
|
#include "../base/base.h"
|
||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "../src/Autoarr/Autoarr.h"
|
#include "../Autoarr/Autoarr.h"
|
||||||
|
|
||||||
static void printautoarr(Autoarr(uint16)* ar){
|
static void printautoarr(Autoarr(uint16)* ar){
|
||||||
printf("\e[94mAutoarr(uint16): %lu\n"
|
printf("\e[94mAutoarr(uint16): %lu\n"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "../src/DtsodParser/DtsodV24.h"
|
#include "../DtsodParser/DtsodV24.h"
|
||||||
|
|
||||||
void test_dtsod(){
|
void test_dtsod(){
|
||||||
printf("\e[96m-------------[test_dtsod]-------------\n");
|
printf("\e[96m-------------[test_dtsod]-------------\n");
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "../src/Hashtable/Hashtable.h"
|
#include "../Hashtable/Hashtable.h"
|
||||||
|
|
||||||
void printkvp(KeyValuePair p){
|
void printkvp(KeyValuePair p){
|
||||||
printf("{\"%s\", ",p.key);
|
printf("{\"%s\", ",p.key);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "../src/SearchTree/SearchTree.h"
|
#include "../SearchTree/SearchTree.h"
|
||||||
|
|
||||||
void printstnode(STNode* node){
|
void printstnode(STNode* node){
|
||||||
printf("\e[94mSTNode: %lu\n address: %p\n value: ",sizeof(STNode),node);
|
printf("\e[94mSTNode: %lu\n address: %p\n value: ",sizeof(STNode),node);
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "tests.h"
|
#include "tests.h"
|
||||||
#include "../src/base/mystr.h"
|
#include "../base/mystr.h"
|
||||||
|
|
||||||
void test_string(){
|
void test_string(){
|
||||||
optime(__func__,1,({
|
optime(__func__,1,({
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "../src/base/base.h"
|
#include "../base/base.h"
|
||||||
|
|
||||||
void printuni(Unitype v);
|
void printuni(Unitype v);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user