From aac55ce4731f0a9bf24059295c2eeb6cd9996e9e Mon Sep 17 00:00:00 2001 From: Didnt Read Readme Date: Tue, 15 Mar 2022 08:55:38 +0100 Subject: [PATCH] =?UTF-8?q?Praktikas=201-3=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- P01_Erste_Schritte_mit_C/CMakeLists.txt | 9 + P01_Erste_Schritte_mit_C/P1_aufgabe3.c | 21 + P01_Erste_Schritte_mit_C/P1_aufgabe4.c | 21 + P01_Erste_Schritte_mit_C/P1_helloworld.c | 7 + .../.cmake/api/v1/query/cache-v2 | 0 .../.cmake/api/v1/query/cmakeFiles-v1 | 0 .../.cmake/api/v1/query/codemodel-v2 | 0 .../.cmake/api/v1/query/toolchains-v1 | 0 .../reply/cache-v2-93491442d4d99a0b362c.json | 1019 +++++++++++++++++ .../cmakeFiles-v1-66e1ca6687393525395c.json | 401 +++++++ .../codemodel-v2-77e324d46c225fcf6c5f.json | 60 + ...irectory-.-Debug-f5ebdc15457944623624.json | 14 + .../reply/index-2022-03-02T07-42-57-0976.json | 108 ++ ...Praktikum1-Debug-62f97d605090902f9b35.json | 118 ++ .../toolchains-v1-cd8c58e1522147f815df.json | 53 + .../cmake-build-debug/.ninja_deps | Bin 0 -> 3668 bytes .../cmake-build-debug/.ninja_log | 4 + .../cmake-build-debug/CMakeCache.txt | 320 ++++++ .../CMakeFiles/3.21.1/CMakeCCompiler.cmake | 80 ++ .../3.21.1/CMakeDetermineCompilerABI_C.bin | Bin 0 -> 8360 bytes .../CMakeFiles/3.21.1/CMakeSystem.cmake | 15 + .../3.21.1/CompilerIdC/CMakeCCompilerId.c | 807 +++++++++++++ .../CMakeFiles/3.21.1/CompilerIdC/a.out | Bin 0 -> 8408 bytes .../CMakeFiles/CMakeOutput.log | 207 ++++ .../CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o | Bin 0 -> 6680 bytes .../CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o | Bin 0 -> 5728 bytes .../Praktikum1.dir/P1_helloworld.c.o | Bin 0 -> 6048 bytes .../CMakeFiles/TargetDirectories.txt | 3 + .../CMakeFiles/clion-environment.txt | 3 + .../CMakeFiles/clion-log.txt | 10 + .../CMakeFiles/cmake.check_cache | 1 + .../cmake-build-debug/CMakeFiles/rules.ninja | 64 ++ .../Testing/Temporary/LastTest.log | 3 + .../cmake-build-debug/build.ninja | 161 +++ .../cmake-build-debug/cmake_install.cmake | 54 + P01_Erste_Schritte_mit_C/p1_aufgabe3 | Bin 0 -> 8408 bytes P01_Erste_Schritte_mit_C/p1_aufgabe4 | Bin 0 -> 8408 bytes P01_Erste_Schritte_mit_C/p1_helloworld | Bin 0 -> 8312 bytes P02_Funktionen_Datentyp_enum/P2_aufgabe1 | Bin 0 -> 8520 bytes P02_Funktionen_Datentyp_enum/P2_aufgabe1.c | 108 ++ P02_Funktionen_Datentyp_enum/P2_aufgabe2 | Bin 0 -> 12936 bytes P02_Funktionen_Datentyp_enum/P2_aufgabe2.c | 264 +++++ P03_Bit_Operation_struct_typedef/P3_aufgabe21 | Bin 0 -> 12984 bytes .../P3_aufgabe21.c | 143 +++ P03_Bit_Operation_struct_typedef/P3_aufgabe22 | Bin 0 -> 12712 bytes .../P3_aufgabe22.c | 80 ++ P03_Bit_Operation_struct_typedef/P3_uebung1 | Bin 0 -> 8304 bytes P03_Bit_Operation_struct_typedef/P3_uebung1.c | 32 + P03_Bit_Operation_struct_typedef/P3_uebung2 | Bin 0 -> 8304 bytes P03_Bit_Operation_struct_typedef/P3_uebung2.c | 18 + P03_Bit_Operation_struct_typedef/P3_uebung3 | Bin 0 -> 8360 bytes P03_Bit_Operation_struct_typedef/P3_uebung3.c | 20 + P03_Bit_Operation_struct_typedef/P3_uebung4 | Bin 0 -> 8304 bytes P03_Bit_Operation_struct_typedef/P3_uebung4.c | 23 + 54 files changed, 4251 insertions(+) create mode 100644 P01_Erste_Schritte_mit_C/CMakeLists.txt create mode 100644 P01_Erste_Schritte_mit_C/P1_aufgabe3.c create mode 100644 P01_Erste_Schritte_mit_C/P1_aufgabe4.c create mode 100644 P01_Erste_Schritte_mit_C/P1_helloworld.c create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cache-v2 create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/codemodel-v2 create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/toolchains-v1 create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cache-v2-93491442d4d99a0b362c.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-66e1ca6687393525395c.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-77e324d46c225fcf6c5f.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/index-2022-03-02T07-42-57-0976.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/target-Praktikum1-Debug-62f97d605090902f9b35.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-cd8c58e1522147f815df.json create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_deps create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_log create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeCache.txt create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake create mode 100755 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c create mode 100755 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.out create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/CMakeOutput.log create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_helloworld.c.o create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/TargetDirectories.txt create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-environment.txt create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-log.txt create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/cmake.check_cache create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/rules.ninja create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/Testing/Temporary/LastTest.log create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/build.ninja create mode 100644 P01_Erste_Schritte_mit_C/cmake-build-debug/cmake_install.cmake create mode 100755 P01_Erste_Schritte_mit_C/p1_aufgabe3 create mode 100755 P01_Erste_Schritte_mit_C/p1_aufgabe4 create mode 100755 P01_Erste_Schritte_mit_C/p1_helloworld create mode 100755 P02_Funktionen_Datentyp_enum/P2_aufgabe1 create mode 100644 P02_Funktionen_Datentyp_enum/P2_aufgabe1.c create mode 100755 P02_Funktionen_Datentyp_enum/P2_aufgabe2 create mode 100644 P02_Funktionen_Datentyp_enum/P2_aufgabe2.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_aufgabe21 create mode 100644 P03_Bit_Operation_struct_typedef/P3_aufgabe21.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_aufgabe22 create mode 100644 P03_Bit_Operation_struct_typedef/P3_aufgabe22.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_uebung1 create mode 100644 P03_Bit_Operation_struct_typedef/P3_uebung1.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_uebung2 create mode 100644 P03_Bit_Operation_struct_typedef/P3_uebung2.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_uebung3 create mode 100644 P03_Bit_Operation_struct_typedef/P3_uebung3.c create mode 100755 P03_Bit_Operation_struct_typedef/P3_uebung4 create mode 100644 P03_Bit_Operation_struct_typedef/P3_uebung4.c diff --git a/P01_Erste_Schritte_mit_C/CMakeLists.txt b/P01_Erste_Schritte_mit_C/CMakeLists.txt new file mode 100644 index 0000000..cf585eb --- /dev/null +++ b/P01_Erste_Schritte_mit_C/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.21) +project(Praktikum1 C) + +set(CMAKE_C_STANDARD 11) + +add_executable(Praktikum1 + P1_aufgabe3.c + P1_aufgabe4.c + P1_helloworld.c) diff --git a/P01_Erste_Schritte_mit_C/P1_aufgabe3.c b/P01_Erste_Schritte_mit_C/P1_aufgabe3.c new file mode 100644 index 0000000..918162a --- /dev/null +++ b/P01_Erste_Schritte_mit_C/P1_aufgabe3.c @@ -0,0 +1,21 @@ +#include +#include +#define NUM_ROWS 5 + +int main(void) { + int value = 0; + int row = 0; + double umrechnungsfaktor = 0.0; + + (void)printf("Enter conversion rate (1.00 BTC -> CHF): "); + scanf("%lf", &umrechnungsfaktor); + + for(row = 1; row <= NUM_ROWS; row += 1) { + value += 200; + (void)printf("%d CHF <--> %f BTC \n", value, value / umrechnungsfaktor); + } + + return EXIT_SUCCESS; + + +} diff --git a/P01_Erste_Schritte_mit_C/P1_aufgabe4.c b/P01_Erste_Schritte_mit_C/P1_aufgabe4.c new file mode 100644 index 0000000..7245a17 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/P1_aufgabe4.c @@ -0,0 +1,21 @@ +#include +#include + +int main(void) { + int words = 0; + (void)printf("Enter your Text: "); + + while(getchar() != "\n") { + words ++; + + } + + (void)printf(%d, words); + //scanf("%lf", &Text); + + + + return EXIT_SUCCESS; + + +} diff --git a/P01_Erste_Schritte_mit_C/P1_helloworld.c b/P01_Erste_Schritte_mit_C/P1_helloworld.c new file mode 100644 index 0000000..8e2ac46 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/P1_helloworld.c @@ -0,0 +1,7 @@ +#include +#include + +int main(void) { +(void)printf("Hello World in C\n"); +return EXIT_SUCCESS; +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cache-v2 b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cache-v2 new file mode 100644 index 0000000..e69de29 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/cmakeFiles-v1 new file mode 100644 index 0000000..e69de29 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/codemodel-v2 b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/codemodel-v2 new file mode 100644 index 0000000..e69de29 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/toolchains-v1 b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/query/toolchains-v1 new file mode 100644 index 0000000..e69de29 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cache-v2-93491442d4d99a0b362c.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cache-v2-93491442d4d99a0b362c.json new file mode 100644 index 0000000..b3f58aa --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cache-v2-93491442d4d99a0b362c.json @@ -0,0 +1,1019 @@ +{ + "entries" : + [ + { + "name" : "CMAKE_ADDR2LINE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/addr2line" + }, + { + "name" : "CMAKE_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ar" + }, + { + "name" : "CMAKE_BUILD_TYPE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel ..." + } + ], + "type" : "STRING", + "value" : "Debug" + }, + { + "name" : "CMAKE_CACHEFILE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "This is the directory where this CMakeCache.txt was created" + } + ], + "type" : "INTERNAL", + "value" : "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug" + }, + { + "name" : "CMAKE_CACHE_MAJOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Major version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "3" + }, + { + "name" : "CMAKE_CACHE_MINOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Minor version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "21" + }, + { + "name" : "CMAKE_CACHE_PATCH_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Patch version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake executable." + } + ], + "type" : "INTERNAL", + "value" : "/snap/clion/180/bin/cmake/linux/bin/cmake" + }, + { + "name" : "CMAKE_CPACK_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to cpack program executable." + } + ], + "type" : "INTERNAL", + "value" : "/snap/clion/180/bin/cmake/linux/bin/cpack" + }, + { + "name" : "CMAKE_CTEST_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to ctest program executable." + } + ], + "type" : "INTERNAL", + "value" : "/snap/clion/180/bin/cmake/linux/bin/ctest" + }, + { + "name" : "CMAKE_C_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "C compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/cc" + }, + { + "name" : "CMAKE_C_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ar-7" + }, + { + "name" : "CMAKE_C_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ranlib-7" + }, + { + "name" : "CMAKE_C_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_C_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_C_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_DLLTOOL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "CMAKE_DLLTOOL-NOTFOUND" + }, + { + "name" : "CMAKE_EXECUTABLE_FORMAT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Executable file format" + } + ], + "type" : "INTERNAL", + "value" : "ELF" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Enable/Disable output of compile commands during generation." + } + ], + "type" : "BOOL", + "value" : "" + }, + { + "name" : "CMAKE_EXTRA_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of external makefile project generator." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator." + } + ], + "type" : "INTERNAL", + "value" : "Ninja" + }, + { + "name" : "CMAKE_GENERATOR_INSTANCE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Generator instance identifier." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_PLATFORM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator platform." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_TOOLSET", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator toolset." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_HOME_DIRECTORY", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Source directory with the top level CMakeLists.txt file for this project" + } + ], + "type" : "INTERNAL", + "value" : "/home/vagrant/snp/Praktikum/Praktikum1" + }, + { + "name" : "CMAKE_INSTALL_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install path prefix, prepended onto install directories." + } + ], + "type" : "PATH", + "value" : "/usr/local" + }, + { + "name" : "CMAKE_INSTALL_SO_NO_EXE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install .so files without execute permission." + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_LINKER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ld" + }, + { + "name" : "CMAKE_MAKE_PROGRAM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "UNINITIALIZED", + "value" : "/snap/clion/180/bin/ninja/linux/ninja" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_NM", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/nm" + }, + { + "name" : "CMAKE_NUMBER_OF_MAKEFILES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "number of local generators" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_OBJCOPY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objcopy" + }, + { + "name" : "CMAKE_OBJDUMP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objdump" + }, + { + "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Platform information initialized" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_PROJECT_DESCRIPTION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_HOMEPAGE_URL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "Praktikum1" + }, + { + "name" : "CMAKE_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ranlib" + }, + { + "name" : "CMAKE_READELF", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/readelf" + }, + { + "name" : "CMAKE_ROOT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake installation." + } + ], + "type" : "INTERNAL", + "value" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SKIP_INSTALL_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_SKIP_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when using shared libraries." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STRIP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/strip" + }, + { + "name" : "CMAKE_UNAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "uname command" + } + ], + "type" : "INTERNAL", + "value" : "/bin/uname" + }, + { + "name" : "CMAKE_VERBOSE_MAKEFILE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." + } + ], + "type" : "BOOL", + "value" : "FALSE" + }, + { + "name" : "Praktikum1_BINARY_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug" + }, + { + "name" : "Praktikum1_IS_TOP_LEVEL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "ON" + }, + { + "name" : "Praktikum1_SOURCE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/vagrant/snp/Praktikum/Praktikum1" + } + ], + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-66e1ca6687393525395c.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-66e1ca6687393525395c.json new file mode 100644 index 0000000..d5f6666 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/cmakeFiles-v1-66e1ca6687393525395c.json @@ -0,0 +1,401 @@ +{ + "inputs" : + [ + { + "path" : "CMakeLists.txt" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystem.cmake.in" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInitialize.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCompilerIdDetection.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ADSP-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMCC-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMClang-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/AppleClang-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Borland-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Cray-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GHS-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/HP-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IAR-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Intel-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/MSVC-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVHPC-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PGI-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PathScale-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ROCMClang-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SCO-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TI-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Watcom-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XL-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XLClang-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/zOS-C-DetermineCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeFindBinUtils.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-FindBinUtils.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompiler.cmake.in" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeGenericSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeInitializeConfigs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/UnixPaths.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeLanguageInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCommonLanguageInclude.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCompilerCommon.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitIncludeInfo.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitLinkInfo.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseLibraryArchitecture.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCompilerCommon.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompilerABI.c" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompileFeatures.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Internal/FeatureTesting.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompiler.cmake.in" + }, + { + "isGenerated" : true, + "path" : "cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake" + } + ], + "kind" : "cmakeFiles", + "paths" : + { + "build" : "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug", + "source" : "/home/vagrant/snp/Praktikum/Praktikum1" + }, + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-77e324d46c225fcf6c5f.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-77e324d46c225fcf6c5f.json new file mode 100644 index 0000000..1182906 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-77e324d46c225fcf6c5f.json @@ -0,0 +1,60 @@ +{ + "configurations" : + [ + { + "directories" : + [ + { + "build" : ".", + "jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json", + "minimumCMakeVersion" : + { + "string" : "3.21" + }, + "projectIndex" : 0, + "source" : ".", + "targetIndexes" : + [ + 0 + ] + } + ], + "name" : "Debug", + "projects" : + [ + { + "directoryIndexes" : + [ + 0 + ], + "name" : "Praktikum1", + "targetIndexes" : + [ + 0 + ] + } + ], + "targets" : + [ + { + "directoryIndex" : 0, + "id" : "Praktikum1::@6890427a1f51a3e7e1df", + "jsonFile" : "target-Praktikum1-Debug-62f97d605090902f9b35.json", + "name" : "Praktikum1", + "projectIndex" : 0 + } + ] + } + ], + "kind" : "codemodel", + "paths" : + { + "build" : "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug", + "source" : "/home/vagrant/snp/Praktikum/Praktikum1" + }, + "version" : + { + "major" : 2, + "minor" : 3 + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json new file mode 100644 index 0000000..3a67af9 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json @@ -0,0 +1,14 @@ +{ + "backtraceGraph" : + { + "commands" : [], + "files" : [], + "nodes" : [] + }, + "installers" : [], + "paths" : + { + "build" : ".", + "source" : "." + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/index-2022-03-02T07-42-57-0976.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/index-2022-03-02T07-42-57-0976.json new file mode 100644 index 0000000..af003cf --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/index-2022-03-02T07-42-57-0976.json @@ -0,0 +1,108 @@ +{ + "cmake" : + { + "generator" : + { + "multiConfig" : false, + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "/snap/clion/180/bin/cmake/linux/bin/cmake", + "cpack" : "/snap/clion/180/bin/cmake/linux/bin/cpack", + "ctest" : "/snap/clion/180/bin/cmake/linux/bin/ctest", + "root" : "/snap/clion/180/bin/cmake/linux/share/cmake-3.21" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 21, + "patch" : 1, + "string" : "3.21.1", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-77e324d46c225fcf6c5f.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 3 + } + }, + { + "jsonFile" : "cache-v2-93491442d4d99a0b362c.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-66e1ca6687393525395c.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + { + "jsonFile" : "toolchains-v1-cd8c58e1522147f815df.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "cache-v2" : + { + "jsonFile" : "cache-v2-93491442d4d99a0b362c.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + "cmakeFiles-v1" : + { + "jsonFile" : "cmakeFiles-v1-66e1ca6687393525395c.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + }, + "codemodel-v2" : + { + "jsonFile" : "codemodel-v2-77e324d46c225fcf6c5f.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 3 + } + }, + "toolchains-v1" : + { + "jsonFile" : "toolchains-v1-cd8c58e1522147f815df.json", + "kind" : "toolchains", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/target-Praktikum1-Debug-62f97d605090902f9b35.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/target-Praktikum1-Debug-62f97d605090902f9b35.json new file mode 100644 index 0000000..3ce4154 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/target-Praktikum1-Debug-62f97d605090902f9b35.json @@ -0,0 +1,118 @@ +{ + "artifacts" : + [ + { + "path" : "Praktikum1" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 6, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + }, + { + "fragment" : "-std=gnu11" + } + ], + "language" : "C", + "languageStandard" : + { + "backtraces" : + [ + 1 + ], + "standard" : "11" + }, + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "id" : "Praktikum1::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "", + "role" : "flags" + } + ], + "language" : "C" + }, + "name" : "Praktikum1", + "nameOnDisk" : "Praktikum1", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "P1_aufgabe3.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "P1_aufgabe4.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "P1_helloworld.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-cd8c58e1522147f815df.json b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-cd8c58e1522147f815df.json new file mode 100644 index 0000000..aa3811b --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.cmake/api/v1/reply/toolchains-v1-cd8c58e1522147f815df.json @@ -0,0 +1,53 @@ +{ + "kind" : "toolchains", + "toolchains" : + [ + { + "compiler" : + { + "id" : "GNU", + "implicit" : + { + "includeDirectories" : + [ + "/usr/lib/gcc/x86_64-linux-gnu/7/include", + "/usr/local/include", + "/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed", + "/usr/include/x86_64-linux-gnu", + "/usr/include" + ], + "linkDirectories" : + [ + "/usr/lib/gcc/x86_64-linux-gnu/7", + "/usr/lib/x86_64-linux-gnu", + "/usr/lib", + "/lib/x86_64-linux-gnu", + "/lib" + ], + "linkFrameworkDirectories" : [], + "linkLibraries" : + [ + "gcc", + "gcc_s", + "c", + "gcc", + "gcc_s" + ] + }, + "path" : "/usr/bin/cc", + "version" : "7.5.0" + }, + "language" : "C", + "sourceFileExtensions" : + [ + "c", + "m" + ] + } + ], + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_deps b/P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_deps new file mode 100644 index 0000000000000000000000000000000000000000..8bd738a919a66bd3a1979b284f85cdb6df445693 GIT binary patch literal 3668 zcmd^>S+5jD7>0{Q5L7@}-Qcjv+S3jk2QExBA!1A*;SZ3ern+XjI6d7%RrNUxSHwHR zFW`dT;s5& z2_f%8o3_#czFEXv`P(EN&|)BKluMzI{_hOM`yS;jn`BkBnAB!sUB9666PiZQ(sr?`Lcb=?W<5XvoEBxUeem9;xHeXkL z)lxpgw1yz$Uoib+GIk~y87i@dTkftq7pFbn0dO(5qa8LvKWLkj8dzetCu(s>zutatJlX&Zzaer5cpU zG=D$;?8N1M7r}$z9COjsk;HANbAJ2;*41;1dMcv0rFrcVKf3e9-X4`KGG6@vzU#T9 zxNb6P_v3r_wdHRL&mOCm{SNFQLiQpO+ef#zvo;LyCCqk1TbN77-ngUIQUWTSY z)1glzLGz&n(3{X((A$t%*SpX{Xc5#0ErymrOQB`Z za_Bv11+)@c1+9kGKx-inDnUME&Zjc8uKj(~J3Gy4bz0@??Twv~Z-;$!zO#1_;9e&xwzZ09VC?!~g&Q literal 0 HcmV?d00001 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_log b/P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_log new file mode 100644 index 0000000..660fd52 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/.ninja_log @@ -0,0 +1,4 @@ +# ninja log v5 +0 140 1646206998835917296 CMakeFiles/Praktikum1.dir/P1_helloworld.c.o c8ed882a4ff8153b +0 143 1646206998839919295 CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o 2fad6a5767b0faef +0 39 1646207060726847295 CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o 689bdfb5e3085400 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeCache.txt b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeCache.txt new file mode 100644 index 0000000..bfab0fa --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeCache.txt @@ -0,0 +1,320 @@ +# This is the CMakeCache file. +# For build in directory: /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug +# It was generated by CMake: /snap/clion/180/bin/cmake/linux/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//Choose the type of build, options are: None Debug Release RelWithDebInfo +// MinSizeRel ... +CMAKE_BUILD_TYPE:STRING=Debug + +//C compiler +CMAKE_C_COMPILER:FILEPATH=/usr/bin/cc + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-7 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-7 + +//Flags used by the C compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the C compiler during DEBUG builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the C compiler during MINSIZEREL builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the C compiler during RELEASE builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the C compiler during RELWITHDEBINFO builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Enable/Disable output of compile commands during generation. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL= + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/usr/bin/ld + +//No help, variable specified on the command line. +CMAKE_MAKE_PROGRAM:UNINITIALIZED=/snap/clion/180/bin/ninja/linux/ninja + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=Praktikum1 + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +Praktikum1_BINARY_DIR:STATIC=/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug + +//Value Computed by CMake +Praktikum1_IS_TOP_LEVEL:STATIC=ON + +//Value Computed by CMake +Praktikum1_SOURCE_DIR:STATIC=/home/vagrant/snp/Praktikum/Praktikum1 + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=21 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=1 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/snap/clion/180/bin/cmake/linux/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/snap/clion/180/bin/cmake/linux/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/snap/clion/180/bin/cmake/linux/bin/ctest +//ADVANCED property for variable: CMAKE_C_COMPILER +CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS +CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Ninja +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/vagrant/snp/Praktikum/Praktikum1 +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/snap/clion/180/bin/cmake/linux/share/cmake-3.21 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 + diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake new file mode 100644 index 0000000..6072004 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeCCompiler.cmake @@ -0,0 +1,80 @@ +set(CMAKE_C_COMPILER "/usr/bin/cc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "GNU") +set(CMAKE_C_COMPILER_VERSION "7.5.0") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") +set(CMAKE_C17_COMPILE_FEATURES "") +set(CMAKE_C23_COMPILE_FEATURES "") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") +set(CMAKE_C_SIMULATE_VERSION "") + + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-7") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-7") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCC 1) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_BYTE_ORDER "LITTLE_ENDIAN") +set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include") +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeDetermineCompilerABI_C.bin new file mode 100755 index 0000000000000000000000000000000000000000..66cf213247ebb72c92c54baa46e59d1ce5b28a5d GIT binary patch literal 8360 zcmeHMeQZ=&6~EJ=w0v|rbb;*xktad|YKNBPqp;x4^ouv99|-Nb8z_&N&TBjFbcW2l z(U!O?3A-C-u?vZbA^V4a7){VaSezrz7 z7tp;nEI=Xm1(K6?s{a2*f{Njw8t+kl2`c+R)$59_sbqZT_N}QzQ!1Ixk2j6C?rhq* zJ(SCYw#oNq{mi?+cR-HB^9|Rs%`55082A6+#_=20%=smUe%5jCdjo&I*Y{T4k60Ez zs($3sN}O5+?lpupRKWWQ(<+ckXF*F`ChLh=7DtW@BCU+S* zE0(p4u~;%K_IF3y+Kp|YZJ`~)i1zmw2{UVsBy*OT?eA$%WzuGUES_S?k+Do#Ng6h5 zMMi0l?OpiTN8V%qVV?7Al1q37KC5iUy2pB*Q=4jD?F--+6kZ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axClrK`QhQvkSM3O3~S67;sjTYl3R(4 zF_Ox}V<{tHWwJRVmLC^GnX%(3(=rpGT|0NTR%YVVTGEJRvoX4Lr>*RS7|zDVOe2vW z8=D{zN6R2i%f;H>6MNBYZ>M3BDKi^si;{iG^l-)~-_ebDa)cBolCkuHu2j;pQl_hy zF7GsG*TG1Syw)3(sB;gS5Jtxfy^)@1ySqnb1PP)PsL`n_4SL5xVeIejYm0OneO+CL zI{S_ONE>Agh*9PdhjMx8fDg?a$~SUkErekvVpa?~%DKpJ*p-Yln9EK$60bY^Xe4qO zV>FgdaAq>vM_h?y+Q{cjdcU%1>~Lzwb2+6(W;_jp5}Ta#VDE6ovtk<4oj7%yCPKN1 zF)J1)YGrLYidr&FnbYGUl+IXYh^Dm3ijAn&NID;i=aZDCP9{W%Tcfeus0bw{(xlI( zR@UzMvYE{#Gig`DpuVh`im`wQ$(IWqPg#N=p^*$#EOVTmyd;S;BfT6lN7W)6O^`fV zw!FO>Z3)y#d2B2>MCR}$g~)j#L_1-ORyX$9$E6&n(^f5IyAYRwB2LFR%lu*7aKpt@@DDGXbAAF!Ml04r%&_=up zs>xC9yrI*61&b3@VV^>NUR_8)rxYW`_rCut)X#d=XQ~wcA`X61$%A<3?{$wn;$%>n zV}vkKv_a2!yyXN&&`&zHfWv5kG+99tnQ$`+rx-mxfVs z0OEl+AgHM3Y1?sQdHxXZgYNb4d&mDN_4E5OYxu@0OLRdLRT#tgh`WMH(97?c4lzfvj5X8GSs=f~2~r*M zPKvpAvWC_8jmmMHziFZ$?7{iR>l?N^<)5dJoXY`^a*S*Da_n1K{=6FC9vBt%%KryQ C&TQZS literal 0 HcmV?d00001 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake new file mode 100644 index 0000000..33105a1 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CMakeSystem.cmake @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-4.15.0-135-generic") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "4.15.0-135-generic") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Linux-4.15.0-135-generic") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "4.15.0-135-generic") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c new file mode 100644 index 0000000..051f748 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/CMakeCCompilerId.c @@ -0,0 +1,807 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + +#if !defined(__has_include) +/* If the compiler does not have __has_include, pretend the answer is + always no. */ +# define __has_include(x) 0 +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later, + except that a few beta releases use the old format with V=2021. */ +# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111 +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# else +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE) + /* The third version component from --version is an update index, + but no macro is provided for it. */ +# define COMPILER_VERSION_PATCH DEC(0) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER) +# define COMPILER_ID "IntelLLVM" +#if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +#endif +#if defined(__GNUC__) +# define SIMULATE_ID "GNU" +#endif +/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and + * later. Look for 6 digit vs. 8 digit version number to decide encoding. + * VVVV is no smaller than the current year when a version is released. + */ +#if __INTEL_LLVM_COMPILER < 1000000L +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10) +#else +# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000) +# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100) +#endif +#if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +#endif +#if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +#elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +#endif +#if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +#endif +#if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +#endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__NVCOMPILER) +# define COMPILER_ID "NVHPC" +# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__) +# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__) +# if defined(__NVCOMPILER_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__) +# endif + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__CLANG_FUJITSU) +# define COMPILER_ID "FujitsuClang" +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) +# define COMPILER_VERSION_INTERNAL_STR __clang_version__ + + +#elif defined(__FUJITSU) +# define COMPILER_ID "Fujitsu" +# if defined(__FCC_version__) +# define COMPILER_VERSION __FCC_version__ +# elif defined(__FCC_major__) +# define COMPILER_VERSION_MAJOR DEC(__FCC_major__) +# define COMPILER_VERSION_MINOR DEC(__FCC_minor__) +# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__) +# endif +# if defined(__fcc_version) +# define COMPILER_VERSION_INTERNAL DEC(__fcc_version) +# elif defined(__FCC_VERSION) +# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION) +# endif + + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) && __has_include() +# define COMPILER_ID "ROCMClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# elif defined(__clang__) +# define SIMULATE_ID "Clang" +# elif defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif +# if defined(__clang__) && __has_include() +# include +# define COMPILER_VERSION_MAJOR DEC(HIP_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(HIP_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(HIP_VERSION_PATCH) +# endif + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__MSYS__) +# define PLATFORM_ID "MSYS" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# elif defined(__VXWORKS__) +# define PLATFORM_ID "VxWorks" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_ARM64EC) +# define ARCHITECTURE_ID "ARM64EC" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# elif defined(__ICCSTM8__) +# define ARCHITECTURE_ID "STM8" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__TI_COMPILER_VERSION__) +# if defined(__TI_ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__MSP430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__TMS320C28XX__) +# define ARCHITECTURE_ID "TMS320C28x" + +# elif defined(__TMS320C6X__) || defined(_TMS320C6X) +# define ARCHITECTURE_ID "TMS320C6x" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number. */ +#ifdef COMPILER_VERSION +char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]"; + +/* Construct a string literal encoding the version number components. */ +#elif defined(COMPILER_VERSION_MAJOR) +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#elif defined(COMPILER_VERSION_INTERNAL_STR) +char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]"; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + +#if !defined(__STDC__) && !defined(__clang__) +# if defined(_MSC_VER) || defined(__ibmxl__) || defined(__IBMC__) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ > 201710L +# define C_DIALECT "23" +#elif __STDC_VERSION__ >= 201710L +# define C_DIALECT "17" +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXT_COMPUTE_LINUX_TARGET) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.out b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.out new file mode 100755 index 0000000000000000000000000000000000000000..11b7df452ad29dfd7bf1d9b188856c9e33182403 GIT binary patch literal 8408 zcmeHMZ;Vt|6~D8?!t!Tl2MTn7M#f4FRCd^=A*#)EvO{L4@?ab`%r1OW& zywQb-l59&d&~1tO0b?|pm>6Tf=!aVUV3zPl<0puTMQsyeKv$)@wH3D&7|*%y{AS;K zJ7|q2e&HrF=ic8v=iKwoJNM4HXTI3o*HaS+D72vZq~g)OS_f&DiEFE*L!@1`sfG0Y zh+3oO(|Df7ocVT#(5%yDL^Wug;6b7+*H+^Ie)@>;fx<$jVw!Mx$rX**^9-;uB|?3eZK=a;b94=RtVHla$^1Zn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dz!+ZQP@h}VIagUi~ zqo}p(@7XWNgWjYmw|pi4lm(h+MRgByfd51t#;`u}vu2U^^ZQo<$zxZd+PeP9pHKaOwM?v_7GsXn)UpK`40%yQ0HUH&aufbSpf=9m8` D$)0nc literal 0 HcmV?d00001 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/CMakeOutput.log b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/CMakeOutput.log new file mode 100644 index 0000000..75c47d3 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/CMakeOutput.log @@ -0,0 +1,207 @@ +The system is: Linux - 4.15.0-135-generic - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /usr/bin/cc +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is GNU, found in "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/3.21.1/CompilerIdC/a.out" + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/CMakeTmp + +Run Build Command(s):/snap/clion/180/bin/ninja/linux/ninja cmTC_6b778 && [1/2] Building C object CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o +Using built-in specs. +COLLECT_GCC=/usr/bin/cc +OFFLOAD_TARGET_NAMES=nvptx-none +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch x86_64-linux-gnu /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccuVA1bk.s +GNU C11 (Ubuntu 7.5.0-3ubuntu1~18.04) version 7.5.0 (x86_64-linux-gnu) + compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include" +#include "..." search starts here: +#include <...> search starts here: + /usr/lib/gcc/x86_64-linux-gnu/7/include + /usr/local/include + /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed + /usr/include/x86_64-linux-gnu + /usr/include +End of search list. +GNU C11 (Ubuntu 7.5.0-3ubuntu1~18.04) version 7.5.0 (x86_64-linux-gnu) + compiled by GNU C version 7.5.0, GMP version 6.1.2, MPFR version 4.0.1, MPC version 1.1.0, isl version isl-0.19-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +Compiler executable checksum: b62ed4a2880cd4159476ea8293b72fa8 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' + as -v --64 -o CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o /tmp/ccuVA1bk.s +GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' +[2/2] Linking C executable cmTC_6b778 +Using built-in specs. +COLLECT_GCC=/usr/bin/cc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu +Thread model: posix +gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_6b778' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccTgPBZk.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_6b778 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o +COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_6b778' '-mtune=generic' '-march=x86-64' + + + +Parsed C implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/usr/lib/gcc/x86_64-linux-gnu/7/include] + add: [/usr/local/include] + add: [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed] + add: [/usr/include/x86_64-linux-gnu] + add: [/usr/include] + end of search list found + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/7/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/7/include] + collapse include dir [/usr/local/include] ==> [/usr/local/include] + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed] ==> [/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed] + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] + collapse include dir [/usr/include] ==> [/usr/include] + implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/7/include;/usr/local/include;/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed;/usr/include/x86_64-linux-gnu;/usr/include] + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/snap/clion/180/bin/ninja/linux/ninja cmTC_6b778 && [1/2] Building C object CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/cc] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) ] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/cc1 -quiet -v -imultiarch x86_64-linux-gnu /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o -version -fstack-protector-strong -Wformat -Wformat-security -o /tmp/ccuVA1bk.s] + ignore line: [GNU C11 (Ubuntu 7.5.0-3ubuntu1~18.04) version 7.5.0 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 7.5.0 GMP version 6.1.2 MPFR version 4.0.1 MPC version 1.1.0 isl version isl-0.19-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/7/../../../../x86_64-linux-gnu/include"] + ignore line: [#include "..." search starts here:] + ignore line: [#include <...> search starts here:] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/include] + ignore line: [ /usr/local/include] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/7/include-fixed] + ignore line: [ /usr/include/x86_64-linux-gnu] + ignore line: [ /usr/include] + ignore line: [End of search list.] + ignore line: [GNU C11 (Ubuntu 7.5.0-3ubuntu1~18.04) version 7.5.0 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 7.5.0 GMP version 6.1.2 MPFR version 4.0.1 MPC version 1.1.0 isl version isl-0.19-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [Compiler executable checksum: b62ed4a2880cd4159476ea8293b72fa8] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [ as -v --64 -o CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o /tmp/ccuVA1bk.s] + ignore line: [GNU assembler version 2.30 (x86_64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.30] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [[2/2] Linking C executable cmTC_6b778] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/cc] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu] + ignore line: [Thread model: posix] + ignore line: [gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/7/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/7/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_6b778' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/lib/gcc/x86_64-linux-gnu/7/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper -plugin-opt=-fresolution=/tmp/ccTgPBZk.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -z now -z relro -o cmTC_6b778 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/7 -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/7/../../.. CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/7/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/7/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/ccTgPBZk.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-pie] ==> ignore + arg [-znow] ==> ignore + arg [-zrelro] ==> ignore + arg [-o] ==> ignore + arg [cmTC_6b778] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/7] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/7/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../..] + arg [CMakeFiles/cmTC_6b778.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [-lc] ==> lib [c] + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o] + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o] ==> [/usr/lib/x86_64-linux-gnu/Scrt1.o] + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o] ==> [/usr/lib/x86_64-linux-gnu/crti.o] + collapse obj [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crtn.o] ==> [/usr/lib/x86_64-linux-gnu/crtn.o] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7] ==> [/usr/lib/gcc/x86_64-linux-gnu/7] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/7/../../..] ==> [/usr/lib] + implicit libs: [gcc;gcc_s;c;gcc;gcc_s] + implicit objs: [/usr/lib/x86_64-linux-gnu/Scrt1.o;/usr/lib/x86_64-linux-gnu/crti.o;/usr/lib/gcc/x86_64-linux-gnu/7/crtbeginS.o;/usr/lib/gcc/x86_64-linux-gnu/7/crtendS.o;/usr/lib/x86_64-linux-gnu/crtn.o] + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/7;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] + implicit fwks: [] + + diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o new file mode 100644 index 0000000000000000000000000000000000000000..154b50349d54c1795c60b76b16c69e3ad273633b GIT binary patch literal 6680 zcmbVQZH!da89sMrc6MOd-B}i4acO#~E&_38c3^?!(}m3}vq%LMB8|%B&diKT#;9q~L~ClAklG*imzbK0u^+#hV*j<(mPA_Uwl*YC>HD7Zo}Jml zkQh%g_q@+@-mmkXbMHNOzMb1W7SS{&o5r@W29hje=NC2P5iX9fTi7DDKY#p_{Lzbg zDSsk1uo4FH$8%S*XW!3VK&AI{7qKgMUphO}-IKeVKe-k0+j!v$`IA5%|Md+#7-ANm zX1<%da1Ml-?$x;qGu_FrU!Lhc`0k0^g@z64abHKl=I9d_+m3w5{pU~Yzf#JtUBt5r z+PKOGzsfm*<>^J&nX)|Jb{*X_1500-O%D$0JNAw0scrgber(kyoefmWY@mcl$F?N} zL)Zq&TyZ{oILcTIf-{!j6V5dmTxx-Sn zNs3awf+ESU;&f>lUM~QhWbwpu;NpoF0WH9V#I!qc&mfDd$=RnQ+snFes2eY_yENp5 zJklg@=W;ypBT#Dp8K@*tz3mwcFT`UF@%XG5zqJ5r3*G{)OYrMq?H@~nct0|P86p17e5LXaA z%VD|;)7o82Mb>vL9q+}djPyOf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=mc>k3c8i!p|c+Q>q&cCs)|Yyg_V}?R+_b1Wpi=C zUYIYp{2A2p!Rl~zEitBZ+VXff= z<5OKP0ujzWi0yZ@2pUR+<1jiE*2 zQ_xKsY7DmBb?W?VGzUaos?(xkMZ^S9_?@Y&F5(wn2IS4Hgw7@XctxJ}g7nb*xh*wbpu^d_M; zyUvSRLzVBIJuaHK`RLI@rF|#dB#0Be>B|Qag{t>f7p=MZt2L|6nTu5or^r3G3%NNV zXU9f!55Y5h8SwbSqRylvg^AOtqvP2XP|)|Bp9^b*6{joZvL4laSk_@zfYn z(sYgDU1_1NG@J%6>aH||S8v%N{P0saEygdCzeRkD@xLVgF2+w1|6#_f zdl7J-WBm1`{}smL6%Wfdb<>;gk4gV2#;b1v;GSW;S&!!#pQT6P1;&4t@b4M_8;X05 z@oytP=NW&F^1p*xvrir)y@SON_st@Vgjq#&-wf|4g{f__KuX zV*Gaq-^=*t34fCDaNSVl4C61RynUVVKOp=h<9|VUc!u#mBmX~T{I^K|SB(E2@qc3c zU&+rajDLlA^Dvur{0sRRr+&lF5T0fH-Q@Rj#y?BE#rX5YA7cCy#IG>kvzY~Z%!$dTakorD@BK^|b^FU60LalY^}25D zNrM8n-wWONe*ItVt62Rq54S-24zk+y_)OdJco_{3_S?O9wFWW`S|O=ai2hmEsFmJ zg1*9aZRi^o|0fjRE#U*I}{I xxBg!e{+yrzPXdRxcW#es!cq*3`Cm~8^L?a9sQCQR?=bs+(fGe+45{Vz{{b(bV%q=! literal 0 HcmV?d00001 diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_helloworld.c.o b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/Praktikum1.dir/P1_helloworld.c.o new file mode 100644 index 0000000000000000000000000000000000000000..45a44122afc428341cf3e5eda438bfae9a7d9cc3 GIT binary patch literal 6048 zcmbVQU2I%O6`s4hwl}f8UE7W0)P2|#lD3fD^(KyMQk>Ya;>0B)R!Ee9)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 100644 index 0000000..801f6d7 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/TargetDirectories.txt @@ -0,0 +1,3 @@ +/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/rebuild_cache.dir +/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/edit_cache.dir +/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/CMakeFiles/Praktikum1.dir diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-environment.txt b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-environment.txt new file mode 100644 index 0000000..2abf339 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-environment.txt @@ -0,0 +1,3 @@ +ToolSet: 1.0 (local)Options: + +Options:-DCMAKE_MAKE_PROGRAM=/snap/clion/180/bin/ninja/linux/ninja \ No newline at end of file diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-log.txt b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-log.txt new file mode 100644 index 0000000..a0a211e --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/clion-log.txt @@ -0,0 +1,10 @@ +/snap/clion/180/bin/cmake/linux/bin/cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/snap/clion/180/bin/ninja/linux/ninja -G Ninja /home/vagrant/snp/Praktikum/Praktikum1 +-- The C compiler identification is GNU 7.5.0 +-- Detecting C compiler ABI info +-- Detecting C compiler ABI info - done +-- Check for working C compiler: /usr/bin/cc - skipped +-- Detecting C compile features +-- Detecting C compile features - done +-- Configuring done +-- Generating done +-- Build files have been written to: /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/cmake.check_cache b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/cmake.check_cache new file mode 100644 index 0000000..3dccd73 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/cmake.check_cache @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/rules.ninja b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/rules.ninja new file mode 100644 index 0000000..405d492 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/CMakeFiles/rules.ninja @@ -0,0 +1,64 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.21 + +# This file contains all the rules used to get the outputs files +# built from the input files. +# It is included in the main 'build.ninja'. + +# ============================================================================= +# Project: Praktikum1 +# Configurations: Debug +# ============================================================================= +# ============================================================================= + +############################################# +# Rule for running custom commands. + +rule CUSTOM_COMMAND + command = $COMMAND + description = $DESC + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__Praktikum1_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/cc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__Praktikum1_Debug + command = $PRE_LINK && /usr/bin/cc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for re-running cmake. + +rule RERUN_CMAKE + command = /snap/clion/180/bin/cmake/linux/bin/cmake --regenerate-during-build -S/home/vagrant/snp/Praktikum/Praktikum1 -B/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug + description = Re-running CMake... + generator = 1 + + +############################################# +# Rule for cleaning all built files. + +rule CLEAN + command = /snap/clion/180/bin/ninja/linux/ninja $FILE_ARG -t clean $TARGETS + description = Cleaning all built files... + + +############################################# +# Rule for printing all primary targets available. + +rule HELP + command = /snap/clion/180/bin/ninja/linux/ninja -t targets + description = All primary targets available: + diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/Testing/Temporary/LastTest.log b/P01_Erste_Schritte_mit_C/cmake-build-debug/Testing/Temporary/LastTest.log new file mode 100644 index 0000000..27eea99 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/Testing/Temporary/LastTest.log @@ -0,0 +1,3 @@ +Start testing: Mar 02 13:40 CET +---------------------------------------------------------- +End testing: Mar 02 13:40 CET diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/build.ninja b/P01_Erste_Schritte_mit_C/cmake-build-debug/build.ninja new file mode 100644 index 0000000..d42a8a2 --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/build.ninja @@ -0,0 +1,161 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.21 + +# This file contains all the build statements describing the +# compilation DAG. + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# +# Which is the root file. +# ============================================================================= + +# ============================================================================= +# Project: Praktikum1 +# Configurations: Debug +# ============================================================================= + +############################################# +# Minimal version of Ninja required by this file + +ninja_required_version = 1.5 + + +############################################# +# Set configuration variable for custom commands. + +CONFIGURATION = Debug +# ============================================================================= +# Include auxiliary files. + + +############################################# +# Include rules file. + +include CMakeFiles/rules.ninja + +# ============================================================================= + +############################################# +# Logical path to working directory; prefix for absolute paths. + +cmake_ninja_workdir = /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/ + +############################################# +# Utility command for rebuild_cache + +build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug && /snap/clion/180/bin/cmake/linux/bin/cmake --regenerate-during-build -S/home/vagrant/snp/Praktikum/Praktikum1 -B/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build rebuild_cache: phony CMakeFiles/rebuild_cache.util + + +############################################# +# Utility command for edit_cache + +build CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug && /snap/clion/180/bin/cmake/linux/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build edit_cache: phony CMakeFiles/edit_cache.util + +# ============================================================================= +# Object build statements for EXECUTABLE target Praktikum1 + + +############################################# +# Order-only phony target for Praktikum1 + +build cmake_object_order_depends_target_Praktikum1: phony || CMakeFiles/Praktikum1.dir + +build CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o: C_COMPILER__Praktikum1_Debug /home/vagrant/snp/Praktikum/Praktikum1/P1_aufgabe3.c || cmake_object_order_depends_target_Praktikum1 + DEP_FILE = CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o.d + FLAGS = -g -std=gnu11 + OBJECT_DIR = CMakeFiles/Praktikum1.dir + OBJECT_FILE_DIR = CMakeFiles/Praktikum1.dir + TARGET_COMPILE_PDB = CMakeFiles/Praktikum1.dir/ + TARGET_PDB = Praktikum1.pdb + +build CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o: C_COMPILER__Praktikum1_Debug /home/vagrant/snp/Praktikum/Praktikum1/P1_aufgabe4.c || cmake_object_order_depends_target_Praktikum1 + DEP_FILE = CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o.d + FLAGS = -g -std=gnu11 + OBJECT_DIR = CMakeFiles/Praktikum1.dir + OBJECT_FILE_DIR = CMakeFiles/Praktikum1.dir + TARGET_COMPILE_PDB = CMakeFiles/Praktikum1.dir/ + TARGET_PDB = Praktikum1.pdb + +build CMakeFiles/Praktikum1.dir/P1_helloworld.c.o: C_COMPILER__Praktikum1_Debug /home/vagrant/snp/Praktikum/Praktikum1/P1_helloworld.c || cmake_object_order_depends_target_Praktikum1 + DEP_FILE = CMakeFiles/Praktikum1.dir/P1_helloworld.c.o.d + FLAGS = -g -std=gnu11 + OBJECT_DIR = CMakeFiles/Praktikum1.dir + OBJECT_FILE_DIR = CMakeFiles/Praktikum1.dir + TARGET_COMPILE_PDB = CMakeFiles/Praktikum1.dir/ + TARGET_PDB = Praktikum1.pdb + + +# ============================================================================= +# Link build statements for EXECUTABLE target Praktikum1 + + +############################################# +# Link the executable Praktikum1 + +build Praktikum1: C_EXECUTABLE_LINKER__Praktikum1_Debug CMakeFiles/Praktikum1.dir/P1_aufgabe3.c.o CMakeFiles/Praktikum1.dir/P1_aufgabe4.c.o CMakeFiles/Praktikum1.dir/P1_helloworld.c.o + FLAGS = -g + OBJECT_DIR = CMakeFiles/Praktikum1.dir + POST_BUILD = : + PRE_LINK = : + TARGET_COMPILE_PDB = CMakeFiles/Praktikum1.dir/ + TARGET_FILE = Praktikum1 + TARGET_PDB = Praktikum1.pdb + +# ============================================================================= +# Target aliases. + +# ============================================================================= +# Folder targets. + +# ============================================================================= + +############################################# +# Folder: /home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug + +build all: phony Praktikum1 + +# ============================================================================= +# Built-in targets + + +############################################# +# Re-run CMake if any of its inputs changed. + +build build.ninja: RERUN_CMAKE | ../CMakeLists.txt /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompiler.cmake.in /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompilerABI.c /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCommonLanguageInclude.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCompilerIdDetection.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompileFeatures.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeFindBinUtils.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeGenericSystem.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeInitializeConfigs.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeLanguageInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitIncludeInfo.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitLinkInfo.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseLibraryArchitecture.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystem.cmake.in /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInitialize.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCompilerCommon.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ADSP-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMCC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/AppleClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Borland-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/CMakeCommonCompilerMacros.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Cray-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GHS-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-FindBinUtils.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/HP-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IAR-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Intel-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/MSVC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVHPC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PGI-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PathScale-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ROCMClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SCO-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TI-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Watcom-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XL-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/zOS-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Internal/FeatureTesting.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU-C.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.21.1/CMakeCCompiler.cmake CMakeFiles/3.21.1/CMakeSystem.cmake + pool = console + + +############################################# +# A missing CMake input file is not an error. + +build ../CMakeLists.txt /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompiler.cmake.in /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCCompilerABI.c /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCommonLanguageInclude.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeCompilerIdDetection.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompileFeatures.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerABI.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineCompilerId.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeDetermineSystem.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeFindBinUtils.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeGenericSystem.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeInitializeConfigs.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeLanguageInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitIncludeInfo.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseImplicitLinkInfo.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeParseLibraryArchitecture.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystem.cmake.in /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInformation.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeSystemSpecificInitialize.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/CMakeTestCompilerCommon.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ADSP-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMCC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ARMClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/AppleClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Borland-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Bruce-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/CMakeCommonCompilerMacros.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Clang-DetermineCompilerInternal.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Compaq-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Cray-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Embarcadero-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Fujitsu-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GHS-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-C.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU-FindBinUtils.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/GNU.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/HP-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IAR-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Intel-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/MSVC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVHPC-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/NVIDIA-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PGI-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/PathScale-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/ROCMClang-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SCO-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SDCC-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/SunPro-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TI-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/Watcom-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XL-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/XLClang-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Compiler/zOS-C-DetermineCompiler.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Internal/FeatureTesting.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU-C.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux-GNU.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/Linux.cmake /snap/clion/180/bin/cmake/linux/share/cmake-3.21/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.21.1/CMakeCCompiler.cmake CMakeFiles/3.21.1/CMakeSystem.cmake: phony + + +############################################# +# Clean all the built files. + +build clean: CLEAN + + +############################################# +# Print all primary targets available. + +build help: HELP + + +############################################# +# Make the all target the default. + +default all diff --git a/P01_Erste_Schritte_mit_C/cmake-build-debug/cmake_install.cmake b/P01_Erste_Schritte_mit_C/cmake-build-debug/cmake_install.cmake new file mode 100644 index 0000000..21e70dd --- /dev/null +++ b/P01_Erste_Schritte_mit_C/cmake-build-debug/cmake_install.cmake @@ -0,0 +1,54 @@ +# Install script for directory: /home/vagrant/snp/Praktikum/Praktikum1 + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/vagrant/snp/Praktikum/Praktikum1/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git a/P01_Erste_Schritte_mit_C/p1_aufgabe3 b/P01_Erste_Schritte_mit_C/p1_aufgabe3 new file mode 100755 index 0000000000000000000000000000000000000000..523ee06527f3b1d0af326de48c174aa375bc9d2d GIT binary patch literal 8408 zcmeHMdu)@}6~B%XFfYf@P}0E0H%27r8k6t{Nhz(J#NkVo0E48X8}Q-ykyto3vOjmg zww5hzCl5l=G-*`Ys!FXo_V|NIo5X($3Zq4nDv zNGTyeq4!17Q&XlSKAHGb^A6SDOmW$z{0CLT6>E}-!PfO_lF_DQB9%MXbg-?psdc?S zoA$4j<7WFTyJhQu?1|?ap=F=z=))Md?|v5qb@8F< ze_XO8sa23}AZ$?u{0lSS!5Q!u2-oQ2Eb|DcWd9|?HK#D~Yw5G10xl@75e{RkFpNYt z9cgbjvXO8qPHff;NA??$;r&KDoJfiTnMBHDJaRB>#1pA-GI2OYEL&jNjA@L76DhH! zx2L1iSnJmh{iIpp+we+Jb&EZUuaoUnB0)SC>`&|~-)sv%t@a`C zi)!(Ee3}#h4*soL3uiI*2j#L2$6n&Lf(^HyH zE5!q$=@VCeu5Raw7lPwzqD7+zoU;{ncUvrJ66*`vijJ9SIC4u zw)tI>DK37EbUvzG-X)<6#0=ViGR%W;40@@J*}JrnHZ z6i+7eEI78|Thh$xyQHt5z3bNVlls}hW4i0Se(A1RPX>d^;CwbXlf5IG+eu91*65>~ zmvC)>{h6;H-P}N2VF3-fpwrj+nuWx>*qtNn*oPBjlE%a0d#=Svf@>6YEvg@_Zd^qo zdOmc!W&HI}f#qKh-Cz>0{b2lN?ZVI`jbjc)=nR8}Z{IBz^)UkT=Luh0!k;0W6nQe< zTl39O;SH+XtbH(4xLND#o4i@O_w3P7LF&9mEoWG+u!(d=NoVvMH)@{#jkK>H9k?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cYf7yfI zFF4ju+lo?qDdSUf{$PH0S@`@oWW)~EW7rw9_AiJ8oI#4iO%r@#7sQYc2Wt^Wu>O?2L#V?>PJ-;oAIa)eD5LsJTyJeT2w27$=V~ z?_`@%7YXM$oR&BwMd6o3Lo}`$J>&e0$m6{gcg6|AS>D^;Dkl3JGO&JaHs?xVzn5Vm-eRM30e1r!E%s zj^oNW*mE=%?JFD>+{>Rw z%3vw`d5>h>Z+%9hkTZtk*#y4>b{{3FL@H|(3rT9=oNpW};`<8)F=M?i8U{ThB0T)Q zSoP7+{Y>e0O@#|%88hBb)Xdv-7`arI-YG{^IGZz*;b^S8$&3#PH@hF-|2^ zn7QG2VOWI|V_C9iQ!{UuoJr;jsa)2@7*v)|rsJ$2xskM~!d5fGlnoE%h&7X=^vgqv zgmPA>!^vS8M8gR(0?t;oN0Y6AJk=1-qz1?*?x`?EP=#qEXJ~X{p8U6z&)YQBDsPlH zCxPO;je1ztnLb4fZ{b*Hah?LzoWhjH`UJRzGERM*yFfQXP^eeGgYesQ#zp-&pMk=E zY`fm=>j>%d9RT_hk^$v?j}tF*+;-^Wy#5$re71%@&U>IwQ<*b)<9CV*`3w(zoC`tu z+`tL`Lk{%wRK|A#@Hjt$YOGAj>%WaEb(S(5Q|RNI33^EcQNOqS&xn3ZOa;PDOLo%&mO bv7offV;uF`rF{0SuD??%n1!HFul~OQ{URO- literal 0 HcmV?d00001 diff --git a/P02_Funktionen_Datentyp_enum/P2_aufgabe1 b/P02_Funktionen_Datentyp_enum/P2_aufgabe1 new file mode 100755 index 0000000000000000000000000000000000000000..919fa61404a3ade2868720d0f24d53ce6b242981 GIT binary patch literal 8520 zcmeHMe{7WH9e=LZ(o*1B5Ctoa6CtBh&K7BDb=6+!mA9rvgjQvW6jl@zr*X*pTT~oWx zmyG+?%65}~(%rbJQ`SV|&0R||FGePe#Yu|8XZS|3w7ouCA{C4Nn#&dJYmNSa~ zaY{ndn@5|b@1i{T4YT0>S@6e!dy$=K9)NuQp8@W5D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uY?cd}cokC_lVE zv!7j3e`bFk0G==Y+1mBI^s`7j!5chRFpHmGN%<8s#_NdmGjqJ&RQi0+mMnhWmxY=0 z=R9y%p7AY30~VqGaq^RimvIGfuLb4&J}L2;^Pv`aIpzuXKN~Fuz9`T9Z;&`^P19|& z-~+SZk4oGlPN)xwJTt-FPk>WA&Us5`LGN^R+0skE7ZxlLyq~flO*lO9I#r(y@q6IZ zZ!fA3R9G3LLCY}@mpazP(@LM;XZfu8SKy@Y?6*m!U!mG{Sox>-%6#utr5HGh=al*| zzOM9_0H=02{a+8!H-Zz%H2BI31csj_T&MsHe9t*d4A$WV+t6#or##1Dl$4yprXrhlJj| zZIi#fbwjR1KG6Zf6Q~~0ln1SOi_kZ=-Pz=C)9-9)*&683JN!*;0rDyz_Ii>j8Tc1J z+l50xBM6h+C&R`@ehXZuUJs`cdJ~-Sc9<*fi*&cfjC;Zf1DaHU^)3h|_mNN!CF6R3 zFczW*#MV2Z6^g|4R5Fa7m~I4hDfsSWQn`_jmAQ|e)Ag?x1}=u16LIU}sq1*A$7XM4Vn+zpKG4s6foSEh#`vnOZ& z-47w%QP`f(xlDPl=lEHV>2}!Dorifo4>N64l{@2Cu-J_P^(oswt2&rzS}Ah<&i3zB z_DxEU&(};foBdTNJMA9>Mtwr@QQ~_rQ+&a5k_s=2(f8hN&*ycfjaf~r!2f43eZpa% z4MYXR@vMEd%o|y zs2);S4=OS-&-8tuG}K%_-;4NvWBz}b=O^3oIMTg<#-Hu^9poSdg>_}}1w&Ys9YmS!D;+r7+bPdIyK1AV{{hu; s^qrwIFUQ0CC(Un;-ERLZZ5Bv<4(D92C8e`@e*0o|1-;CQiaPE84R&JK!vFvP literal 0 HcmV?d00001 diff --git a/P02_Funktionen_Datentyp_enum/P2_aufgabe1.c b/P02_Funktionen_Datentyp_enum/P2_aufgabe1.c new file mode 100644 index 0000000..a653e72 --- /dev/null +++ b/P02_Funktionen_Datentyp_enum/P2_aufgabe1.c @@ -0,0 +1,108 @@ +#include +#include + +/* Funktionsdeklarationen */ +int gibIntWert(char text[], int min, int max); +int istSchaltjahr(int jahr); +int tageProMonat(int jahr, int monat); + + +/* Mainfunktion */ +int main (int argc, char *argv[]) { + + int monat, jahr; + + // Monat einlesen und Bereich ueberpruefen + monat = gibIntWert("Monat", 1, 12); + jahr = gibIntWert("Jahr", 1600, 9999); + + // Ausgabe zum Test + printf("Monat: %d, Jahr: %d \n", monat, jahr); + + // Ausgabe zum Test (hier mit dem ternaeren Operator "?:") + printf("%d ist %s Schaltjahr\n", jahr, istSchaltjahr(jahr) ? "ein" : "kein"); + + // Ausgabe + printf("Der Monat %02d-%d hat %d Tage.\n", monat, jahr, tageProMonat(jahr, monat)); + + return 0; +} + +/* Funktionsdefinitionen */ +int gibIntWert(char text[], int min, int max) { + int wert; + (void) printf("Enter %s :", text); + scanf("%d", &wert); + if(wert >= min & wert <= max){ + return wert; + } + else { + return 0; + } + +} + +int istSchaltjahr(int jahr){ + int ergebnis; + if(jahr % 400 == 0){ + ergebnis = 1; + } + else if (jahr % 100 == 0){ + ergebnis = 0; + } + else if(jahr % 4 == 0){ + ergebnis = 1; + } + else { + ergebnis = 0; + } + return ergebnis; +} + +int tageProMonat(int jahr, int monat){ + int ergebnis = 0; + switch (monat) { + case 1: + ergebnis = 31; + break; + case 2: + if(istSchaltjahr(jahr)){ + ergebnis = 29; + } + else { + ergebnis = 28; + } + break; + case 3: + ergebnis = 31; + break; + case 4: + ergebnis = 30; + break; + case 5: + ergebnis = 31; + break; + case 6: + ergebnis = 30; + break; + case 7: + ergebnis = 31; + break; + case 8: + ergebnis = 31; + break; + case 9: + ergebnis = 30; + break; + case 10: + ergebnis = 31; + break; + case 11: + ergebnis = 30; + break; + case 12: + ergebnis = 31; + break; + } + return ergebnis; +} \ No newline at end of file diff --git a/P02_Funktionen_Datentyp_enum/P2_aufgabe2 b/P02_Funktionen_Datentyp_enum/P2_aufgabe2 new file mode 100755 index 0000000000000000000000000000000000000000..ad2fbcc0c61efc9ec8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l>vFex6b<3i+)QR<#npb>2NckN;Qa!N=#przGwb|ES6@zmX!}_vg{CMmtdX zi|5fM;MC67)Hs*la^a^=wwqmjI}uR&|Ds;l^4lt;hk&ni-!Axlzy@?Kw35Dps)4Cq zhvK;Mb4vBE{Kg8Szmzyz=jmHWR$+cs`+Rv2sShhZeD93EeLn}B^o#rJt4jax)PhKU z`-Pux0H^X7>;Dt*!W^yazYl!9l`Qy817C&J46n0TI4NPsupy_<+` zBof96Jse9VPKcg_(I3`B>Hhu`FmZ4?G*bnth36`|e)veRz5STp+;Om}z2(qBUH8}3 z@7w_|%|`-lK|OeIpN=ayg?>Up-*@a_psl5;P$KXD0Ky$EJ*X)U+P)(~-`{$uG0>_X zYHmInY}eZZjjciQDsK&SC)2VrLf1T3RrV?aL#+MSM~@$-jg{^W`Nl+h*p$yCCk zeVoD}TR1Tw{IPf{><=`y)TWGH#r4M0{;qTcHwYsk;U})oNcIVT=tKBWQlOpAOn>eh^B;Jwuv7}e{URYDm;i^nnF;D%faCf_o+$K7lIS!EK_Ut zSQeZ{4n}{Z8)c%gD)q=Qm??Z_;Vc>u{zUSy9nq`+dN1v>507dA-h*%g_5s-jA`{gGkV;i0#j+ z1XCY14gxKgDarP{&-(;0+LN(8um73y{uC-QD0j??N0FkvAKUXjfhp(1cQ74MikyFO{hw0yjY^OACro*NP4*u`EVlnVFlrMj z9|eBzG39-@CAG@RX`&{g)1LP`Hgzf^jg^E9Ouq=uY0vv2rd(cSW|yDwzbUfkbp%tl zS{JcB=ga)pitKrx#gxA*uzvCQe@WSM|M5DB>EfaR$K_^!|4?LKeE&Pjii#HJZ|w*2 zVRu%#^}+w*?$3|+TFU_Fb=^Njx(0vda4 z&-+TgchC3hd3>@R_ap7AsETaQ- +#include +#include + + +// *** TASK1: typedef enum types for month_t (Jan=1,...Dec} *** +// BEGIN-STUDENTS-TO-ADD-CODE +typedef enum {Jan=1, Feb, Mar, Apr, May, June, July, Aug, Sept, Oct, Nov, Dec} month_t; + +// END-STUDENTS-TO-ADD-CODE + + + +// *** TASK1: typedef struct for date_t *** +// BEGIN-STUDENTS-TO-ADD-CODE +typedef struct {int year, month, day;} date_t; + +// END-STUDENTS-TO-ADD-CODE + + + +// *** TASK2: typedef enum weekday_t (Sun=0, Mon, ...Sat) *** +// BEGIN-STUDENTS-TO-ADD-CODE +typedef enum {Sun=0, Mon, Tue, Wed, Thu, Fri, Sat} weekday_t; + +// END-STUDENTS-TO-ADD-CODE + +/** + * @brief TASK1: Checks if the given date is a leap year. + * @returns 0 = is not leap year, 1 = is leap year + */ +// BEGIN-STUDENTS-TO-ADD-CODE +int is_leap_year(date_t date){ + int ergebnis; + if(date.year % 400 == 0){ + ergebnis = 1; + } + else if (date.year % 100 == 0){ + ergebnis = 0; + } + else if(date.year % 4 == 0){ + ergebnis = 1; + } + else { + ergebnis = 0; + } + return ergebnis; +} + +// END-STUDENTS-TO-ADD-CODE + + +/** + * @brief TASK1: Calculates the length of the month given by the data parameter + * @returns 28, 29, 30, 31 if a valid month, else 0 + */ +// BEGIN-STUDENTS-TO-ADD-CODE +int get_month_length(date_t date){ + int ergebnis = 0; + switch (date.month) { + case Jan: + ergebnis = 31; + break; + case Feb: + if(is_leap_year(date)){ + ergebnis = 29; + } + else { + ergebnis = 28; + } + break; + case Mar: + ergebnis = 31; + break; + case Apr: + ergebnis = 30; + break; + case May: + ergebnis = 31; + break; + case June: + ergebnis = 30; + break; + case July: + ergebnis = 31; + break; + case Aug: + ergebnis = 31; + break; + case Sept: + ergebnis = 30; + break; + case Oct: + ergebnis = 31; + break; + case Nov: + ergebnis = 30; + break; + case Dec: + ergebnis = 31; + break; + } + return ergebnis; +} + +// END-STUDENTS-TO-ADD-CODE + +/** + * @brief TASK1: Checks if the given date is in the gregorian date range + * @returns 0 = no, 1 = yes + */ +// BEGIN-STUDENTS-TO-ADD-CODE +int is_gregorian_date(date_t date) { + int ergebnis = 1; + if((date.year == 1582 && date.month <= Oct && date.day < 15) || date.year < 1582 || (date.year > 9999)){ + return 0; + } + else { + return 1; + } + +} + +// END-STUDENTS-TO-ADD-CODE + + +/** + * @brief TASK1: Checks if the given date is a valid date. + * @returns 0 = is not valid date, 1 = is valid date + */ +// BEGIN-STUDENTS-TO-ADD-CODE +int is_valid_date(date_t date) { + int ergebnis = 1; + int ml = get_month_length(date); + + + if((int)ml < (int)date.day ){//|| date.month < 1 || date.month > 12 || is_gregorian_date == 0){ + + return 0; + } + else { + printf("Länge Monat: %d\n", get_month_length(date)); + printf("Länge Monat: %d\n", ml); + printf("Tag: %d\n", date.day); + printf("Monat: %d\n", date.month); + printf("Jahr: %d\n", date.year); + return 1; + + } + +} + + +// END-STUDENTS-TO-ADD-CODE + + +/** + * @brief TASK2: calculated from a valid date the weekday + * @returns returns a weekday in the range Sun...Sat + */ +// BEGIN-STUDENTS-TO-ADD-CODE +weekday_t calculate_weekday(date_t date) { + int m = 1 + (date.month + 9) % 12; + int a; + if(date.month < Mar){ + a = date.year - 1; + } + else { + a = date.year; + } + int y = a % 100; + int c = a / 100; + weekday_t weekday = ((date.day + (13 * m - 1) / 5 + y + y / 4 + c / 4 - 2 * c) % 7 + 7) % 7; + return weekday; +} + +// END-STUDENTS-TO-ADD-CODE + + + +/** + * @brief TASK2: print weekday as 3-letter abreviated English day name + */ +// BEGIN-STUDENTS-TO-ADD-CODE +void print_weekday(weekday_t day) { + int ergebnis = 0; + switch (day) { + case Sun: + printf("Sun"); + break; + case Mon: + printf("Mon"); + break; + case Tue: + printf("Tue"); + break; + case Wed: + printf("Wed"); + break; + case Thu: + printf("Thu"); + break; + case Fri: + printf("Fri"); + break; + case Sat: + printf("Sat"); + break; + default: + assert(!"day is out-of-range"); + break; + } + +} + +// END-STUDENTS-TO-ADD-CODE + +/** + * @brief main function + * @param argc [in] number of entries in argv + * @param argv [in] program name plus command line arguments + * @returns returns success if valid date is given, failure otherwise + */ +int main(int argc, const char *argv[]) +{ + // TASK1: parse the mandatory argument into a date_t variable and check if the date is valid + // BEGIN-STUDENTS-TO-ADD-CODE + date_t date; + int res = sscanf(argv[1] + , "%d-%d-%d" + , &date.year, &date.month, &date.day + ); + if (res != 3 || is_valid_date(date) == 0) { + printf("Fehler\n"); + return EXIT_FAILURE; + } + + // END-STUDENTS-TO-ADD-CODE + + + // TASK2: calculate the weekday and print it in this format: "%04d-%02d-%02d is a %s\n" + // BEGIN-STUDENTS-TO-ADD-CODE + printf("%04d-%02d-%02d is a ", date.year, date.month, date.day); + print_weekday(calculate_weekday(date)); + printf("\n"); + + // END-STUDENTS-TO-ADD-CODE + + return EXIT_SUCCESS; +} + diff --git a/P03_Bit_Operation_struct_typedef/P3_aufgabe21 b/P03_Bit_Operation_struct_typedef/P3_aufgabe21 new file mode 100755 index 0000000000000000000000000000000000000000..9a0272d479ebc1ccde955b244b5cb9a2490d6ab5 GIT binary patch literal 12984 zcmeHOdvIJ;89$peZJM^5^hMJL_KFR*XtoJ`rAQ&0X3K3&S}2WWHH=qB9KD(ORDb>a_A02#7BzGX+t%q+%Ru4QLyG-?`_zd-rxD z>iCzFlezny@Ao~O;`ef~ zOiTwqO=7mZ*(Q+MX1RM$h7 zOBPg<8HcKR3@OTX#FE`%Wp`NFF&$GCW6JHLw$Zgq`Sa3N$S5%-T}n6p-ilJb!7tfM zsAa=~DcjuyJF4fun^c&@PF3DyamlFqGgZwMt9xRd>({RCiPrbT;^|C%rfGfs`n7>n zB5<{AH~A;s8@6}IDp7xPXsON%a1loG-){K9hxb16eSO94Bj+y6TQb~o@lKO$`9k*J zPR-DqS3>(RFs%fB6|hqJt0%$rN${>o@Ew!j-vzGW@}^k;O4VoSB=~XQ8ZK}8Ab=~p zAo1w82zAqXVHmMgBC>I#kxE6v@h%rH*}k-u0+zDEk^M%bd%w{Yj`awjk?wF(^d)0) zt4r)NZPqX%nXu6ni-&t+x0^7dV#qdW8NK0HT-?yMwPmw$bzp;&TkGVm4y+T#)?MvJ z)J&TDVkyf^?rPuMlZczU!ksUtqfzS9G4J0 z?ia;kb4Z#|*aFFyi%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W!{0eJk+u*i&)&hgF6t*Pr*Hp2sV(9rkofVEbb#!?cNl zgG7(rlx2I~AASHB?d8~>_qj}YUkeqPlsjg{UgT)c$o9OiV9NV#u0QKB-4A=(gEG(i z52nqkByar{EN(}JV#@ZsPhmQ&6uEqF`|nZqElQ8~GfW?J*eTrT_j zn#Z2s!!YId5v=cR|2LIA_a8scF}=u!igLXf{YH(#wN}$+cSL)61Tncysz0NTn;;6JLbobA&krC=T#hJ zlF6&@=?-DCx$)P9-nGw;F0_2KoC#y8j9wy=M1 ceYZ^)d4yap>&`{SqasDOU1e){$G_M9pI$hgdH?_b literal 0 HcmV?d00001 diff --git a/P03_Bit_Operation_struct_typedef/P3_aufgabe21.c b/P03_Bit_Operation_struct_typedef/P3_aufgabe21.c new file mode 100644 index 0000000..0df58b4 --- /dev/null +++ b/P03_Bit_Operation_struct_typedef/P3_aufgabe21.c @@ -0,0 +1,143 @@ +#include +#include + +#define OPERAND_BUFFER_SIZE 10 + +typedef struct { + /* + Students: The Expression struct should hold the two operands and + the operation (use a char for the operation) + */ + int operator1; + int operator2; + char operation; +} Expression; + +int bits_per_int() { + return sizeof(unsigned int) * 8; +} + +unsigned int parse_operand(char operand_str[]) { + unsigned int operand; + if (operand_str[0] == '0' && operand_str[1] == 'x') { + sscanf(&operand_str[2], "%x", &operand); + } else if (operand_str[0] == '0') { + sscanf(&operand_str[1], "%o", &operand); + } else { + sscanf(operand_str, "%u", &operand); + } + return operand; +} + +void print_binary(unsigned int value) { + + // Students: Print a single number as a binary string + int chars[32]; + int counter; + for(counter = 0; counter < 32; counter = counter + 1) { + if((value % 2) == 0) { + chars[counter] = 0; + } else { + chars[counter] = 1; + } + value = value / 2; + } + for(counter = 31; counter >= 0; counter--) { + printf("%d", chars[counter]); + if(counter == 24 || counter == 16 || counter == 8) { + printf("'"); + } + } +} + +void print_bit_operation_bin(Expression expression, unsigned int result) { + /* + Students: Print the entire operation in bin including the result + + Bin: + 00000000'00000000'00000000'00001100 + 00000000'00000000'00000000'00001111 ^ + ----------------------------------- + 00000000'00000000'00000000'00000011 + */ + + printf("Bin:\n"); + print_binary(expression.operator1); + printf("\n"); + print_binary(expression.operator2); + printf(" %c\n", expression.operation); + printf("-----------------------------------\n"); + print_binary(result); + printf("\n"); +} + +void print_bit_operation_hex(Expression expression, unsigned int result) { + /* + Students: Print the entire operation in hex including the result + + Hex: + 0x0c ^ 0x0f = 0x03 + */ + + printf("\nHex:\n0x%x %c 0x%x\n0x%x\n", expression.operator1, expression.operation, expression.operator2, result); +} + +void print_bit_operation_dec(Expression expression, unsigned int result) { + /* + Students: Print the entire operation in hex including the result + + Dec: + 12 ^ 15 = 3 + */ + + printf("\nDec:\n%d %c %d\n%d\n", expression.operator1, expression.operation, expression.operator2, result); +} + +unsigned int bit_operation(Expression expression) { + // Students: Do the actual bit operation and return the result + switch(expression.operation) { + case '&': return expression.operator1 & expression.operator2; break; + case '|': return expression.operator1 | expression.operator2; break; + case '^': return expression.operator1 ^ expression.operator2; break; + case '<': return expression.operator1 < expression.operator2; break; + case '>': return expression.operator1 > expression.operator2; break; + default: printf("ubekannte Operation\n"); break; + } +} + +int main(){ + char operand1_str[10]; + char operand2_str[10]; + char operation; + + unsigned int operand1, operand2; + + do { + printf("Geben sie die Bit-Operation ein:\n"); + + scanf("%s %c %s", operand1_str, &operation, operand2_str); + + operand1 = parse_operand(operand1_str); + operand2 = parse_operand(operand2_str); + + Expression expression; // Students: Create an expression + expression.operator1 = operand1; + expression.operator2 = operand2; + expression.operation = operation; + + + + unsigned int result = bit_operation(expression); + print_bit_operation_bin(expression, result); + print_bit_operation_hex(expression, result); + print_bit_operation_dec(expression, result); + + while(getchar() != '\n'); + printf("\nMöchten sie weiter machen oder abbrechen? [(n)ext|(q)uit] "); + + } while(getchar() == 'n'); + + printf("Byebye..\n"); + return EXIT_SUCCESS; +} + diff --git a/P03_Bit_Operation_struct_typedef/P3_aufgabe22 b/P03_Bit_Operation_struct_typedef/P3_aufgabe22 new file mode 100755 index 0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9kUx==zgpEKv9_ThgQ8V5x z+Twvo$OtAQk#4BiI0KSqmguhasHd$x&=M*yhiisW)97pP8~z>DbiF29J}8Xpy*qpj zb=$K`4xHDz=b!9=XZWKms{mv?1y|J^V=3al3(d4VD_mfq5fu=Q)l%Dgoo61W2 zJ({n&1Vp!Ya->7SfEf^naT~{k{p@=^6QUc`)t(82uIx;@(34wCwypa7nbUFLNyqU8p%Wm0i0+%bp`mAL_*n?cZm>k+eM{`dNxB8H=(#==!(>o z_ns!StmfITFJ+erZ=yS523kPPxJ5fShfs#%hlMv9GecfqRoyx>(5|@lXwut~4C9hr zI4Hctbp#R}!W-<4!k$IVxK(l_6i(JaP5Sv=GkAO)2>+-VB042c(6Z+i@^iI1(q zOQRb?G1+}ATsfIFp;&qj=GGy%fyia9%8w)C$t6vTL8r~te ze%{YAW&ioTD`z_)c0iw&cGf?mGE6HdI7qb3q%7<6`_OJ+^zOp?ygz2j?{N^3Ntt6- z96*lVkyxMi(M$d6h z`&5s*SI%+}k%@Vx{{Tv3kL&06F20w}f#LDVdfbon-a$>w=&N&>6Dt5Bby+0ypY@r3 zgc7@cW`C<$DqIg6U_ItXks*xh=Y63^vm|ombGk!V?;S#vTH=}itiL9MSQ*y0Qyx2Z z(MrwY`c>fQcZT-D><_OWG``t)OT+p +#include +#include + +#define RED "\x1B[31m" +#define GRN "\x1B[32m" +#define YEL "\x1B[33m" +#define WHT "\x1B[37m" +#define RESET "\x1B[0m" + +enum SHAPE {OVAL, RECTANGLE}; +/* +Students: Create a new type "Graphic" that can store: +- shape (OVAL, RECTANGLE) -> create a new enum for this type +- size +- color +*/ +typedef struct { + int shape; + int size; + char *color; +} Graphic; + + +void paint(Graphic graphic) { + double radius = graphic.size / 2.0; + int i,j; + + for (i = 0; i <= 2 * radius; i++){ + for (j = 0; j <= 2 * radius; j++){ + switch(graphic.shape) { + case RECTANGLE: printf("%s*" RESET, graphic.color); break; + case OVAL: { + double distance = sqrt((i - radius) * (i - radius) + (j - radius) * (j - radius)); + if (distance > radius - 0.5 && distance < radius + 0.5) { + printf("%s*" RESET, graphic.color); + } else { + printf(" "); + } + } break; + + } + } + printf("\n"); + } +} + +int main() { + int input; + Graphic graphic; + + do { + printf("Geben Sie die gewünschte Form an [OVAL=0 | RECTANGLE=1]:"); + scanf("%d", &input); + // Students: store the input in graphic + graphic.shape = input; + + printf("Geben Sie die gewünschte Grösse an:"); + scanf("%u", &input); + // Students: store the input in graphic + graphic.size = input; + + printf("Geben Sie die gewünschte Farb an [RED=0 | GREEN=1 | YELLOW=2]:"); + scanf("%d", &input); + // Students: store the input in graphic + switch (input) { + case 0: graphic.color = RED; break; + case 1: graphic.color = GRN; break; + case 2: graphic.color = YEL; break; + } + + paint(graphic); + + while(getchar() != '\n'); // empty buffer + printf("\nMöchten sie weiter machen oder abbrechen? [(n)ext|(q)uit] "); + } while(getchar() == 'n'); + + printf("Byebye..\n"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung1 b/P03_Bit_Operation_struct_typedef/P3_uebung1 new file mode 100755 index 0000000000000000000000000000000000000000..fe340624d72898ded5c7516ec7f43d9259f7aae0 GIT binary patch literal 8304 zcmeHMYiv}<6`u8CYy(~|1`-2Fxuj4*DlcpEG6|Gj+iR|od6bxxD8S9ydu?yC4|n%& zVxzR7f<#@pPN~{T^hbY1O&_YNpjIk>sz8l^NUfA8ts1GVM5?59P)J=t5N(aO=gggN zeed*=cU`2>nzd`>VIskV`bY6!1X6(SMQChF+# zgW>_PkoW}>v)dy!p;o)xQKms_749d>dTmuU;H3{JIZ$}WRJo=k+(fUlc~BuV39ugf zdcIz=L^W9fJ)-=0N>S)B%X(Lp-c_XsI;9)~#rSw^{OeWrytI?rxPY=OmxJ$F30a3B z58Y{t2~g;Lp7hwyPg;UX@Q~_nzIoA=|DbBPVpA&Fw{6R&RH8YR%oIkNN7}YEZ`%^e zXG5)W+-#p^_v}9`d*b!R)UwaZ>Bkti@BWtg;V;i!Z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fOyqNjr1b>o?NgTtBZ#d~W>Qly>H> zZygPwk>_8L%+4sib zbA)TN>gC!P;Y+LTFTZb~;Vk3iDfXTE%!nTl&hsGDJeW%1HKIX^t0qsJ7nD5STX9$V z1>r33oreh}zgK-=?e(VjNy6Drul#Qb*Wk2+en|L34j$EWgg4UHdCoc3pR@8-VPGKC zFJ|AP3@dH)^NUoTUZWCOV=$HNi>Hi)mCfaicwt2JXVb$e(=rpG?b~*=RTkp6u%r>s z<>I4;nXz)CVjve!n?|CLPLGm`gEL6da)}#g}g~a zob`^Uiuk^KUYU`Pi-tjOh?pRLT&(zF=zgPgyCy>U(XJK5+OOv5LH8iSz;}7g#L0wkx*7nf5;qCF*KAQBj9XRJD6+@)TxJfI@wP?@#=+W z21SShIZeTdZSr4J&a-KYsaK!5|NlUqjSg7WSw2k+A1ydvkw<}QPGPF!Tmsxe6{kM( zEzorkRMe~AN%(EbZP7pSGEn%B&#gDj*iZVL`$Hf38|V*JzkIy$*rAWS|8c@Nr-nZA zJkZnB<}BX%J5G(9yF(xOASmYxT;M@5@9?i>hn=P=W*WS9z`Oua9_?+B*v+aycSe* z3R4~bUjY5KM?b6v3JQN=20ZBZJo@-zh%doO$RaUTZtrdi(c|48Yh8+`vk zzl@F)h2MbBdGyN*qy%?DP*HFHoJa8dqkrV_ptYWW_xArf>2i$YUW)ra{{QEd2M_u? z(rs|)<6dwE|ra-{=IX4t*!Z+B-!f ws{cu~pZGh&xg`9-xxn!a-<|p!_^_a|$YUJ++O3@PR@QG-9n3&bQLp~L0Zb=yr~m)} literal 0 HcmV?d00001 diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung1.c b/P03_Bit_Operation_struct_typedef/P3_uebung1.c new file mode 100644 index 0000000..e675591 --- /dev/null +++ b/P03_Bit_Operation_struct_typedef/P3_uebung1.c @@ -0,0 +1,32 @@ +#include +#include +#include + +int main() { + unsigned int number = 0x77; //0111 0101 + unsigned int bit = 3; // bit at position 3 + + // Setting a bit + unsigned int vector = 1; + vector = vector << bit; + number = number | vector; // + printf("number after setting bit 3: 0x%02X\n", number); + + // Clearing a bit + bit = 1; + vector = 1; + vector = vector << bit; + vector = vector ^ 0xFF; + number = number & vector; + printf("number after clearing bit 1: 0x%02X\n", number); + + // Toggling a bit + bit = 0; + vector = 1; + vector <<= bit; + number ^= vector; + + printf("number after Toggling bit 0: 0x%02X\n", number); + + return EXIT_SUCCESS; +} diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung2 b/P03_Bit_Operation_struct_typedef/P3_uebung2 new file mode 100755 index 0000000000000000000000000000000000000000..b30ff38a93202df7b4576e06b65918dc64b81cb3 GIT binary patch literal 8304 zcmeHMeQZ?65#RG+V*@@P1`-2Fxuj4*TOT%`<}3JYpLs^+qhP0v0=%4kXZzao9ld*( z+6c9lOrp9jDV6#MjZ~>pR3)vVDpCKa|0~p#kbbC%)Tl^JB@&U=LC`v)L2e7a&g`3? z{oeDrq*DK6rFXOQ+nL$f-Fdt7_P!BqZ!Pip6pCLxp_pqdwUI_?s9Px&B8{p+RnYIF z>Je2&`~r>H?Tt2}R=Z4zY0z@P{X|)>p~MEf^bwH*g@;VVHIZ#?t6 zm6|0Q(iPAzi674hg&wo4cSZEBh#u&qI0lOG@!0t35PM$QLTy|?S(eM;53D%XTNY|| z4&80T3KV)@AU*c;la`>h}jJ;`(| zl{}RomL<%b70X&?e=M0+``X)@n$1n&P2sJ|Z0k5+#uM2@Z!%{kvK(oU^5ss=w7X^7aX1 z107qdL+KgEJ)w;s`EHcXSgadFyjj7%CAC-xe?%f{Q& zRt*_kDh8LZ!TIbB?WrI!mEUL#@A+#5)jHXqCC2EU8^ldi(ugMv`ng>C9`QbQXNVoU zJx(TRJS=|v!yc008qIF-jp!6F=o`_yyndsdcSoaBBbUkVUlBV-kD7RSx=h3fx=@wbost9|57%gEm&h2`%W!{a_<$Di{zI0l|R9yt~{9yt*) z$Is2q_iYLdZBL@aN6{498Cnm5^fRy6$O0A`KmTx5a z5X%OFt$~{TRg1q?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HsiBWN5A+PRISboxmJ`Hq?hbwAgP@!*aDo4j1N{oM z@wWhYMHQY?=p(-by&!_<-#dODAL}=X9P&_5%oFQBM2}bh1;Thv z4-|Hq<_^~3oO>iv(&tN*%3-}^t`ZgecvtIv4^4-x$jNxlVI z?ioMk4QAh@3dcCUOOf~C|39xhc+hu9x5}Z9?}7_*!2mfD(FHu{dxUcAp?`co;Qv+p zkBaz&9@dfbXC5N-aX&D|PEj#zGV=?4&>Pg^)St-%r33T>1JDCMNfpM>Kk}`hD0<~R z%b`9dUB>F@aTe%raDr5azLR3@ouZA>|Af3xe9mw#34gFJaD2mer~Z20ET}B<7)QT$ SE9bn$^*2ce(-0Ku)&CDXGBWo7 literal 0 HcmV?d00001 diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung2.c b/P03_Bit_Operation_struct_typedef/P3_uebung2.c new file mode 100644 index 0000000..8f218e9 --- /dev/null +++ b/P03_Bit_Operation_struct_typedef/P3_uebung2.c @@ -0,0 +1,18 @@ +#include +#include + +int main(){ + int a = 3; + int b = 4; + printf("a: %d; b: %d\n", a, b); + +// swapping + a = a ^ b; + b = a ^ b; + a = a ^ b; + + + + printf("a: %d; b: %d\n", a, b); + return EXIT_SUCCESS; +} diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung3 b/P03_Bit_Operation_struct_typedef/P3_uebung3 new file mode 100755 index 0000000000000000000000000000000000000000..50a357663208a3c22748ed80f2a59e8e810a974e GIT binary patch literal 8360 zcmeHMZ){sv6~DHVCjAq~OaClw2lcuZwQO;dCT-KLWpNUxFH_ovG}#8UeRXUnvFg~B z{alg?K~dIDUdSk7llozZNeH2#A$0<#@C8z(DxJinPJmznL_jTa3lo8ERR=WYocr$2 zdGE!cLqdG&m7dQ%zkANP=bn4tedk_(Db&^BcDV$KM|?^!_iDL`w5W!mwW>m-MKp`0 z^!qXKkXS-|nZ(TY7L!n`S?(y)pp^>u5M{k)w+T4uLrM-59x_#~DG57iUTX57Lii=X zdhF|kD#;S{%L?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_Operation_struct_typedef/P3_uebung3.c b/P03_Bit_Operation_struct_typedef/P3_uebung3.c new file mode 100644 index 0000000..a19c02d --- /dev/null +++ b/P03_Bit_Operation_struct_typedef/P3_uebung3.c @@ -0,0 +1,20 @@ +#include +#include + +int main(){ + char word[8] = "sREedEv"; + char *wordptr = &word[0]; + + while(wordptr < &word[7]) { + printf("UPPERCASE: %c\n", *wordptr & '_'); // converts the char into uppercase regardless of the current casing + printf("LOWERCASE: %c\n", *wordptr | ' '); // converts the char into lowercase regardless of the current casing + wordptr++; + } + + return EXIT_SUCCESS; +} + + +// _ ASCII Wert 95 = 0b101111 bitweise & verknüpft setzt bit 4 auf 0 +// _ ASCII Wert 95 = 0b101111 bitweise | verknüpft setzt bit 4 auf 1 +// gemäss ASCII Tabelle hat ein Zeichen gross und kleingeschriben den gleichen Binärwert, nur Bit 4 unterscheidet sich. diff --git a/P03_Bit_Operation_struct_typedef/P3_uebung4 b/P03_Bit_Operation_struct_typedef/P3_uebung4 new file mode 100755 index 0000000000000000000000000000000000000000..412a0c06500fd479e7a5c7188017c810b7af1eb6 GIT binary patch literal 8304 zcmeHMZ)_CT5r5~y*amz)%%2!Y%Y{G$O?{aErh&$1`^*{{a2=B-N?&y{e$= zXVk-LF7b0r%o=a72#s28QcQ!E3+^S#di5n1;HD3Y94I_wDz1rylU$PtK$QxZ0<6cr zj#ip1(SX?jeMbB^BoungvfgFUyDWO3IdKdW>*KZYuT$)~X)}#+17%rm?e7~=?w=_$ z*%@?)1uIbKeTnqg&rjR@BG@7G%@!9;{0Eigs`dTxuC1Hb_eX2{H$uxkFQy-3JpTB%{_)0(gFheo{K;SU=3YDh=4jcEPO&b2 z)cw@$Ns05mS{s}6jlqqNT=K% zFg1aLzgA`8tj_bHUAN(!2WS&E9J$S7IU8<&{wHm?J^!x=&W{n+%yzWlzm#hur8nmV zly+jwD9K;ZhA)(l^N`u{TYf-8`87YJYt_mI>M`HPV;^46Q(N;(;(N|m(n@W(*_yq2 zP|N;F8-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6@nVCPg2=^4ZzZJBAYKnimGCe)PZZ&-#r5gi!H=jtQ=`<>u)O-7rU6Fo0Y9v!> zJ(4-Bx|0Kg{V^jJ4Q|`Iy}q~*pM}NsNGcT>(qjoDHKck{k%5>V%?u0-k&2DeNz!nL zwr|oiF?v7sZYIZcy`>|xC#;9}HtTdC=9G>qz4_U_p*^il&JpwEjUYOS)We!s(3(4x zzN>9tW2jBv*V6J-xKr;8HMWJ>s(D`5oz9qk|K}6BSTtfpn zM^icv`t)czsrN+^Q9cB0-A7WJP%ccs%}#yniqbvi>tfcS8+=!v28 zjMC|v3Z{n!j7S$zBW2M(^yq*ymKsz+I@gE=LyfJqMx5x# zf>tB2VgU2P-gjO4_#OtucOm56>;Jy!V;a2wLF=F>)UE%POW*xJ-;Vp}a~;9)$NZ?{ zLCakUkGR3?+tlG4$9E~}KK%dZmIn{|8`7<^>EpX#Ob!?zMF$n`TX5&AeE7-grZX%;D5p$~e4M(p~9I#4FSJTL$~@Hy%*hWSx%`9;w! z@46l8W71`;j(+wA{dIPb`p~yi+ +#include + +int main(){ + int a = 64; // any positive number + int pruefzahl = 1; + int imax = 0; + + for(int i = 2; i < (a+2); i = i * 2) { + imax = i; + pruefzahl = pruefzahl + i; + } + pruefzahl = pruefzahl - imax; + + if(a > 0 && ((a & pruefzahl) == 0)){ + printf("%d is a power of 2\n", a); + } + else { + printf("%d is not a power of 2\n", a); + } + + return EXIT_SUCCESS; +}