├── cmake-build-debug ├── CMakeFiles │ ├── progress.marks │ ├── RevisionCode.dir │ │ ├── progress.make │ │ ├── main.c.o │ │ ├── depend.make │ │ ├── link.txt │ │ ├── flags.make │ │ ├── depend.internal │ │ ├── cmake_clean.cmake │ │ ├── C.includecache │ │ ├── DependInfo.cmake │ │ └── build.make │ ├── cmake.check_cache │ ├── feature_tests.bin │ ├── 3.8.2 │ │ ├── CompilerIdC │ │ │ ├── a.exe │ │ │ └── CMakeCCompilerId.c │ │ ├── CompilerIdCXX │ │ │ ├── a.exe │ │ │ └── CMakeCXXCompilerId.cpp │ │ ├── CMakeDetermineCompilerABI_C.bin │ │ ├── CMakeDetermineCompilerABI_CXX.bin │ │ ├── CMakeRCCompiler.cmake │ │ ├── CMakeSystem.cmake │ │ ├── CMakeCCompiler.cmake │ │ └── CMakeCXXCompiler.cmake │ ├── clion-environment.txt │ ├── TargetDirectories.txt │ ├── feature_tests.c │ ├── CMakeDirectoryInformation.cmake │ ├── clion-log.txt │ ├── Makefile2 │ ├── feature_tests.cxx │ └── Makefile.cmake ├── RevisionCode.exe ├── RevisionCode.exe.stackdump ├── cmake_install.cmake ├── Makefile ├── RevisionCode.cbp └── CMakeCache.txt ├── .idea ├── RevisionCode.iml ├── misc.xml ├── vcs.xml ├── modules.xml └── workspace.xml ├── CMakeLists.txt ├── .travis.yml ├── question_two.c ├── getint.c ├── main.c ├── question_three.c ├── question_four.c └── README.md /cmake-build-debug/CMakeFiles/progress.marks: -------------------------------------------------------------------------------- 1 | 2 2 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/progress.make: -------------------------------------------------------------------------------- 1 | CMAKE_PROGRESS_1 = 1 2 | CMAKE_PROGRESS_2 = 2 3 | 4 | -------------------------------------------------------------------------------- /.idea/RevisionCode.iml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/cmake.check_cache: -------------------------------------------------------------------------------- 1 | # This file is generated by cmake for dependency checking of the CMakeCache.txt file 2 | -------------------------------------------------------------------------------- /cmake-build-debug/RevisionCode.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/RevisionCode.exe -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/feature_tests.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/feature_tests.bin -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CompilerIdC/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/3.8.2/CompilerIdC/a.exe -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CompilerIdCXX/a.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/3.8.2/CompilerIdCXX/a.exe -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/main.c.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/RevisionCode.dir/main.c.o -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/clion-environment.txt: -------------------------------------------------------------------------------- 1 | ToolSet: 2.9.0@C:\cygwin64 2 | Options: 3 | CMake: 3.8.2@D:\software\software\CLion 2017.2.1\bin\cmake_cygwin\bin\cmake.exe 4 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.8) 2 | project(RevisionCode) 3 | 4 | set(CMAKE_C_STANDARD 99) 5 | 6 | set(SOURCE_FILES main.c) 7 | add_executable(RevisionCode ${SOURCE_FILES}) -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_C.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_C.bin -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_CXX.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/malep2007/C-Programming-Assignment/HEAD/cmake-build-debug/CMakeFiles/3.8.2/CMakeDetermineCompilerABI_CXX.bin -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/depend.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | CMakeFiles/RevisionCode.dir/main.c.o: ../main.c 5 | 6 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/link.txt: -------------------------------------------------------------------------------- 1 | /usr/bin/cc -g -Wl,--enable-auto-import CMakeFiles/RevisionCode.dir/main.c.o -o RevisionCode.exe -Wl,--out-implib,libRevisionCode.dll.a -Wl,--major-image-version,0,--minor-image-version,0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: c 2 | compiler: 3 | - gcc 4 | before_install: 5 | - pip install --user cpp-coveralls 6 | script: 7 | - ./configure --enable-gcov && make check 8 | after_success: 9 | - coveralls --exclude lib --exclude tests --gcov-options '\-lp' -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/flags.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | # compile C with /usr/bin/cc 5 | C_FLAGS = -g -std=gnu99 6 | 7 | C_DEFINES = 8 | 9 | C_INCLUDES = 10 | 11 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CMakeRCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_RC_COMPILER "/usr/bin/windres.exe") 2 | set(CMAKE_RC_COMPILER_ARG1 "") 3 | set(CMAKE_RC_COMPILER_LOADED 1) 4 | set(CMAKE_RC_SOURCE_FILE_EXTENSIONS rc;RC) 5 | set(CMAKE_RC_OUTPUT_EXTENSION .obj) 6 | set(CMAKE_RC_COMPILER_ENV_VAR "RC") 7 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/depend.internal: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | CMakeFiles/RevisionCode.dir/main.c.o 5 | /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c 6 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/cmake_clean.cmake: -------------------------------------------------------------------------------- 1 | file(REMOVE_RECURSE 2 | "CMakeFiles/RevisionCode.dir/main.c.o" 3 | "RevisionCode.pdb" 4 | "RevisionCode.exe" 5 | "libRevisionCode.dll.a" 6 | ) 7 | 8 | # Per-language clean rules from dependency scanning. 9 | foreach(lang C) 10 | include(CMakeFiles/RevisionCode.dir/cmake_clean_${lang}.cmake OPTIONAL) 11 | endforeach() 12 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/C.includecache: -------------------------------------------------------------------------------- 1 | #IncludeRegexLine: ^[ ]*[#%][ ]*(include|import)[ ]*[<"]([^">]+)([">]) 2 | 3 | #IncludeRegexScan: ^.*$ 4 | 5 | #IncludeRegexComplain: ^$ 6 | 7 | #IncludeRegexTransform: 8 | 9 | /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c 10 | ctype.h 11 | - 12 | stdio.h 13 | - 14 | 15 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CMakeSystem.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_HOST_SYSTEM "CYGWIN-2.9.0(0.318/5/3)") 2 | set(CMAKE_HOST_SYSTEM_NAME "CYGWIN") 3 | set(CMAKE_HOST_SYSTEM_VERSION "2.9.0(0.318/5/3)") 4 | set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") 5 | 6 | 7 | 8 | set(CMAKE_SYSTEM "CYGWIN-2.9.0(0.318/5/3)") 9 | set(CMAKE_SYSTEM_NAME "CYGWIN") 10 | set(CMAKE_SYSTEM_VERSION "2.9.0(0.318/5/3)") 11 | set(CMAKE_SYSTEM_PROCESSOR "x86_64") 12 | 13 | set(CMAKE_CROSSCOMPILING "FALSE") 14 | 15 | set(CMAKE_SYSTEM_LOADED 1) 16 | -------------------------------------------------------------------------------- /question_two.c: -------------------------------------------------------------------------------- 1 | //TODO 1: Header functions have a .h file extension so you need to create that 2 | // Declarign function as Float is key in this question 3 | 4 | float do_it(char arg1, char arg2, char arg3); 5 | float do_it(char arg1, char arg2, char arg3){ 6 | //does something 7 | } 8 | //TODO 2: Keyword to look for is "does not return anything" 9 | 10 | void print_a_number(int arg1); 11 | 12 | //TODO 3: What's wrong? Does not take parameters from definition 13 | print_msg("This is a message to print");// this not right -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/TargetDirectories.txt: -------------------------------------------------------------------------------- 1 | /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/rebuild_cache.dir 2 | /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/edit_cache.dir 3 | /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/RevisionCode.dir 4 | -------------------------------------------------------------------------------- /getint.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | int getch(void); 5 | void ungetch(int); 6 | 7 | /* getint: get next integer from input and *pn */ 8 | int getint(int *pn){ 9 | int c, sign; 10 | while (isspace(c = getch())) // skip white space 11 | ; 12 | 13 | if (!isdigit(c) && c != EOF && c != '-'){ 14 | ungetch(c); //it's not a number 15 | return 0; 16 | } 17 | sign = (c == '-')? -1:1; 18 | if (c == '+' || c == '-') 19 | c = getch(); 20 | for (*pn = 0; isdigit(c); c = getch()) { 21 | *pn = 10 * *pn + (c - '0'); 22 | } 23 | *pn *= sign; 24 | if(c != EOF) 25 | ungetch(c); 26 | 27 | return c; 28 | } -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/feature_tests.c: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "C_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "c_function_prototypes\n" 10 | "C_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "c_restrict\n" 17 | "C_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201000L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "c_static_assert\n" 24 | "C_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 304 && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "c_variadic_macros\n" 31 | 32 | }; 33 | 34 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 35 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/DependInfo.cmake: -------------------------------------------------------------------------------- 1 | # The set of languages for which implicit dependencies are needed: 2 | set(CMAKE_DEPENDS_LANGUAGES 3 | "C" 4 | ) 5 | # The set of files for implicit dependencies of each language: 6 | set(CMAKE_DEPENDS_CHECK_C 7 | "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/RevisionCode.dir/main.c.o" 8 | ) 9 | set(CMAKE_C_COMPILER_ID "GNU") 10 | 11 | # The include file search paths: 12 | set(CMAKE_C_TARGET_INCLUDE_PATH 13 | ) 14 | 15 | # Targets to which this target links. 16 | set(CMAKE_TARGET_LINKED_INFO_FILES 17 | ) 18 | 19 | # Fortran module output directory. 20 | set(CMAKE_Fortran_TARGET_MODULE_DIR "") 21 | -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- 1 | #include 2 | #define SIZE 10 3 | 4 | //TODO 1: Declare a function called add_arrays(arg1, arg2) that takes arguments of array data type 5 | void add_array(int arr1[SIZE], int arr2[SIZE]); 6 | main() { 7 | int arr1[SIZE] = {1,2,3,4,5}; 8 | int arr2[SIZE] = {1,2,3,4,5}; 9 | 10 | add_array(arr1, arr2); 11 | } 12 | //TODO 2: Define how the function will operate 13 | void add_array(int arr1[SIZE], int arr2[SIZE]){ 14 | //TODO 3: Declare two pointers which will access the arrays' addresses 15 | int *ptr1, *ptr2, sum[10]; 16 | ptr1 = arr1; ptr2 = arr2; 17 | 18 | // Because our pointers now have the addresses of the arrays, we can increment the addresses and add each 19 | // value element of each array 20 | 21 | for(int i = 0; i < SIZE; i ++){ 22 | sum[i] = *ptr1 + *ptr2; 23 | ptr1++; ptr2 ++; 24 | 25 | printf("%d, ", sum[i]); 26 | } 27 | } 28 | 29 | 30 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/CMakeDirectoryInformation.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | # Relative path conversion top directories. 5 | set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode") 6 | set(CMAKE_RELATIVE_PATH_TOP_BINARY "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug") 7 | 8 | # Force unix paths in dependencies. 9 | set(CMAKE_FORCE_UNIX_PATHS 1) 10 | 11 | 12 | # The C and CXX include file regular expressions for this directory. 13 | set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$") 14 | set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$") 15 | set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN}) 16 | set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN}) 17 | -------------------------------------------------------------------------------- /question_three.c: -------------------------------------------------------------------------------- 1 | /****************************************************** 2 | * This is an easy question which we did in class. 3 | * ***************************************************/ 4 | main() { 5 | //TODO 1: Declaration for an array that will hold 50 type long values 6 | double long array[50]; 7 | 8 | //TODO 2: Statement that assigns 123.456 to 50th element 9 | array[49] = 123.456; 10 | 11 | //TODO 3: value of x from for loop. In this question 99 and 100 are correct because it was not explicit which x to consisder 12 | for (int x = 0; x < 100; ++x) { 13 | //x == 99 14 | } 15 | //Outside loop x == 100 is correct 16 | 17 | //TODO 4: similar thinking applies to 18 | for (int ctr = 2; ctr < 10; ctr+=3) { 19 | //ctr == 8 20 | } 21 | //ctr == 11; 22 | 23 | //TODO 5: Wha is wrong; indentation without the {} is important it should be 24 | for (int counter = 0; counter < MAXVALUES; ++counter) 25 | printf("\nCounter = %d", counter); 26 | 27 | } -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/clion-log.txt: -------------------------------------------------------------------------------- 1 | "C:\Users\Ephraim Malinga\.CLion2017.2\system\cygwin_cmake\bin\cmake.exe" -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode" 2 | -- The C compiler identification is GNU 6.4.0 3 | -- The CXX compiler identification is GNU 6.4.0 4 | -- Check for working C compiler: /usr/bin/cc 5 | -- Check for working C compiler: /usr/bin/cc -- works 6 | -- Detecting C compiler ABI info 7 | -- Detecting C compiler ABI info - done 8 | -- Detecting C compile features 9 | -- Detecting C compile features - done 10 | -- Check for working CXX compiler: /usr/bin/c++.exe 11 | -- Check for working CXX compiler: /usr/bin/c++.exe -- works 12 | -- Detecting CXX compiler ABI info 13 | -- Detecting CXX compiler ABI info - done 14 | -- Detecting CXX compile features 15 | -- Detecting CXX compile features - done 16 | -- Configuring done 17 | -- Generating done 18 | -- Build files have been written to: /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug 19 | -------------------------------------------------------------------------------- /cmake-build-debug/RevisionCode.exe.stackdump: -------------------------------------------------------------------------------- 1 | Exception: STATUS_ACCESS_VIOLATION at rip=001801B2B69 2 | rax=0000000000000048 rbx=FFFFFFFFFFFFFFFE rcx=0000000000000048 3 | rdx=0000000600048540 rsi=0000000000000000 rdi=0000000000000001 4 | r8 =0000000000000001 r9 =000000060004854C r10=0000000000000000 5 | r11=0000000000000246 r12=0000000000000000 r13=00000000FFFFD680 6 | r14=00000001801FC7B8 r15=0000000000000000 7 | rbp=0000000000000000 rsp=00000000FFFFB540 8 | program=D:\Documents\Makerere\2017-2018 Fundamentals of Prorgramming\test_code\Cplusplus_programming\RevisionCode\cmake-build-debug\RevisionCode.exe, pid 15420, thread main 9 | cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B 10 | Stack trace: 11 | Frame Function Args 12 | 00000000000 001801B2B69 (001801FC870, 001004017C0, 000FFFFCBB0, 000FFFFCDF0) 13 | 000FFFFCBD0 00180190DBE (00000000000, 000FFFFC8F8, 0018013F700, 000FFFFCE00) 14 | 000FFFFCBD0 001801197EB (00000000000, 000FFFFC8F8, 0018013F700, 000FFFFCE00) 15 | 000FFFFCBD0 00100401106 (00000000000, 00000000000, 00000000000, 000FFFFCCB0) 16 | 000FFFFCC00 00100401122 (00000000020, FF0700010302FF00, 00180047B51, 00180046B90) 17 | 000FFFFCCB0 00180047BC2 (00000000000, 00000000000, 00000000000, 00000000000) 18 | 00000000000 00180045863 (00000000000, 00000000000, 00000000000, 00000000000) 19 | 000FFFFFFF0 00180045914 (00000000000, 00000000000, 00000000000, 00000000000) 20 | End of stack trace 21 | -------------------------------------------------------------------------------- /cmake-build-debug/cmake_install.cmake: -------------------------------------------------------------------------------- 1 | # Install script for directory: /cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode 2 | 3 | # Set the install prefix 4 | if(NOT DEFINED CMAKE_INSTALL_PREFIX) 5 | set(CMAKE_INSTALL_PREFIX "/usr/local") 6 | endif() 7 | string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") 8 | 9 | # Set the install configuration name. 10 | if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) 11 | if(BUILD_TYPE) 12 | string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" 13 | CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") 14 | else() 15 | set(CMAKE_INSTALL_CONFIG_NAME "Debug") 16 | endif() 17 | message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") 18 | endif() 19 | 20 | # Set the component getting installed. 21 | if(NOT CMAKE_INSTALL_COMPONENT) 22 | if(COMPONENT) 23 | message(STATUS "Install component: \"${COMPONENT}\"") 24 | set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") 25 | else() 26 | set(CMAKE_INSTALL_COMPONENT) 27 | endif() 28 | endif() 29 | 30 | if(CMAKE_INSTALL_COMPONENT) 31 | set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") 32 | else() 33 | set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") 34 | endif() 35 | 36 | string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT 37 | "${CMAKE_INSTALL_MANIFEST_FILES}") 38 | file(WRITE "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/${CMAKE_INSTALL_MANIFEST}" 39 | "${CMAKE_INSTALL_MANIFEST_CONTENT}") 40 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CMakeCCompiler.cmake: -------------------------------------------------------------------------------- 1 | set(CMAKE_C_COMPILER "/usr/bin/cc") 2 | set(CMAKE_C_COMPILER_ARG1 "") 3 | set(CMAKE_C_COMPILER_ID "GNU") 4 | set(CMAKE_C_COMPILER_VERSION "6.4.0") 5 | set(CMAKE_C_COMPILER_WRAPPER "") 6 | set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") 7 | 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") 8 | set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") 9 | set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") 10 | set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") 11 | 12 | set(CMAKE_C_PLATFORM_ID "Cygwin") 13 | set(CMAKE_C_SIMULATE_ID "") 14 | set(CMAKE_C_SIMULATE_VERSION "") 15 | 16 | set(CMAKE_AR "/usr/bin/ar.exe") 17 | set(CMAKE_RANLIB "/usr/bin/ranlib.exe") 18 | set(CMAKE_LINKER "/usr/bin/ld.exe") 19 | set(CMAKE_COMPILER_IS_GNUCC 1) 20 | set(CMAKE_C_COMPILER_LOADED 1) 21 | set(CMAKE_C_COMPILER_WORKS TRUE) 22 | set(CMAKE_C_ABI_COMPILED TRUE) 23 | set(CMAKE_COMPILER_IS_MINGW ) 24 | set(CMAKE_COMPILER_IS_CYGWIN 1) 25 | if(CMAKE_COMPILER_IS_CYGWIN) 26 | set(CYGWIN 1) 27 | set(UNIX 1) 28 | endif() 29 | 30 | set(CMAKE_C_COMPILER_ENV_VAR "CC") 31 | 32 | if(CMAKE_COMPILER_IS_MINGW) 33 | set(MINGW 1) 34 | endif() 35 | set(CMAKE_C_COMPILER_ID_RUN 1) 36 | set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) 37 | set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) 38 | set(CMAKE_C_LINKER_PREFERENCE 10) 39 | 40 | # Save compiler ABI information. 41 | set(CMAKE_C_SIZEOF_DATA_PTR "8") 42 | set(CMAKE_C_COMPILER_ABI "") 43 | set(CMAKE_C_LIBRARY_ARCHITECTURE "") 44 | 45 | if(CMAKE_C_SIZEOF_DATA_PTR) 46 | set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") 47 | endif() 48 | 49 | if(CMAKE_C_COMPILER_ABI) 50 | set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") 51 | endif() 52 | 53 | if(CMAKE_C_LIBRARY_ARCHITECTURE) 54 | set(CMAKE_LIBRARY_ARCHITECTURE "") 55 | endif() 56 | 57 | set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") 58 | if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) 59 | set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") 60 | endif() 61 | 62 | 63 | 64 | 65 | 66 | set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "cygwin;advapi32;shell32;user32;kernel32") 67 | set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-pc-cygwin/6.4.0;/usr/x86_64-pc-cygwin/lib;/usr/lib;/lib") 68 | set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") 69 | -------------------------------------------------------------------------------- /question_four.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | 4 | //void add_arrays(int array1[10],int array2[10]); 5 | //main(){ 6 | // int array1[10]={1,2,3,4,5,6,7,8}; 7 | // int array2[10]={6,2,9,4,5,6,7,8}; 8 | // add_arrays(array1,array2); 9 | //} 10 | // 11 | ////This is function to get sum of two arrays 12 | //void add_arrays(int array1[10],int array2[10]) { 13 | // 14 | // int i; 15 | // printf("the first array is ["); 16 | // for(i=0; i<10; i++) 17 | // { 18 | // 19 | // printf("%d,",array1[i]); 20 | // 21 | // } 22 | // printf("]\n"); 23 | // printf("the second array is ["); 24 | // for(i=0; i<10; i++) 25 | // { 26 | // printf("%d,", array2[i]); 27 | // } 28 | // printf("]\n"); 29 | // 30 | // printf("the third array is ["); 31 | // for (i=0; i<10; i++) 32 | // { 33 | // printf("%d,", array1[i]+array2[i]); 34 | // } 35 | // printf("]"); 36 | //} 37 | 38 | 39 | /* 40 | * Richard */ 41 | //void add_array(int arr1[],int arr2[], int size); 42 | //main() 43 | //{ 44 | // int arr1[5],arr2[5],c=5,i; 45 | // printf("Enter the values of first array\n"); 46 | // for(i=0;i<5;i++) 47 | // { 48 | // scanf("%d",&arr1[i]); 49 | // } 50 | // printf("Enter the values of second array\n"); 51 | // for(i=0;i<5;i++) 52 | // { 53 | // scanf("%d",&arr2[i]); 54 | // } 55 | // add_array(arr1,arr2,c); 56 | //} 57 | //void add_array(int arr1[],int arr2[], int size) 58 | //{ 59 | // int D[size],j; 60 | // printf("Enter the values of second array\n"); 61 | // for(j=0;j 20 | int x= 1: 21 | main() 22 | { 23 | if( x = 1); 24 | printf(" x equals 1" ); 25 | otherwise 26 | printf(" x does not equal 1"); 27 | return 0; 28 | } 29 | ``` 30 | 31 | ### My take 32 | ```objectivec 33 | /* a program with problems... */ 34 | #include 35 | int x= 1; // this is supposed to be semi colon not full colon 36 | main() 37 | { 38 | if( x = 1)// remove semicolon 39 | printf(" x equals 1" ); 40 | else 41 | printf(" x does not equal 1"); 42 | return 0; 43 | } 44 | ``` 45 | 46 | ## Question Two 47 | Write a header for a function named ```do_it()``` that takes three type char 48 | arguments and returns a type float to the calling program. 49 | 50 | Write a header for a function named ```print_a_number()``` that takes a single 51 | type int argument and doesn't return anything to the calling program. 52 | 53 | What's wrong with the following program ? 54 | ```objectivec 55 | #include 56 | void print_msg( void ); 57 | main(){ 58 | print_msg("This is a message to print"); 59 | return 0; 60 | } 61 | void print_msq( void ) 62 | { 63 | puts("This is a message to print"); 64 | return 0; 65 | } 66 | ``` 67 | ### My take 68 | ```objectivec 69 | //TODO 1: Header functions have a .h file extension so you need to create that 70 | // Declarign function as Float is key in this question 71 | 72 | float do_it(char arg1, char arg2, char arg3); 73 | float do_it(char arg1, char arg2, char arg3){ 74 | //does something 75 | } 76 | //TODO 2: Keyword to look for is "does not return anything" 77 | 78 | void print_a_number(int arg1); 79 | 80 | //TODO 3: What's wrong? Does not take parameters from definition 81 | print_msg("This is a message to print");// this not right 82 | ``` 83 | 84 | ## Question Three 85 | Write a declaration for an array that will hold 50 type long values 86 | 87 | Show a statement that assigns the value of 123.456 to the 50th element in the array 88 | from the above question 89 | 90 | What is the values of x when the following statement in complete ? 91 | ```objectivec 92 | for (x = 0; x < 100; x++) 93 | ``` 94 | 95 | What is the value of ctr when the following statement is compelte ? 96 | ```objectivec 97 | for(ctr = 2; ctr < 10; ctr += 3) 98 | ``` 99 | 100 | Write a while statement to count from 1 to 100 by 3s 101 | 102 | What is wrong with the following code fragment (MAXVALUES is not the problem !) 103 | ```objectivec 104 | for (counter = 1; counter < MAXVALUES; counter++ ); 105 | printf("\nCounter = %d", counter); 106 | ``` 107 | ### My take 108 | ```objectivec 109 | //TODO 1: Declaration for an array that will hold 50 type long values 110 | double long array[50]; 111 | 112 | //TODO 2: Statement that assigns 123.456 to 50th element 113 | array[49] = 123.456; 114 | 115 | //TODO 3: value of x from for loop. In this question 99 and 100 are correct because it was not explicit which x to consisder 116 | for (int x = 0; x < 100; ++x) { 117 | //x == 99 118 | } 119 | //Outside loop x == 100 is correct 120 | 121 | //TODO 4: similar thinking applies to 122 | for (int ctr = 2; ctr < 10; ctr+=3) { 123 | //ctr == 8 124 | } 125 | //ctr == 11; 126 | 127 | //TODO 5: Wha is wrong; indentation without the {} is important it should be 128 | for (int counter = 0; counter < MAXVALUES; ++counter) 129 | printf("\nCounter = %d", counter); 130 | ``` 131 | 132 | ## Question Four 133 | Write a function named ```addarrays()``` that accepts two arrays that are the same size. 134 | The function should add each element in the arrays together and place the values in a 135 | third array. 136 | 137 | Modify the function you created to return a pointer to the array containing the totals. 138 | Place this function in a program that also displays the values in all three arrays. 139 | 140 | ### My Take 141 | ```objectivec 142 | #define SIZE 10 143 | 144 | //TODO 1: Declare a function called add_arrays(arg1, arg2) that takes arguments of array data type 145 | void add_array(int arr1[SIZE], int arr2[SIZE]); 146 | main() { 147 | int arr1[SIZE] = {1,2,3,4,5}; 148 | int arr2[SIZE] = {1,2,3,4,5}; 149 | 150 | add_array(arr1, arr2); 151 | } 152 | //TODO 2: Define how the function will operate 153 | void add_array(int arr1[SIZE], int arr2[SIZE]){ 154 | //TODO 3: Declare two pointers which will access the arrays' addresses 155 | int *ptr1, *ptr2, sum[10]; 156 | ptr1 = arr1; ptr2 = arr2; 157 | 158 | // Because our pointers now have the addresses of the arrays, we can increment the addresses and add each 159 | // value element of each array 160 | 161 | for(int i = 0; i < SIZE; i ++){ 162 | sum[i] = *ptr1 + *ptr2; 163 | ptr1++; ptr2 ++; 164 | 165 | printf("%d, ", sum[i]); 166 | } 167 | } 168 | ``` 169 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/RevisionCode.dir/build.make: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | # Delete rule output on recipe failure. 5 | .DELETE_ON_ERROR: 6 | 7 | 8 | #============================================================================= 9 | # Special targets provided by cmake. 10 | 11 | # Disable implicit rules so canonical targets will work. 12 | .SUFFIXES: 13 | 14 | 15 | # Remove some rules from gmake that .SUFFIXES does not remove. 16 | SUFFIXES = 17 | 18 | .SUFFIXES: .hpux_make_needs_suffix_list 19 | 20 | 21 | # Suppress display of executed commands. 22 | $(VERBOSE).SILENT: 23 | 24 | 25 | # A target that is always out of date. 26 | cmake_force: 27 | 28 | .PHONY : cmake_force 29 | 30 | #============================================================================= 31 | # Set environment variables for the build. 32 | 33 | # The shell in which to execute make rules. 34 | SHELL = /bin/sh 35 | 36 | # The CMake executable. 37 | CMAKE_COMMAND = "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" 38 | 39 | # The command to remove a file. 40 | RM = "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" -E remove -f 41 | 42 | # Escaping for special characters. 43 | EQUALS = = 44 | 45 | # The top-level source directory on which CMake was run. 46 | CMAKE_SOURCE_DIR = "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode" 47 | 48 | # The top-level build directory on which CMake was run. 49 | CMAKE_BINARY_DIR = "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug" 50 | 51 | # Include any dependencies generated for this target. 52 | include CMakeFiles/RevisionCode.dir/depend.make 53 | 54 | # Include the progress variables for this target. 55 | include CMakeFiles/RevisionCode.dir/progress.make 56 | 57 | # Include the compile flags for this target's objects. 58 | include CMakeFiles/RevisionCode.dir/flags.make 59 | 60 | CMakeFiles/RevisionCode.dir/main.c.o: CMakeFiles/RevisionCode.dir/flags.make 61 | CMakeFiles/RevisionCode.dir/main.c.o: ../main.c 62 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir="/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/RevisionCode.dir/main.c.o" 63 | /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -o CMakeFiles/RevisionCode.dir/main.c.o -c "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c" 64 | 65 | CMakeFiles/RevisionCode.dir/main.c.i: cmake_force 66 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing C source to CMakeFiles/RevisionCode.dir/main.c.i" 67 | /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c" > CMakeFiles/RevisionCode.dir/main.c.i 68 | 69 | CMakeFiles/RevisionCode.dir/main.c.s: cmake_force 70 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling C source to assembly CMakeFiles/RevisionCode.dir/main.c.s" 71 | /usr/bin/cc $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/main.c" -o CMakeFiles/RevisionCode.dir/main.c.s 72 | 73 | CMakeFiles/RevisionCode.dir/main.c.o.requires: 74 | 75 | .PHONY : CMakeFiles/RevisionCode.dir/main.c.o.requires 76 | 77 | CMakeFiles/RevisionCode.dir/main.c.o.provides: CMakeFiles/RevisionCode.dir/main.c.o.requires 78 | $(MAKE) -f CMakeFiles/RevisionCode.dir/build.make CMakeFiles/RevisionCode.dir/main.c.o.provides.build 79 | .PHONY : CMakeFiles/RevisionCode.dir/main.c.o.provides 80 | 81 | CMakeFiles/RevisionCode.dir/main.c.o.provides.build: CMakeFiles/RevisionCode.dir/main.c.o 82 | 83 | 84 | # Object files for target RevisionCode 85 | RevisionCode_OBJECTS = \ 86 | "CMakeFiles/RevisionCode.dir/main.c.o" 87 | 88 | # External object files for target RevisionCode 89 | RevisionCode_EXTERNAL_OBJECTS = 90 | 91 | RevisionCode.exe: CMakeFiles/RevisionCode.dir/main.c.o 92 | RevisionCode.exe: CMakeFiles/RevisionCode.dir/build.make 93 | RevisionCode.exe: CMakeFiles/RevisionCode.dir/link.txt 94 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir="/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles" --progress-num=$(CMAKE_PROGRESS_2) "Linking C executable RevisionCode.exe" 95 | $(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/RevisionCode.dir/link.txt --verbose=$(VERBOSE) 96 | 97 | # Rule to build all files generated by this target. 98 | CMakeFiles/RevisionCode.dir/build: RevisionCode.exe 99 | 100 | .PHONY : CMakeFiles/RevisionCode.dir/build 101 | 102 | CMakeFiles/RevisionCode.dir/requires: CMakeFiles/RevisionCode.dir/main.c.o.requires 103 | 104 | .PHONY : CMakeFiles/RevisionCode.dir/requires 105 | 106 | CMakeFiles/RevisionCode.dir/clean: 107 | $(CMAKE_COMMAND) -P CMakeFiles/RevisionCode.dir/cmake_clean.cmake 108 | .PHONY : CMakeFiles/RevisionCode.dir/clean 109 | 110 | CMakeFiles/RevisionCode.dir/depend: 111 | cd "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug" && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/RevisionCode.dir/DependInfo.cmake" --color=$(COLOR) 112 | .PHONY : CMakeFiles/RevisionCode.dir/depend 113 | 114 | -------------------------------------------------------------------------------- /cmake-build-debug/Makefile: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | # Default target executed when no arguments are given to make. 5 | default_target: all 6 | 7 | .PHONY : default_target 8 | 9 | # Allow only one "make -f Makefile2" at a time, but pass parallelism. 10 | .NOTPARALLEL: 11 | 12 | 13 | #============================================================================= 14 | # Special targets provided by cmake. 15 | 16 | # Disable implicit rules so canonical targets will work. 17 | .SUFFIXES: 18 | 19 | 20 | # Remove some rules from gmake that .SUFFIXES does not remove. 21 | SUFFIXES = 22 | 23 | .SUFFIXES: .hpux_make_needs_suffix_list 24 | 25 | 26 | # Suppress display of executed commands. 27 | $(VERBOSE).SILENT: 28 | 29 | 30 | # A target that is always out of date. 31 | cmake_force: 32 | 33 | .PHONY : cmake_force 34 | 35 | #============================================================================= 36 | # Set environment variables for the build. 37 | 38 | # The shell in which to execute make rules. 39 | SHELL = /bin/sh 40 | 41 | # The CMake executable. 42 | CMAKE_COMMAND = "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" 43 | 44 | # The command to remove a file. 45 | RM = "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" -E remove -f 46 | 47 | # Escaping for special characters. 48 | EQUALS = = 49 | 50 | # The top-level source directory on which CMake was run. 51 | CMAKE_SOURCE_DIR = "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode" 52 | 53 | # The top-level build directory on which CMake was run. 54 | CMAKE_BINARY_DIR = "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug" 55 | 56 | #============================================================================= 57 | # Targets provided globally by CMake. 58 | 59 | # Special rule for the target rebuild_cache 60 | rebuild_cache: 61 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 62 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 63 | .PHONY : rebuild_cache 64 | 65 | # Special rule for the target rebuild_cache 66 | rebuild_cache/fast: rebuild_cache 67 | 68 | .PHONY : rebuild_cache/fast 69 | 70 | # Special rule for the target edit_cache 71 | edit_cache: 72 | @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..." 73 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/bin/cmake.exe" -E echo No\ interactive\ CMake\ dialog\ available. 74 | .PHONY : edit_cache 75 | 76 | # Special rule for the target edit_cache 77 | edit_cache/fast: edit_cache 78 | 79 | .PHONY : edit_cache/fast 80 | 81 | # The main all target 82 | all: cmake_check_build_system 83 | $(CMAKE_COMMAND) -E cmake_progress_start "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles" "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles/progress.marks" 84 | $(MAKE) -f CMakeFiles/Makefile2 all 85 | $(CMAKE_COMMAND) -E cmake_progress_start "/cygdrive/d/Documents/Makerere/2017-2018 Fundamentals of Prorgramming/test_code/Cplusplus_programming/RevisionCode/cmake-build-debug/CMakeFiles" 0 86 | .PHONY : all 87 | 88 | # The main clean target 89 | clean: 90 | $(MAKE) -f CMakeFiles/Makefile2 clean 91 | .PHONY : clean 92 | 93 | # The main clean target 94 | clean/fast: clean 95 | 96 | .PHONY : clean/fast 97 | 98 | # Prepare targets for installation. 99 | preinstall: all 100 | $(MAKE) -f CMakeFiles/Makefile2 preinstall 101 | .PHONY : preinstall 102 | 103 | # Prepare targets for installation. 104 | preinstall/fast: 105 | $(MAKE) -f CMakeFiles/Makefile2 preinstall 106 | .PHONY : preinstall/fast 107 | 108 | # clear depends 109 | depend: 110 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 111 | .PHONY : depend 112 | 113 | #============================================================================= 114 | # Target rules for targets named RevisionCode 115 | 116 | # Build rule for target. 117 | RevisionCode: cmake_check_build_system 118 | $(MAKE) -f CMakeFiles/Makefile2 RevisionCode 119 | .PHONY : RevisionCode 120 | 121 | # fast build rule for target. 122 | RevisionCode/fast: 123 | $(MAKE) -f CMakeFiles/RevisionCode.dir/build.make CMakeFiles/RevisionCode.dir/build 124 | .PHONY : RevisionCode/fast 125 | 126 | main.o: main.c.o 127 | 128 | .PHONY : main.o 129 | 130 | # target to build an object file 131 | main.c.o: 132 | $(MAKE) -f CMakeFiles/RevisionCode.dir/build.make CMakeFiles/RevisionCode.dir/main.c.o 133 | .PHONY : main.c.o 134 | 135 | main.i: main.c.i 136 | 137 | .PHONY : main.i 138 | 139 | # target to preprocess a source file 140 | main.c.i: 141 | $(MAKE) -f CMakeFiles/RevisionCode.dir/build.make CMakeFiles/RevisionCode.dir/main.c.i 142 | .PHONY : main.c.i 143 | 144 | main.s: main.c.s 145 | 146 | .PHONY : main.s 147 | 148 | # target to generate assembly for a file 149 | main.c.s: 150 | $(MAKE) -f CMakeFiles/RevisionCode.dir/build.make CMakeFiles/RevisionCode.dir/main.c.s 151 | .PHONY : main.c.s 152 | 153 | # Help Target 154 | help: 155 | @echo "The following are some of the valid targets for this Makefile:" 156 | @echo "... all (the default if no target is provided)" 157 | @echo "... clean" 158 | @echo "... depend" 159 | @echo "... rebuild_cache" 160 | @echo "... edit_cache" 161 | @echo "... RevisionCode" 162 | @echo "... main.o" 163 | @echo "... main.i" 164 | @echo "... main.s" 165 | .PHONY : help 166 | 167 | 168 | 169 | #============================================================================= 170 | # Special targets to cleanup operation of make. 171 | 172 | # Special rule to run CMake to check the build system integrity. 173 | # No rule that depends on this can have commands that come from listfiles 174 | # because they might be regenerated. 175 | cmake_check_build_system: 176 | $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 177 | .PHONY : cmake_check_build_system 178 | 179 | -------------------------------------------------------------------------------- /cmake-build-debug/RevisionCode.cbp: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 90 | 91 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/feature_tests.cxx: -------------------------------------------------------------------------------- 1 | 2 | const char features[] = {"\n" 3 | "CXX_FEATURE:" 4 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 5 | "1" 6 | #else 7 | "0" 8 | #endif 9 | "cxx_aggregate_default_initializers\n" 10 | "CXX_FEATURE:" 11 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 12 | "1" 13 | #else 14 | "0" 15 | #endif 16 | "cxx_alias_templates\n" 17 | "CXX_FEATURE:" 18 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 19 | "1" 20 | #else 21 | "0" 22 | #endif 23 | "cxx_alignas\n" 24 | "CXX_FEATURE:" 25 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 26 | "1" 27 | #else 28 | "0" 29 | #endif 30 | "cxx_alignof\n" 31 | "CXX_FEATURE:" 32 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 33 | "1" 34 | #else 35 | "0" 36 | #endif 37 | "cxx_attributes\n" 38 | "CXX_FEATURE:" 39 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 40 | "1" 41 | #else 42 | "0" 43 | #endif 44 | "cxx_attribute_deprecated\n" 45 | "CXX_FEATURE:" 46 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 47 | "1" 48 | #else 49 | "0" 50 | #endif 51 | "cxx_auto_type\n" 52 | "CXX_FEATURE:" 53 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 54 | "1" 55 | #else 56 | "0" 57 | #endif 58 | "cxx_binary_literals\n" 59 | "CXX_FEATURE:" 60 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 61 | "1" 62 | #else 63 | "0" 64 | #endif 65 | "cxx_constexpr\n" 66 | "CXX_FEATURE:" 67 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 68 | "1" 69 | #else 70 | "0" 71 | #endif 72 | "cxx_contextual_conversions\n" 73 | "CXX_FEATURE:" 74 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 75 | "1" 76 | #else 77 | "0" 78 | #endif 79 | "cxx_decltype\n" 80 | "CXX_FEATURE:" 81 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 82 | "1" 83 | #else 84 | "0" 85 | #endif 86 | "cxx_decltype_auto\n" 87 | "CXX_FEATURE:" 88 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 89 | "1" 90 | #else 91 | "0" 92 | #endif 93 | "cxx_decltype_incomplete_return_types\n" 94 | "CXX_FEATURE:" 95 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 96 | "1" 97 | #else 98 | "0" 99 | #endif 100 | "cxx_default_function_template_args\n" 101 | "CXX_FEATURE:" 102 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 103 | "1" 104 | #else 105 | "0" 106 | #endif 107 | "cxx_defaulted_functions\n" 108 | "CXX_FEATURE:" 109 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 110 | "1" 111 | #else 112 | "0" 113 | #endif 114 | "cxx_defaulted_move_initializers\n" 115 | "CXX_FEATURE:" 116 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 117 | "1" 118 | #else 119 | "0" 120 | #endif 121 | "cxx_delegating_constructors\n" 122 | "CXX_FEATURE:" 123 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 124 | "1" 125 | #else 126 | "0" 127 | #endif 128 | "cxx_deleted_functions\n" 129 | "CXX_FEATURE:" 130 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 131 | "1" 132 | #else 133 | "0" 134 | #endif 135 | "cxx_digit_separators\n" 136 | "CXX_FEATURE:" 137 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 138 | "1" 139 | #else 140 | "0" 141 | #endif 142 | "cxx_enum_forward_declarations\n" 143 | "CXX_FEATURE:" 144 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 145 | "1" 146 | #else 147 | "0" 148 | #endif 149 | "cxx_explicit_conversions\n" 150 | "CXX_FEATURE:" 151 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 152 | "1" 153 | #else 154 | "0" 155 | #endif 156 | "cxx_extended_friend_declarations\n" 157 | "CXX_FEATURE:" 158 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 159 | "1" 160 | #else 161 | "0" 162 | #endif 163 | "cxx_extern_templates\n" 164 | "CXX_FEATURE:" 165 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 166 | "1" 167 | #else 168 | "0" 169 | #endif 170 | "cxx_final\n" 171 | "CXX_FEATURE:" 172 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 173 | "1" 174 | #else 175 | "0" 176 | #endif 177 | "cxx_func_identifier\n" 178 | "CXX_FEATURE:" 179 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 180 | "1" 181 | #else 182 | "0" 183 | #endif 184 | "cxx_generalized_initializers\n" 185 | "CXX_FEATURE:" 186 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 187 | "1" 188 | #else 189 | "0" 190 | #endif 191 | "cxx_generic_lambdas\n" 192 | "CXX_FEATURE:" 193 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 194 | "1" 195 | #else 196 | "0" 197 | #endif 198 | "cxx_inheriting_constructors\n" 199 | "CXX_FEATURE:" 200 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 201 | "1" 202 | #else 203 | "0" 204 | #endif 205 | "cxx_inline_namespaces\n" 206 | "CXX_FEATURE:" 207 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 208 | "1" 209 | #else 210 | "0" 211 | #endif 212 | "cxx_lambdas\n" 213 | "CXX_FEATURE:" 214 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 215 | "1" 216 | #else 217 | "0" 218 | #endif 219 | "cxx_lambda_init_captures\n" 220 | "CXX_FEATURE:" 221 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 222 | "1" 223 | #else 224 | "0" 225 | #endif 226 | "cxx_local_type_template_args\n" 227 | "CXX_FEATURE:" 228 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 229 | "1" 230 | #else 231 | "0" 232 | #endif 233 | "cxx_long_long_type\n" 234 | "CXX_FEATURE:" 235 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 236 | "1" 237 | #else 238 | "0" 239 | #endif 240 | "cxx_noexcept\n" 241 | "CXX_FEATURE:" 242 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 243 | "1" 244 | #else 245 | "0" 246 | #endif 247 | "cxx_nonstatic_member_init\n" 248 | "CXX_FEATURE:" 249 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 250 | "1" 251 | #else 252 | "0" 253 | #endif 254 | "cxx_nullptr\n" 255 | "CXX_FEATURE:" 256 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 257 | "1" 258 | #else 259 | "0" 260 | #endif 261 | "cxx_override\n" 262 | "CXX_FEATURE:" 263 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 264 | "1" 265 | #else 266 | "0" 267 | #endif 268 | "cxx_range_for\n" 269 | "CXX_FEATURE:" 270 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 271 | "1" 272 | #else 273 | "0" 274 | #endif 275 | "cxx_raw_string_literals\n" 276 | "CXX_FEATURE:" 277 | #if ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40801) && __cplusplus >= 201103L 278 | "1" 279 | #else 280 | "0" 281 | #endif 282 | "cxx_reference_qualified_functions\n" 283 | "CXX_FEATURE:" 284 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 285 | "1" 286 | #else 287 | "0" 288 | #endif 289 | "cxx_relaxed_constexpr\n" 290 | "CXX_FEATURE:" 291 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 409 && __cplusplus > 201103L 292 | "1" 293 | #else 294 | "0" 295 | #endif 296 | "cxx_return_type_deduction\n" 297 | "CXX_FEATURE:" 298 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 299 | "1" 300 | #else 301 | "0" 302 | #endif 303 | "cxx_right_angle_brackets\n" 304 | "CXX_FEATURE:" 305 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 306 | "1" 307 | #else 308 | "0" 309 | #endif 310 | "cxx_rvalue_references\n" 311 | "CXX_FEATURE:" 312 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 313 | "1" 314 | #else 315 | "0" 316 | #endif 317 | "cxx_sizeof_member\n" 318 | "CXX_FEATURE:" 319 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 320 | "1" 321 | #else 322 | "0" 323 | #endif 324 | "cxx_static_assert\n" 325 | "CXX_FEATURE:" 326 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 327 | "1" 328 | #else 329 | "0" 330 | #endif 331 | "cxx_strong_enums\n" 332 | "CXX_FEATURE:" 333 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && __cplusplus 334 | "1" 335 | #else 336 | "0" 337 | #endif 338 | "cxx_template_template_parameters\n" 339 | "CXX_FEATURE:" 340 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 408 && __cplusplus >= 201103L 341 | "1" 342 | #else 343 | "0" 344 | #endif 345 | "cxx_thread_local\n" 346 | "CXX_FEATURE:" 347 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 348 | "1" 349 | #else 350 | "0" 351 | #endif 352 | "cxx_trailing_return_types\n" 353 | "CXX_FEATURE:" 354 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 355 | "1" 356 | #else 357 | "0" 358 | #endif 359 | "cxx_unicode_literals\n" 360 | "CXX_FEATURE:" 361 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 362 | "1" 363 | #else 364 | "0" 365 | #endif 366 | "cxx_uniform_initialization\n" 367 | "CXX_FEATURE:" 368 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 369 | "1" 370 | #else 371 | "0" 372 | #endif 373 | "cxx_unrestricted_unions\n" 374 | "CXX_FEATURE:" 375 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 407 && __cplusplus >= 201103L 376 | "1" 377 | #else 378 | "0" 379 | #endif 380 | "cxx_user_literals\n" 381 | "CXX_FEATURE:" 382 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 500 && __cplusplus >= 201402L 383 | "1" 384 | #else 385 | "0" 386 | #endif 387 | "cxx_variable_templates\n" 388 | "CXX_FEATURE:" 389 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 390 | "1" 391 | #else 392 | "0" 393 | #endif 394 | "cxx_variadic_macros\n" 395 | "CXX_FEATURE:" 396 | #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 404 && (__cplusplus >= 201103L || (defined(__GXX_EXPERIMENTAL_CXX0X__) && __GXX_EXPERIMENTAL_CXX0X__)) 397 | "1" 398 | #else 399 | "0" 400 | #endif 401 | "cxx_variadic_templates\n" 402 | 403 | }; 404 | 405 | int main(int argc, char** argv) { (void)argv; return features[argc]; } 406 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/Makefile.cmake: -------------------------------------------------------------------------------- 1 | # CMAKE generated file: DO NOT EDIT! 2 | # Generated by "Unix Makefiles" Generator, CMake Version 3.8 3 | 4 | # The generator used is: 5 | set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles") 6 | 7 | # The top level Makefile was generated from the following files: 8 | set(CMAKE_MAKEFILE_DEPENDS 9 | "CMakeCache.txt" 10 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCCompiler.cmake.in" 11 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCCompilerABI.c" 12 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCInformation.cmake" 13 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCXXCompiler.cmake.in" 14 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCXXCompilerABI.cpp" 15 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCXXInformation.cmake" 16 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCommonLanguageInclude.cmake" 17 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeCompilerIdDetection.cmake" 18 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCCompiler.cmake" 19 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCXXCompiler.cmake" 20 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCompileFeatures.cmake" 21 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCompiler.cmake" 22 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCompilerABI.cmake" 23 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineCompilerId.cmake" 24 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineRCCompiler.cmake" 25 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeDetermineSystem.cmake" 26 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeExtraGeneratorDetermineCompilerMacrosAndIncludeDirs.cmake" 27 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeFindBinUtils.cmake" 28 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeFindCodeBlocks.cmake" 29 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeGenericSystem.cmake" 30 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeLanguageInformation.cmake" 31 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeParseImplicitLinkInfo.cmake" 32 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeRCCompiler.cmake.in" 33 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeRCInformation.cmake" 34 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeSystem.cmake.in" 35 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeSystemSpecificInformation.cmake" 36 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeSystemSpecificInitialize.cmake" 37 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeTestCCompiler.cmake" 38 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeTestCXXCompiler.cmake" 39 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeTestCompilerCommon.cmake" 40 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeTestRCCompiler.cmake" 41 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/CMakeUnixFindMake.cmake" 42 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/ADSP-DetermineCompiler.cmake" 43 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/ARMCC-DetermineCompiler.cmake" 44 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/AppleClang-DetermineCompiler.cmake" 45 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Borland-DetermineCompiler.cmake" 46 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Bruce-C-DetermineCompiler.cmake" 47 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Clang-DetermineCompiler.cmake" 48 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Clang-DetermineCompilerInternal.cmake" 49 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake" 50 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Compaq-C-DetermineCompiler.cmake" 51 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake" 52 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Cray-DetermineCompiler.cmake" 53 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Embarcadero-DetermineCompiler.cmake" 54 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Fujitsu-DetermineCompiler.cmake" 55 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GHS-DetermineCompiler.cmake" 56 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-C-DetermineCompiler.cmake" 57 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-C-FeatureTests.cmake" 58 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-C.cmake" 59 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake" 60 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-CXX-FeatureTests.cmake" 61 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU-CXX.cmake" 62 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/GNU.cmake" 63 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/HP-C-DetermineCompiler.cmake" 64 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/HP-CXX-DetermineCompiler.cmake" 65 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/IAR-DetermineCompiler.cmake" 66 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/IBMCPP-C-DetermineVersionInternal.cmake" 67 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake" 68 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Intel-DetermineCompiler.cmake" 69 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/MIPSpro-DetermineCompiler.cmake" 70 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/MSVC-DetermineCompiler.cmake" 71 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/NVIDIA-DetermineCompiler.cmake" 72 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake" 73 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/PGI-DetermineCompiler.cmake" 74 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/PathScale-DetermineCompiler.cmake" 75 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/SCO-DetermineCompiler.cmake" 76 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/SDCC-C-DetermineCompiler.cmake" 77 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/SunPro-C-DetermineCompiler.cmake" 78 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake" 79 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/TI-DetermineCompiler.cmake" 80 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/TinyCC-C-DetermineCompiler.cmake" 81 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/VisualAge-C-DetermineCompiler.cmake" 82 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake" 83 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/Watcom-DetermineCompiler.cmake" 84 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/XL-C-DetermineCompiler.cmake" 85 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/XL-CXX-DetermineCompiler.cmake" 86 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/zOS-C-DetermineCompiler.cmake" 87 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake" 88 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Internal/FeatureTesting.cmake" 89 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-Determine-CXX.cmake" 90 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-GNU-C.cmake" 91 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-GNU-CXX.cmake" 92 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-GNU.cmake" 93 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN-windres.cmake" 94 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/CYGWIN.cmake" 95 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/Platform/UnixPaths.cmake" 96 | "/cygdrive/c/Users/Ephraim Malinga/.CLion2017.2/system/cygwin_cmake/share/cmake-3.8.2/Modules/ProcessorCount.cmake" 97 | "../CMakeLists.txt" 98 | "CMakeFiles/3.8.2/CMakeCCompiler.cmake" 99 | "CMakeFiles/3.8.2/CMakeCXXCompiler.cmake" 100 | "CMakeFiles/3.8.2/CMakeRCCompiler.cmake" 101 | "CMakeFiles/3.8.2/CMakeSystem.cmake" 102 | "CMakeFiles/feature_tests.c" 103 | "CMakeFiles/feature_tests.cxx" 104 | ) 105 | 106 | # The corresponding makefile is: 107 | set(CMAKE_MAKEFILE_OUTPUTS 108 | "Makefile" 109 | "CMakeFiles/cmake.check_cache" 110 | ) 111 | 112 | # Byproducts of CMake generate step: 113 | set(CMAKE_MAKEFILE_PRODUCTS 114 | "CMakeFiles/3.8.2/CMakeSystem.cmake" 115 | "CMakeFiles/3.8.2/CMakeCCompiler.cmake" 116 | "CMakeFiles/3.8.2/CMakeCXXCompiler.cmake" 117 | "CMakeFiles/3.8.2/CMakeRCCompiler.cmake" 118 | "CMakeFiles/3.8.2/CMakeCCompiler.cmake" 119 | "CMakeFiles/3.8.2/CMakeCXXCompiler.cmake" 120 | "CMakeFiles/CMakeDirectoryInformation.cmake" 121 | ) 122 | 123 | # Dependency information for all targets: 124 | set(CMAKE_DEPEND_INFO_FILES 125 | "CMakeFiles/RevisionCode.dir/DependInfo.cmake" 126 | ) 127 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CompilerIdCXX/CMakeCXXCompilerId.cpp: -------------------------------------------------------------------------------- 1 | /* This source file must have a .cpp extension so that all C++ compilers 2 | recognize the extension without flags. Borland does not know .cxx for 3 | example. */ 4 | #ifndef __cplusplus 5 | # error "A C compiler has been selected for C++." 6 | #endif 7 | 8 | 9 | /* Version number components: V=Version, R=Revision, P=Patch 10 | Version date components: YYYY=Year, MM=Month, DD=Day */ 11 | 12 | #if defined(__COMO__) 13 | # define COMPILER_ID "Comeau" 14 | /* __COMO_VERSION__ = VRR */ 15 | # define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) 16 | # define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) 17 | 18 | #elif defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_CC) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_CC >= 0x5100 82 | /* __SUNPRO_CC = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_aCC) 94 | # define COMPILER_ID "HP" 95 | /* __HP_aCC = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) 99 | 100 | #elif defined(__DECCXX) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECCXX_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) 106 | 107 | #elif defined(__IBMCPP__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | /* __IBMCPP__ = VRP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 111 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 112 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 113 | 114 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 115 | # define COMPILER_ID "XL" 116 | /* __IBMCPP__ = VRP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 118 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 119 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 120 | 121 | #elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 122 | # define COMPILER_ID "VisualAge" 123 | /* __IBMCPP__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) 127 | 128 | #elif defined(__PGI) 129 | # define COMPILER_ID "PGI" 130 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 131 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 132 | # if defined(__PGIC_PATCHLEVEL__) 133 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 134 | # endif 135 | 136 | #elif defined(_CRAYC) 137 | # define COMPILER_ID "Cray" 138 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 139 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 140 | 141 | #elif defined(__TI_COMPILER_VERSION__) 142 | # define COMPILER_ID "TI" 143 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 144 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 145 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 146 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 147 | 148 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 149 | # define COMPILER_ID "Fujitsu" 150 | 151 | #elif defined(__SCO_VERSION__) 152 | # define COMPILER_ID "SCO" 153 | 154 | #elif defined(__clang__) && defined(__apple_build_version__) 155 | # define COMPILER_ID "AppleClang" 156 | # if defined(_MSC_VER) 157 | # define SIMULATE_ID "MSVC" 158 | # endif 159 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 160 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 161 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 162 | # if defined(_MSC_VER) 163 | /* _MSC_VER = VVRR */ 164 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 165 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 166 | # endif 167 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 168 | 169 | #elif defined(__clang__) 170 | # define COMPILER_ID "Clang" 171 | # if defined(_MSC_VER) 172 | # define SIMULATE_ID "MSVC" 173 | # endif 174 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 175 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 176 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 177 | # if defined(_MSC_VER) 178 | /* _MSC_VER = VVRR */ 179 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 180 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 181 | # endif 182 | 183 | #elif defined(__GNUC__) || defined(__GNUG__) 184 | # define COMPILER_ID "GNU" 185 | # if defined(__GNUC__) 186 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 187 | # else 188 | # define COMPILER_VERSION_MAJOR DEC(__GNUG__) 189 | # endif 190 | # if defined(__GNUC_MINOR__) 191 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 192 | # endif 193 | # if defined(__GNUC_PATCHLEVEL__) 194 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 195 | # endif 196 | 197 | #elif defined(_MSC_VER) 198 | # define COMPILER_ID "MSVC" 199 | /* _MSC_VER = VVRR */ 200 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 201 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 202 | # if defined(_MSC_FULL_VER) 203 | # if _MSC_VER >= 1400 204 | /* _MSC_FULL_VER = VVRRPPPPP */ 205 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 206 | # else 207 | /* _MSC_FULL_VER = VVRRPPPP */ 208 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 209 | # endif 210 | # endif 211 | # if defined(_MSC_BUILD) 212 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 213 | # endif 214 | 215 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 216 | # define COMPILER_ID "ADSP" 217 | #if defined(__VISUALDSPVERSION__) 218 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 219 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 220 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 221 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 222 | #endif 223 | 224 | #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC) 225 | # define COMPILER_ID "IAR" 226 | 227 | #elif defined(__ARMCC_VERSION) 228 | # define COMPILER_ID "ARMCC" 229 | #if __ARMCC_VERSION >= 1000000 230 | /* __ARMCC_VERSION = VRRPPPP */ 231 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 232 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 233 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 234 | #else 235 | /* __ARMCC_VERSION = VRPPPP */ 236 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 237 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 238 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 239 | #endif 240 | 241 | 242 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 243 | # define COMPILER_ID "MIPSpro" 244 | # if defined(_SGI_COMPILER_VERSION) 245 | /* _SGI_COMPILER_VERSION = VRP */ 246 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 247 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 248 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 249 | # else 250 | /* _COMPILER_VERSION = VRP */ 251 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 252 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 253 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 254 | # endif 255 | 256 | 257 | /* These compilers are either not known or too old to define an 258 | identification macro. Try to identify the platform and guess that 259 | it is the native compiler. */ 260 | #elif defined(__sgi) 261 | # define COMPILER_ID "MIPSpro" 262 | 263 | #elif defined(__hpux) || defined(__hpua) 264 | # define COMPILER_ID "HP" 265 | 266 | #else /* unknown compiler */ 267 | # define COMPILER_ID "" 268 | #endif 269 | 270 | /* Construct the string literal in pieces to prevent the source from 271 | getting matched. Store it in a pointer rather than an array 272 | because some compilers will just produce instructions to fill the 273 | array rather than assigning a pointer to a static array. */ 274 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 275 | #ifdef SIMULATE_ID 276 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 277 | #endif 278 | 279 | #ifdef __QNXNTO__ 280 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 281 | #endif 282 | 283 | #if defined(__CRAYXE) || defined(__CRAYXC) 284 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 285 | #endif 286 | 287 | #define STRINGIFY_HELPER(X) #X 288 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 289 | 290 | /* Identify known platforms by name. */ 291 | #if defined(__linux) || defined(__linux__) || defined(linux) 292 | # define PLATFORM_ID "Linux" 293 | 294 | #elif defined(__CYGWIN__) 295 | # define PLATFORM_ID "Cygwin" 296 | 297 | #elif defined(__MINGW32__) 298 | # define PLATFORM_ID "MinGW" 299 | 300 | #elif defined(__APPLE__) 301 | # define PLATFORM_ID "Darwin" 302 | 303 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 304 | # define PLATFORM_ID "Windows" 305 | 306 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 307 | # define PLATFORM_ID "FreeBSD" 308 | 309 | #elif defined(__NetBSD__) || defined(__NetBSD) 310 | # define PLATFORM_ID "NetBSD" 311 | 312 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 313 | # define PLATFORM_ID "OpenBSD" 314 | 315 | #elif defined(__sun) || defined(sun) 316 | # define PLATFORM_ID "SunOS" 317 | 318 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 319 | # define PLATFORM_ID "AIX" 320 | 321 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 322 | # define PLATFORM_ID "IRIX" 323 | 324 | #elif defined(__hpux) || defined(__hpux__) 325 | # define PLATFORM_ID "HP-UX" 326 | 327 | #elif defined(__HAIKU__) 328 | # define PLATFORM_ID "Haiku" 329 | 330 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 331 | # define PLATFORM_ID "BeOS" 332 | 333 | #elif defined(__QNX__) || defined(__QNXNTO__) 334 | # define PLATFORM_ID "QNX" 335 | 336 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 337 | # define PLATFORM_ID "Tru64" 338 | 339 | #elif defined(__riscos) || defined(__riscos__) 340 | # define PLATFORM_ID "RISCos" 341 | 342 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 343 | # define PLATFORM_ID "SINIX" 344 | 345 | #elif defined(__UNIX_SV__) 346 | # define PLATFORM_ID "UNIX_SV" 347 | 348 | #elif defined(__bsdos__) 349 | # define PLATFORM_ID "BSDOS" 350 | 351 | #elif defined(_MPRAS) || defined(MPRAS) 352 | # define PLATFORM_ID "MP-RAS" 353 | 354 | #elif defined(__osf) || defined(__osf__) 355 | # define PLATFORM_ID "OSF1" 356 | 357 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 358 | # define PLATFORM_ID "SCO_SV" 359 | 360 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 361 | # define PLATFORM_ID "ULTRIX" 362 | 363 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 364 | # define PLATFORM_ID "Xenix" 365 | 366 | #elif defined(__WATCOMC__) 367 | # if defined(__LINUX__) 368 | # define PLATFORM_ID "Linux" 369 | 370 | # elif defined(__DOS__) 371 | # define PLATFORM_ID "DOS" 372 | 373 | # elif defined(__OS2__) 374 | # define PLATFORM_ID "OS2" 375 | 376 | # elif defined(__WINDOWS__) 377 | # define PLATFORM_ID "Windows3x" 378 | 379 | # else /* unknown platform */ 380 | # define PLATFORM_ID 381 | # endif 382 | 383 | #else /* unknown platform */ 384 | # define PLATFORM_ID 385 | 386 | #endif 387 | 388 | /* For windows compilers MSVC and Intel we can determine 389 | the architecture of the compiler being used. This is because 390 | the compilers do not have flags that can change the architecture, 391 | but rather depend on which compiler is being used 392 | */ 393 | #if defined(_WIN32) && defined(_MSC_VER) 394 | # if defined(_M_IA64) 395 | # define ARCHITECTURE_ID "IA64" 396 | 397 | # elif defined(_M_X64) || defined(_M_AMD64) 398 | # define ARCHITECTURE_ID "x64" 399 | 400 | # elif defined(_M_IX86) 401 | # define ARCHITECTURE_ID "X86" 402 | 403 | # elif defined(_M_ARM) 404 | # if _M_ARM == 4 405 | # define ARCHITECTURE_ID "ARMV4I" 406 | # elif _M_ARM == 5 407 | # define ARCHITECTURE_ID "ARMV5I" 408 | # else 409 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 410 | # endif 411 | 412 | # elif defined(_M_MIPS) 413 | # define ARCHITECTURE_ID "MIPS" 414 | 415 | # elif defined(_M_SH) 416 | # define ARCHITECTURE_ID "SHx" 417 | 418 | # else /* unknown architecture */ 419 | # define ARCHITECTURE_ID "" 420 | # endif 421 | 422 | #elif defined(__WATCOMC__) 423 | # if defined(_M_I86) 424 | # define ARCHITECTURE_ID "I86" 425 | 426 | # elif defined(_M_IX86) 427 | # define ARCHITECTURE_ID "X86" 428 | 429 | # else /* unknown architecture */ 430 | # define ARCHITECTURE_ID "" 431 | # endif 432 | 433 | #else 434 | # define ARCHITECTURE_ID 435 | #endif 436 | 437 | /* Convert integer to decimal digit literals. */ 438 | #define DEC(n) \ 439 | ('0' + (((n) / 10000000)%10)), \ 440 | ('0' + (((n) / 1000000)%10)), \ 441 | ('0' + (((n) / 100000)%10)), \ 442 | ('0' + (((n) / 10000)%10)), \ 443 | ('0' + (((n) / 1000)%10)), \ 444 | ('0' + (((n) / 100)%10)), \ 445 | ('0' + (((n) / 10)%10)), \ 446 | ('0' + ((n) % 10)) 447 | 448 | /* Convert integer to hex digit literals. */ 449 | #define HEX(n) \ 450 | ('0' + ((n)>>28 & 0xF)), \ 451 | ('0' + ((n)>>24 & 0xF)), \ 452 | ('0' + ((n)>>20 & 0xF)), \ 453 | ('0' + ((n)>>16 & 0xF)), \ 454 | ('0' + ((n)>>12 & 0xF)), \ 455 | ('0' + ((n)>>8 & 0xF)), \ 456 | ('0' + ((n)>>4 & 0xF)), \ 457 | ('0' + ((n) & 0xF)) 458 | 459 | /* Construct a string literal encoding the version number components. */ 460 | #ifdef COMPILER_VERSION_MAJOR 461 | char const info_version[] = { 462 | 'I', 'N', 'F', 'O', ':', 463 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 464 | COMPILER_VERSION_MAJOR, 465 | # ifdef COMPILER_VERSION_MINOR 466 | '.', COMPILER_VERSION_MINOR, 467 | # ifdef COMPILER_VERSION_PATCH 468 | '.', COMPILER_VERSION_PATCH, 469 | # ifdef COMPILER_VERSION_TWEAK 470 | '.', COMPILER_VERSION_TWEAK, 471 | # endif 472 | # endif 473 | # endif 474 | ']','\0'}; 475 | #endif 476 | 477 | /* Construct a string literal encoding the version number components. */ 478 | #ifdef SIMULATE_VERSION_MAJOR 479 | char const info_simulate_version[] = { 480 | 'I', 'N', 'F', 'O', ':', 481 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 482 | SIMULATE_VERSION_MAJOR, 483 | # ifdef SIMULATE_VERSION_MINOR 484 | '.', SIMULATE_VERSION_MINOR, 485 | # ifdef SIMULATE_VERSION_PATCH 486 | '.', SIMULATE_VERSION_PATCH, 487 | # ifdef SIMULATE_VERSION_TWEAK 488 | '.', SIMULATE_VERSION_TWEAK, 489 | # endif 490 | # endif 491 | # endif 492 | ']','\0'}; 493 | #endif 494 | 495 | /* Construct the string literal in pieces to prevent the source from 496 | getting matched. Store it in a pointer rather than an array 497 | because some compilers will just produce instructions to fill the 498 | array rather than assigning a pointer to a static array. */ 499 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 500 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 501 | 502 | 503 | 504 | 505 | const char* info_language_dialect_default = "INFO" ":" "dialect_default[" 506 | #if __cplusplus > 201402L 507 | "17" 508 | #elif __cplusplus >= 201402L 509 | "14" 510 | #elif __cplusplus >= 201103L 511 | "11" 512 | #else 513 | "98" 514 | #endif 515 | "]"; 516 | 517 | /*--------------------------------------------------------------------------*/ 518 | 519 | int main(int argc, char* argv[]) 520 | { 521 | int require = 0; 522 | require += info_compiler[argc]; 523 | require += info_platform[argc]; 524 | #ifdef COMPILER_VERSION_MAJOR 525 | require += info_version[argc]; 526 | #endif 527 | #ifdef SIMULATE_ID 528 | require += info_simulate[argc]; 529 | #endif 530 | #ifdef SIMULATE_VERSION_MAJOR 531 | require += info_simulate_version[argc]; 532 | #endif 533 | #if defined(__CRAYXE) || defined(__CRAYXC) 534 | require += info_cray[argc]; 535 | #endif 536 | require += info_language_dialect_default[argc]; 537 | (void)argv; 538 | return require; 539 | } 540 | -------------------------------------------------------------------------------- /cmake-build-debug/CMakeFiles/3.8.2/CompilerIdC/CMakeCCompilerId.c: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | # error "A C++ compiler has been selected for C." 3 | #endif 4 | 5 | #if defined(__18CXX) 6 | # define ID_VOID_MAIN 7 | #endif 8 | #if defined(__CLASSIC_C__) 9 | /* cv-qualifiers did not exist in K&R C */ 10 | # define const 11 | # define volatile 12 | #endif 13 | 14 | 15 | /* Version number components: V=Version, R=Revision, P=Patch 16 | Version date components: YYYY=Year, MM=Month, DD=Day */ 17 | 18 | #if defined(__INTEL_COMPILER) || defined(__ICC) 19 | # define COMPILER_ID "Intel" 20 | # if defined(_MSC_VER) 21 | # define SIMULATE_ID "MSVC" 22 | # endif 23 | /* __INTEL_COMPILER = VRP */ 24 | # define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) 25 | # define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) 26 | # if defined(__INTEL_COMPILER_UPDATE) 27 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) 28 | # else 29 | # define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) 30 | # endif 31 | # if defined(__INTEL_COMPILER_BUILD_DATE) 32 | /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ 33 | # define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) 34 | # endif 35 | # if defined(_MSC_VER) 36 | /* _MSC_VER = VVRR */ 37 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 38 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 39 | # endif 40 | 41 | #elif defined(__PATHCC__) 42 | # define COMPILER_ID "PathScale" 43 | # define COMPILER_VERSION_MAJOR DEC(__PATHCC__) 44 | # define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) 45 | # if defined(__PATHCC_PATCHLEVEL__) 46 | # define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) 47 | # endif 48 | 49 | #elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) 50 | # define COMPILER_ID "Embarcadero" 51 | # define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) 52 | # define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) 53 | # define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) 54 | 55 | #elif defined(__BORLANDC__) 56 | # define COMPILER_ID "Borland" 57 | /* __BORLANDC__ = 0xVRR */ 58 | # define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) 59 | # define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) 60 | 61 | #elif defined(__WATCOMC__) && __WATCOMC__ < 1200 62 | # define COMPILER_ID "Watcom" 63 | /* __WATCOMC__ = VVRR */ 64 | # define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) 65 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 66 | # if (__WATCOMC__ % 10) > 0 67 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 68 | # endif 69 | 70 | #elif defined(__WATCOMC__) 71 | # define COMPILER_ID "OpenWatcom" 72 | /* __WATCOMC__ = VVRP + 1100 */ 73 | # define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) 74 | # define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) 75 | # if (__WATCOMC__ % 10) > 0 76 | # define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) 77 | # endif 78 | 79 | #elif defined(__SUNPRO_C) 80 | # define COMPILER_ID "SunPro" 81 | # if __SUNPRO_C >= 0x5100 82 | /* __SUNPRO_C = 0xVRRP */ 83 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) 84 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) 85 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 86 | # else 87 | /* __SUNPRO_CC = 0xVRP */ 88 | # define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) 89 | # define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) 90 | # define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) 91 | # endif 92 | 93 | #elif defined(__HP_cc) 94 | # define COMPILER_ID "HP" 95 | /* __HP_cc = VVRRPP */ 96 | # define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) 97 | # define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) 98 | # define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) 99 | 100 | #elif defined(__DECC) 101 | # define COMPILER_ID "Compaq" 102 | /* __DECC_VER = VVRRTPPPP */ 103 | # define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) 104 | # define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) 105 | # define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) 106 | 107 | #elif defined(__IBMC__) && defined(__COMPILER_VER__) 108 | # define COMPILER_ID "zOS" 109 | /* __IBMC__ = VRP */ 110 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 111 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 112 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 113 | 114 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 115 | # define COMPILER_ID "XL" 116 | /* __IBMC__ = VRP */ 117 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 118 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 119 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 120 | 121 | #elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 122 | # define COMPILER_ID "VisualAge" 123 | /* __IBMC__ = VRP */ 124 | # define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) 125 | # define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) 126 | # define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) 127 | 128 | #elif defined(__PGI) 129 | # define COMPILER_ID "PGI" 130 | # define COMPILER_VERSION_MAJOR DEC(__PGIC__) 131 | # define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) 132 | # if defined(__PGIC_PATCHLEVEL__) 133 | # define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) 134 | # endif 135 | 136 | #elif defined(_CRAYC) 137 | # define COMPILER_ID "Cray" 138 | # define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) 139 | # define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) 140 | 141 | #elif defined(__TI_COMPILER_VERSION__) 142 | # define COMPILER_ID "TI" 143 | /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ 144 | # define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) 145 | # define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) 146 | # define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) 147 | 148 | #elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) 149 | # define COMPILER_ID "Fujitsu" 150 | 151 | #elif defined(__TINYC__) 152 | # define COMPILER_ID "TinyCC" 153 | 154 | #elif defined(__BCC__) 155 | # define COMPILER_ID "Bruce" 156 | 157 | #elif defined(__SCO_VERSION__) 158 | # define COMPILER_ID "SCO" 159 | 160 | #elif defined(__clang__) && defined(__apple_build_version__) 161 | # define COMPILER_ID "AppleClang" 162 | # if defined(_MSC_VER) 163 | # define SIMULATE_ID "MSVC" 164 | # endif 165 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 166 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 167 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 168 | # if defined(_MSC_VER) 169 | /* _MSC_VER = VVRR */ 170 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 171 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 172 | # endif 173 | # define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) 174 | 175 | #elif defined(__clang__) 176 | # define COMPILER_ID "Clang" 177 | # if defined(_MSC_VER) 178 | # define SIMULATE_ID "MSVC" 179 | # endif 180 | # define COMPILER_VERSION_MAJOR DEC(__clang_major__) 181 | # define COMPILER_VERSION_MINOR DEC(__clang_minor__) 182 | # define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) 183 | # if defined(_MSC_VER) 184 | /* _MSC_VER = VVRR */ 185 | # define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) 186 | # define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) 187 | # endif 188 | 189 | #elif defined(__GNUC__) 190 | # define COMPILER_ID "GNU" 191 | # define COMPILER_VERSION_MAJOR DEC(__GNUC__) 192 | # if defined(__GNUC_MINOR__) 193 | # define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) 194 | # endif 195 | # if defined(__GNUC_PATCHLEVEL__) 196 | # define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) 197 | # endif 198 | 199 | #elif defined(_MSC_VER) 200 | # define COMPILER_ID "MSVC" 201 | /* _MSC_VER = VVRR */ 202 | # define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) 203 | # define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) 204 | # if defined(_MSC_FULL_VER) 205 | # if _MSC_VER >= 1400 206 | /* _MSC_FULL_VER = VVRRPPPPP */ 207 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) 208 | # else 209 | /* _MSC_FULL_VER = VVRRPPPP */ 210 | # define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) 211 | # endif 212 | # endif 213 | # if defined(_MSC_BUILD) 214 | # define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) 215 | # endif 216 | 217 | #elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) 218 | # define COMPILER_ID "ADSP" 219 | #if defined(__VISUALDSPVERSION__) 220 | /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ 221 | # define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) 222 | # define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) 223 | # define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) 224 | #endif 225 | 226 | #elif defined(__IAR_SYSTEMS_ICC__ ) || defined(__IAR_SYSTEMS_ICC) 227 | # define COMPILER_ID "IAR" 228 | 229 | #elif defined(__ARMCC_VERSION) 230 | # define COMPILER_ID "ARMCC" 231 | #if __ARMCC_VERSION >= 1000000 232 | /* __ARMCC_VERSION = VRRPPPP */ 233 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) 234 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) 235 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 236 | #else 237 | /* __ARMCC_VERSION = VRPPPP */ 238 | # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) 239 | # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) 240 | # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) 241 | #endif 242 | 243 | 244 | #elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) 245 | # define COMPILER_ID "SDCC" 246 | # if defined(__SDCC_VERSION_MAJOR) 247 | # define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) 248 | # define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) 249 | # define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) 250 | # else 251 | /* SDCC = VRP */ 252 | # define COMPILER_VERSION_MAJOR DEC(SDCC/100) 253 | # define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) 254 | # define COMPILER_VERSION_PATCH DEC(SDCC % 10) 255 | # endif 256 | 257 | #elif defined(_SGI_COMPILER_VERSION) || defined(_COMPILER_VERSION) 258 | # define COMPILER_ID "MIPSpro" 259 | # if defined(_SGI_COMPILER_VERSION) 260 | /* _SGI_COMPILER_VERSION = VRP */ 261 | # define COMPILER_VERSION_MAJOR DEC(_SGI_COMPILER_VERSION/100) 262 | # define COMPILER_VERSION_MINOR DEC(_SGI_COMPILER_VERSION/10 % 10) 263 | # define COMPILER_VERSION_PATCH DEC(_SGI_COMPILER_VERSION % 10) 264 | # else 265 | /* _COMPILER_VERSION = VRP */ 266 | # define COMPILER_VERSION_MAJOR DEC(_COMPILER_VERSION/100) 267 | # define COMPILER_VERSION_MINOR DEC(_COMPILER_VERSION/10 % 10) 268 | # define COMPILER_VERSION_PATCH DEC(_COMPILER_VERSION % 10) 269 | # endif 270 | 271 | 272 | /* These compilers are either not known or too old to define an 273 | identification macro. Try to identify the platform and guess that 274 | it is the native compiler. */ 275 | #elif defined(__sgi) 276 | # define COMPILER_ID "MIPSpro" 277 | 278 | #elif defined(__hpux) || defined(__hpua) 279 | # define COMPILER_ID "HP" 280 | 281 | #else /* unknown compiler */ 282 | # define COMPILER_ID "" 283 | #endif 284 | 285 | /* Construct the string literal in pieces to prevent the source from 286 | getting matched. Store it in a pointer rather than an array 287 | because some compilers will just produce instructions to fill the 288 | array rather than assigning a pointer to a static array. */ 289 | char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; 290 | #ifdef SIMULATE_ID 291 | char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; 292 | #endif 293 | 294 | #ifdef __QNXNTO__ 295 | char const* qnxnto = "INFO" ":" "qnxnto[]"; 296 | #endif 297 | 298 | #if defined(__CRAYXE) || defined(__CRAYXC) 299 | char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; 300 | #endif 301 | 302 | #define STRINGIFY_HELPER(X) #X 303 | #define STRINGIFY(X) STRINGIFY_HELPER(X) 304 | 305 | /* Identify known platforms by name. */ 306 | #if defined(__linux) || defined(__linux__) || defined(linux) 307 | # define PLATFORM_ID "Linux" 308 | 309 | #elif defined(__CYGWIN__) 310 | # define PLATFORM_ID "Cygwin" 311 | 312 | #elif defined(__MINGW32__) 313 | # define PLATFORM_ID "MinGW" 314 | 315 | #elif defined(__APPLE__) 316 | # define PLATFORM_ID "Darwin" 317 | 318 | #elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) 319 | # define PLATFORM_ID "Windows" 320 | 321 | #elif defined(__FreeBSD__) || defined(__FreeBSD) 322 | # define PLATFORM_ID "FreeBSD" 323 | 324 | #elif defined(__NetBSD__) || defined(__NetBSD) 325 | # define PLATFORM_ID "NetBSD" 326 | 327 | #elif defined(__OpenBSD__) || defined(__OPENBSD) 328 | # define PLATFORM_ID "OpenBSD" 329 | 330 | #elif defined(__sun) || defined(sun) 331 | # define PLATFORM_ID "SunOS" 332 | 333 | #elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) 334 | # define PLATFORM_ID "AIX" 335 | 336 | #elif defined(__sgi) || defined(__sgi__) || defined(_SGI) 337 | # define PLATFORM_ID "IRIX" 338 | 339 | #elif defined(__hpux) || defined(__hpux__) 340 | # define PLATFORM_ID "HP-UX" 341 | 342 | #elif defined(__HAIKU__) 343 | # define PLATFORM_ID "Haiku" 344 | 345 | #elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) 346 | # define PLATFORM_ID "BeOS" 347 | 348 | #elif defined(__QNX__) || defined(__QNXNTO__) 349 | # define PLATFORM_ID "QNX" 350 | 351 | #elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) 352 | # define PLATFORM_ID "Tru64" 353 | 354 | #elif defined(__riscos) || defined(__riscos__) 355 | # define PLATFORM_ID "RISCos" 356 | 357 | #elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) 358 | # define PLATFORM_ID "SINIX" 359 | 360 | #elif defined(__UNIX_SV__) 361 | # define PLATFORM_ID "UNIX_SV" 362 | 363 | #elif defined(__bsdos__) 364 | # define PLATFORM_ID "BSDOS" 365 | 366 | #elif defined(_MPRAS) || defined(MPRAS) 367 | # define PLATFORM_ID "MP-RAS" 368 | 369 | #elif defined(__osf) || defined(__osf__) 370 | # define PLATFORM_ID "OSF1" 371 | 372 | #elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) 373 | # define PLATFORM_ID "SCO_SV" 374 | 375 | #elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) 376 | # define PLATFORM_ID "ULTRIX" 377 | 378 | #elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) 379 | # define PLATFORM_ID "Xenix" 380 | 381 | #elif defined(__WATCOMC__) 382 | # if defined(__LINUX__) 383 | # define PLATFORM_ID "Linux" 384 | 385 | # elif defined(__DOS__) 386 | # define PLATFORM_ID "DOS" 387 | 388 | # elif defined(__OS2__) 389 | # define PLATFORM_ID "OS2" 390 | 391 | # elif defined(__WINDOWS__) 392 | # define PLATFORM_ID "Windows3x" 393 | 394 | # else /* unknown platform */ 395 | # define PLATFORM_ID 396 | # endif 397 | 398 | #else /* unknown platform */ 399 | # define PLATFORM_ID 400 | 401 | #endif 402 | 403 | /* For windows compilers MSVC and Intel we can determine 404 | the architecture of the compiler being used. This is because 405 | the compilers do not have flags that can change the architecture, 406 | but rather depend on which compiler is being used 407 | */ 408 | #if defined(_WIN32) && defined(_MSC_VER) 409 | # if defined(_M_IA64) 410 | # define ARCHITECTURE_ID "IA64" 411 | 412 | # elif defined(_M_X64) || defined(_M_AMD64) 413 | # define ARCHITECTURE_ID "x64" 414 | 415 | # elif defined(_M_IX86) 416 | # define ARCHITECTURE_ID "X86" 417 | 418 | # elif defined(_M_ARM) 419 | # if _M_ARM == 4 420 | # define ARCHITECTURE_ID "ARMV4I" 421 | # elif _M_ARM == 5 422 | # define ARCHITECTURE_ID "ARMV5I" 423 | # else 424 | # define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) 425 | # endif 426 | 427 | # elif defined(_M_MIPS) 428 | # define ARCHITECTURE_ID "MIPS" 429 | 430 | # elif defined(_M_SH) 431 | # define ARCHITECTURE_ID "SHx" 432 | 433 | # else /* unknown architecture */ 434 | # define ARCHITECTURE_ID "" 435 | # endif 436 | 437 | #elif defined(__WATCOMC__) 438 | # if defined(_M_I86) 439 | # define ARCHITECTURE_ID "I86" 440 | 441 | # elif defined(_M_IX86) 442 | # define ARCHITECTURE_ID "X86" 443 | 444 | # else /* unknown architecture */ 445 | # define ARCHITECTURE_ID "" 446 | # endif 447 | 448 | #else 449 | # define ARCHITECTURE_ID 450 | #endif 451 | 452 | /* Convert integer to decimal digit literals. */ 453 | #define DEC(n) \ 454 | ('0' + (((n) / 10000000)%10)), \ 455 | ('0' + (((n) / 1000000)%10)), \ 456 | ('0' + (((n) / 100000)%10)), \ 457 | ('0' + (((n) / 10000)%10)), \ 458 | ('0' + (((n) / 1000)%10)), \ 459 | ('0' + (((n) / 100)%10)), \ 460 | ('0' + (((n) / 10)%10)), \ 461 | ('0' + ((n) % 10)) 462 | 463 | /* Convert integer to hex digit literals. */ 464 | #define HEX(n) \ 465 | ('0' + ((n)>>28 & 0xF)), \ 466 | ('0' + ((n)>>24 & 0xF)), \ 467 | ('0' + ((n)>>20 & 0xF)), \ 468 | ('0' + ((n)>>16 & 0xF)), \ 469 | ('0' + ((n)>>12 & 0xF)), \ 470 | ('0' + ((n)>>8 & 0xF)), \ 471 | ('0' + ((n)>>4 & 0xF)), \ 472 | ('0' + ((n) & 0xF)) 473 | 474 | /* Construct a string literal encoding the version number components. */ 475 | #ifdef COMPILER_VERSION_MAJOR 476 | char const info_version[] = { 477 | 'I', 'N', 'F', 'O', ':', 478 | 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', 479 | COMPILER_VERSION_MAJOR, 480 | # ifdef COMPILER_VERSION_MINOR 481 | '.', COMPILER_VERSION_MINOR, 482 | # ifdef COMPILER_VERSION_PATCH 483 | '.', COMPILER_VERSION_PATCH, 484 | # ifdef COMPILER_VERSION_TWEAK 485 | '.', COMPILER_VERSION_TWEAK, 486 | # endif 487 | # endif 488 | # endif 489 | ']','\0'}; 490 | #endif 491 | 492 | /* Construct a string literal encoding the version number components. */ 493 | #ifdef SIMULATE_VERSION_MAJOR 494 | char const info_simulate_version[] = { 495 | 'I', 'N', 'F', 'O', ':', 496 | 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', 497 | SIMULATE_VERSION_MAJOR, 498 | # ifdef SIMULATE_VERSION_MINOR 499 | '.', SIMULATE_VERSION_MINOR, 500 | # ifdef SIMULATE_VERSION_PATCH 501 | '.', SIMULATE_VERSION_PATCH, 502 | # ifdef SIMULATE_VERSION_TWEAK 503 | '.', SIMULATE_VERSION_TWEAK, 504 | # endif 505 | # endif 506 | # endif 507 | ']','\0'}; 508 | #endif 509 | 510 | /* Construct the string literal in pieces to prevent the source from 511 | getting matched. Store it in a pointer rather than an array 512 | because some compilers will just produce instructions to fill the 513 | array rather than assigning a pointer to a static array. */ 514 | char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; 515 | char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; 516 | 517 | 518 | 519 | 520 | #if !defined(__STDC__) 521 | # if defined(_MSC_VER) && !defined(__clang__) 522 | # define C_DIALECT "90" 523 | # else 524 | # define C_DIALECT 525 | # endif 526 | #elif __STDC_VERSION__ >= 201000L 527 | # define C_DIALECT "11" 528 | #elif __STDC_VERSION__ >= 199901L 529 | # define C_DIALECT "99" 530 | #else 531 | # define C_DIALECT "90" 532 | #endif 533 | const char* info_language_dialect_default = 534 | "INFO" ":" "dialect_default[" C_DIALECT "]"; 535 | 536 | /*--------------------------------------------------------------------------*/ 537 | 538 | #ifdef ID_VOID_MAIN 539 | void main() {} 540 | #else 541 | # if defined(__CLASSIC_C__) 542 | int main(argc, argv) int argc; char *argv[]; 543 | # else 544 | int main(int argc, char* argv[]) 545 | # endif 546 | { 547 | int require = 0; 548 | require += info_compiler[argc]; 549 | require += info_platform[argc]; 550 | require += info_arch[argc]; 551 | #ifdef COMPILER_VERSION_MAJOR 552 | require += info_version[argc]; 553 | #endif 554 | #ifdef SIMULATE_ID 555 | require += info_simulate[argc]; 556 | #endif 557 | #ifdef SIMULATE_VERSION_MAJOR 558 | require += info_simulate_version[argc]; 559 | #endif 560 | #if defined(__CRAYXE) || defined(__CRAYXC) 561 | require += info_cray[argc]; 562 | #endif 563 | require += info_language_dialect_default[argc]; 564 | (void)argv; 565 | return require; 566 | } 567 | #endif 568 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 67 | 68 | 75 | 76 | 77 | 78 | 79 | true 80 | DEFINITION_ORDER 81 | 82 | 83 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 |