diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..5c7247b --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,7 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [] +} \ No newline at end of file diff --git a/build/test/dependencies/schach.d b/build/test/dependencies/schach.d index 5d25a68..6bb1d15 100644 --- a/build/test/dependencies/schach.d +++ b/build/test/dependencies/schach.d @@ -1 +1 @@ -build/test/out/c/schach.o: src/schach.c +build/test/out/c/schach.o: src/schach.c src/main.h diff --git a/build/test/dependencies/test_schach.d b/build/test/dependencies/test_schach.d index 3ac337a..da8e9a4 100644 --- a/build/test/dependencies/test_schach.d +++ b/build/test/dependencies/test_schach.d @@ -1,4 +1,4 @@ build/test/out/c/test_schach.o: test/test_schach.c \ C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ - src/schach.h + src/schach.h src/main.h diff --git a/build/test/out/c/cmock.o b/build/test/out/c/cmock.o index b1d3bb2..6e80141 100644 Binary files a/build/test/out/c/cmock.o and b/build/test/out/c/cmock.o differ diff --git a/build/test/out/c/schach.o b/build/test/out/c/schach.o index 94a1f10..d561eb7 100644 Binary files a/build/test/out/c/schach.o and b/build/test/out/c/schach.o differ diff --git a/build/test/out/c/test_schach.o b/build/test/out/c/test_schach.o index 0cf527d..75a55e7 100644 Binary files a/build/test/out/c/test_schach.o and b/build/test/out/c/test_schach.o differ diff --git a/build/test/out/c/test_schach_runner.o b/build/test/out/c/test_schach_runner.o index f76f87c..1630731 100644 Binary files a/build/test/out/c/test_schach_runner.o and b/build/test/out/c/test_schach_runner.o differ diff --git a/build/test/out/c/unity.o b/build/test/out/c/unity.o index 6b77b10..a836583 100644 Binary files a/build/test/out/c/unity.o and b/build/test/out/c/unity.o differ diff --git a/build/test/out/test_schach.out b/build/test/out/test_schach.out index f66bc9a..a4d07e1 100644 Binary files a/build/test/out/test_schach.out and b/build/test/out/test_schach.out differ diff --git a/build/test/results/test_schach.pass b/build/test/results/test_schach.pass index 2061b09..437722f 100644 --- a/build/test/results/test_schach.pass +++ b/build/test/results/test_schach.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.06211079999047797 +:time: 0.15252570000302512 diff --git a/src/main.c b/src/main.c new file mode 100644 index 0000000..756a006 --- /dev/null +++ b/src/main.c @@ -0,0 +1,16 @@ +#include +#include + +#include "schach.h" + +int main() { + int x = 8; + int y = 8; + + char** Spielfeld = create_Schachfeld(x, y); + print_Schachfeld(Spielfeld, x, y); + + free_Schachfeld(Spielfeld, x); + + return 0; +} diff --git a/src/main.h b/src/main.h new file mode 100644 index 0000000..7f696ff --- /dev/null +++ b/src/main.h @@ -0,0 +1,9 @@ +#ifndef MAIN +#define MAIN + + +int main(); + + + +#endif diff --git a/src/schach.c b/src/schach.c index 47adeca..9c87ce1 100644 --- a/src/schach.c +++ b/src/schach.c @@ -1,6 +1,8 @@ #include #include +#include "main.h" + /* Spielablauf: 1. Ausgabe vom Spielfeld @@ -101,16 +103,4 @@ void free_Schachfeld(char** Spielfeld, int x) { free(Spielfeld); } -/* -int main() { - int x = 8; - int y = 8; - - char** Spielfeld = create_Schachfeld(x, y); - print_Schachfeld(Spielfeld, x, y); - free_Schachfeld(Spielfeld, x); - - return 0; -} -*/ diff --git a/src/schach.h b/src/schach.h index 7b83d22..6412138 100644 --- a/src/schach.h +++ b/src/schach.h @@ -1,6 +1,8 @@ #ifndef SCHACH #define SCHACH +#include "main.h" + void print_Schachfeld(char** , int , int ); char** create_Schachfeld(int , int ); void free_Schachfeld(char** , int );