From 57673718cdee3d97ffe5ed59ad6a4b416b0c9e95 Mon Sep 17 00:00:00 2001 From: seleznevae Date: Sat, 17 Mar 2018 21:53:38 +0300 Subject: [PATCH] [A] Appveyour integration - [A] Appveyour integration - [D] Deleted cmocka - [F] Fixed c++ warnings --- .travis.yml | 7 - CMakeLists.txt | 32 +- appveyor.yml | 6 +- example/main.c | 4 +- include/fort.h | 102 +- src/cell.c | 8 +- src/fort.c | 26 +- src/options.c | 14 +- src/options.h | 4 +- src/row.c | 31 +- src/string_buffer.c | 46 +- src/string_buffer.h | 2 +- src/table.c | 4 +- src/table.h | 2 +- src/vector.c | 15 +- tests/cmocka-1.1.0/.clang_complete | 2 - tests/cmocka-1.1.0/.ycm_extra_conf.py | 109 - tests/cmocka-1.1.0/AUTHORS | 3 - tests/cmocka-1.1.0/CMakeLists.txt | 88 - tests/cmocka-1.1.0/COPYING | 202 - tests/cmocka-1.1.0/CPackConfig.cmake | 53 - tests/cmocka-1.1.0/CTestConfig.cmake | 10 - tests/cmocka-1.1.0/ChangeLog | 92 - tests/cmocka-1.1.0/ConfigureChecks.cmake | 149 - tests/cmocka-1.1.0/DefineOptions.cmake | 7 - tests/cmocka-1.1.0/INSTALL | 102 - tests/cmocka-1.1.0/NEWS | 0 tests/cmocka-1.1.0/README | 15 - .../cmake/Modules/AddCMockaTest.cmake | 23 - .../cmake/Modules/COPYING-CMAKE-SCRIPTS | 22 - .../cmake/Modules/CheckCCompilerFlagSSP.cmake | 26 - .../cmake/Modules/DefineCMakeDefaults.cmake | 36 - .../cmake/Modules/DefineCompilerFlags.cmake | 79 - .../Modules/DefineInstallationPaths.cmake | 109 - .../Modules/DefinePlatformDefaults.cmake | 21 - .../cmocka-1.1.0/cmake/Modules/FindNSIS.cmake | 51 - .../Modules/MacroEnsureOutOfSourceBuild.cmake | 17 - .../cmake/Modules/UseDoxygen.cmake | 140 - .../cmocka-build-tree-settings.cmake.in | 1 - .../cmocka-config-version.cmake.in | 11 - tests/cmocka-1.1.0/cmocka-config.cmake.in | 11 - tests/cmocka-1.1.0/cmocka.pc.cmake | 6 - tests/cmocka-1.1.0/config.h.cmake | 169 - tests/cmocka-1.1.0/coverity/README | 9 - .../coverity/coverity_assert_model.c | 87 - .../coverity/coverity_internal_model.c | 5 - tests/cmocka-1.1.0/doc/CMakeLists.txt | 5 - tests/cmocka-1.1.0/doc/Doxyfile.in | 2358 ------------ tests/cmocka-1.1.0/doc/mainpage.dox | 133 - tests/cmocka-1.1.0/example/CMakeLists.txt | 140 - tests/cmocka-1.1.0/example/allocate_module.c | 55 - .../example/allocate_module_test.c | 53 - tests/cmocka-1.1.0/example/assert_macro.c | 39 - tests/cmocka-1.1.0/example/assert_macro.h | 2 - .../cmocka-1.1.0/example/assert_macro_test.c | 46 - tests/cmocka-1.1.0/example/assert_module.c | 38 - tests/cmocka-1.1.0/example/assert_module.h | 18 - .../cmocka-1.1.0/example/assert_module_test.c | 56 - tests/cmocka-1.1.0/example/calculator.c | 286 -- tests/cmocka-1.1.0/example/calculator_test.c | 482 --- .../example/chef_wrap/CMakeLists.txt | 20 - tests/cmocka-1.1.0/example/chef_wrap/chef.c | 54 - tests/cmocka-1.1.0/example/chef_wrap/chef.h | 19 - .../example/chef_wrap/waiter_test_wrap.c | 176 - .../example/chef_wrap/waiter_test_wrap.h | 2 - .../cmocka-1.1.0/example/customer_database.c | 51 - .../example/customer_database_test.c | 89 - tests/cmocka-1.1.0/example/database.h | 37 - tests/cmocka-1.1.0/example/key_value.c | 51 - tests/cmocka-1.1.0/example/key_value.h | 27 - tests/cmocka-1.1.0/example/key_value_test.c | 77 - tests/cmocka-1.1.0/example/product_database.c | 24 - .../example/product_database_test.c | 72 - tests/cmocka-1.1.0/example/simple_test.c | 17 - tests/cmocka-1.1.0/include/CMakeLists.txt | 27 - tests/cmocka-1.1.0/include/cmocka.h | 2284 ------------ tests/cmocka-1.1.0/include/cmocka_pbc.h | 62 - tests/cmocka-1.1.0/include/cmocka_private.h | 163 - .../cmocka-1.1.0/include/cmockery/cmockery.h | 1 - tests/cmocka-1.1.0/include/cmockery/pbc.h | 1 - tests/cmocka-1.1.0/src/CMakeLists.txt | 118 - tests/cmocka-1.1.0/src/cmocka.c | 3306 ----------------- tests/cmocka-1.1.0/src/cmocka.def | 49 - tests/cmocka-1.1.0/test_ordering_fail.c | 95 - tests/cmocka-1.1.0/tests/CMakeLists.txt | 243 -- tests/cmocka-1.1.0/tests/ctest-default.cmake | 74 - tests/cmocka-1.1.0/tests/test_alloc.c | 91 - tests/cmocka-1.1.0/tests/test_assert_macros.c | 41 - .../tests/test_assert_macros_fail.c | 43 - tests/cmocka-1.1.0/tests/test_basics.c | 62 - tests/cmocka-1.1.0/tests/test_cmockery.c | 32 - .../tests/test_exception_handler.c | 30 - tests/cmocka-1.1.0/tests/test_fixtures.c | 82 - .../cmocka-1.1.0/tests/test_group_fixtures.c | 50 - .../tests/test_group_setup_assert.c | 37 - .../tests/test_group_setup_fail.c | 34 - tests/cmocka-1.1.0/tests/test_groups.c | 69 - tests/cmocka-1.1.0/tests/test_ordering.c | 112 - tests/cmocka-1.1.0/tests/test_ordering_fail.c | 95 - tests/cmocka-1.1.0/tests/test_returns.c | 69 - tests/cmocka-1.1.0/tests/test_returns_fail.c | 77 - tests/cmocka-1.1.0/tests/test_setup_fail.c | 54 - tests/cmocka-1.1.0/tests/test_skip.c | 39 - tests/test.c | 30 +- tests/test_string_buffer.c | 60 +- tests/tests.h | 8 +- 106 files changed, 222 insertions(+), 13701 deletions(-) delete mode 100644 tests/cmocka-1.1.0/.clang_complete delete mode 100644 tests/cmocka-1.1.0/.ycm_extra_conf.py delete mode 100644 tests/cmocka-1.1.0/AUTHORS delete mode 100644 tests/cmocka-1.1.0/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/COPYING delete mode 100644 tests/cmocka-1.1.0/CPackConfig.cmake delete mode 100644 tests/cmocka-1.1.0/CTestConfig.cmake delete mode 100644 tests/cmocka-1.1.0/ChangeLog delete mode 100644 tests/cmocka-1.1.0/ConfigureChecks.cmake delete mode 100644 tests/cmocka-1.1.0/DefineOptions.cmake delete mode 100644 tests/cmocka-1.1.0/INSTALL delete mode 100644 tests/cmocka-1.1.0/NEWS delete mode 100644 tests/cmocka-1.1.0/README delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/AddCMockaTest.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/COPYING-CMAKE-SCRIPTS delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/CheckCCompilerFlagSSP.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/DefineCMakeDefaults.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/DefineInstallationPaths.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/DefinePlatformDefaults.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/FindNSIS.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake delete mode 100644 tests/cmocka-1.1.0/cmake/Modules/UseDoxygen.cmake delete mode 100644 tests/cmocka-1.1.0/cmocka-build-tree-settings.cmake.in delete mode 100644 tests/cmocka-1.1.0/cmocka-config-version.cmake.in delete mode 100644 tests/cmocka-1.1.0/cmocka-config.cmake.in delete mode 100644 tests/cmocka-1.1.0/cmocka.pc.cmake delete mode 100644 tests/cmocka-1.1.0/config.h.cmake delete mode 100644 tests/cmocka-1.1.0/coverity/README delete mode 100644 tests/cmocka-1.1.0/coverity/coverity_assert_model.c delete mode 100644 tests/cmocka-1.1.0/coverity/coverity_internal_model.c delete mode 100644 tests/cmocka-1.1.0/doc/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/doc/Doxyfile.in delete mode 100644 tests/cmocka-1.1.0/doc/mainpage.dox delete mode 100644 tests/cmocka-1.1.0/example/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/example/allocate_module.c delete mode 100644 tests/cmocka-1.1.0/example/allocate_module_test.c delete mode 100644 tests/cmocka-1.1.0/example/assert_macro.c delete mode 100644 tests/cmocka-1.1.0/example/assert_macro.h delete mode 100644 tests/cmocka-1.1.0/example/assert_macro_test.c delete mode 100644 tests/cmocka-1.1.0/example/assert_module.c delete mode 100644 tests/cmocka-1.1.0/example/assert_module.h delete mode 100644 tests/cmocka-1.1.0/example/assert_module_test.c delete mode 100644 tests/cmocka-1.1.0/example/calculator.c delete mode 100644 tests/cmocka-1.1.0/example/calculator_test.c delete mode 100644 tests/cmocka-1.1.0/example/chef_wrap/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/example/chef_wrap/chef.c delete mode 100644 tests/cmocka-1.1.0/example/chef_wrap/chef.h delete mode 100644 tests/cmocka-1.1.0/example/chef_wrap/waiter_test_wrap.c delete mode 100644 tests/cmocka-1.1.0/example/chef_wrap/waiter_test_wrap.h delete mode 100644 tests/cmocka-1.1.0/example/customer_database.c delete mode 100644 tests/cmocka-1.1.0/example/customer_database_test.c delete mode 100644 tests/cmocka-1.1.0/example/database.h delete mode 100644 tests/cmocka-1.1.0/example/key_value.c delete mode 100644 tests/cmocka-1.1.0/example/key_value.h delete mode 100644 tests/cmocka-1.1.0/example/key_value_test.c delete mode 100644 tests/cmocka-1.1.0/example/product_database.c delete mode 100644 tests/cmocka-1.1.0/example/product_database_test.c delete mode 100644 tests/cmocka-1.1.0/example/simple_test.c delete mode 100644 tests/cmocka-1.1.0/include/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/include/cmocka.h delete mode 100644 tests/cmocka-1.1.0/include/cmocka_pbc.h delete mode 100644 tests/cmocka-1.1.0/include/cmocka_private.h delete mode 100644 tests/cmocka-1.1.0/include/cmockery/cmockery.h delete mode 100644 tests/cmocka-1.1.0/include/cmockery/pbc.h delete mode 100644 tests/cmocka-1.1.0/src/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/src/cmocka.c delete mode 100644 tests/cmocka-1.1.0/src/cmocka.def delete mode 100644 tests/cmocka-1.1.0/test_ordering_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/CMakeLists.txt delete mode 100644 tests/cmocka-1.1.0/tests/ctest-default.cmake delete mode 100644 tests/cmocka-1.1.0/tests/test_alloc.c delete mode 100644 tests/cmocka-1.1.0/tests/test_assert_macros.c delete mode 100644 tests/cmocka-1.1.0/tests/test_assert_macros_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/test_basics.c delete mode 100644 tests/cmocka-1.1.0/tests/test_cmockery.c delete mode 100644 tests/cmocka-1.1.0/tests/test_exception_handler.c delete mode 100644 tests/cmocka-1.1.0/tests/test_fixtures.c delete mode 100644 tests/cmocka-1.1.0/tests/test_group_fixtures.c delete mode 100644 tests/cmocka-1.1.0/tests/test_group_setup_assert.c delete mode 100644 tests/cmocka-1.1.0/tests/test_group_setup_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/test_groups.c delete mode 100644 tests/cmocka-1.1.0/tests/test_ordering.c delete mode 100644 tests/cmocka-1.1.0/tests/test_ordering_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/test_returns.c delete mode 100644 tests/cmocka-1.1.0/tests/test_returns_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/test_setup_fail.c delete mode 100644 tests/cmocka-1.1.0/tests/test_skip.c diff --git a/.travis.yml b/.travis.yml index 2e7da81..55ecbcb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,13 +24,6 @@ script: # Print version and available CMake generators to aid in CI development - cmake --version - # Build cmocka - - mkdir -p tests/cmocka-1.1.0/build - - cd tests/cmocka-1.1.0/build - - cmake .. - - make - - cd ../../.. - # Perform out-of-source build(CMake backend generation, build, and test) # Test build without optimizations - mkdir -p build diff --git a/CMakeLists.txt b/CMakeLists.txt index b5a55a7..4f852fe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,17 +1,28 @@ +project(libfort) + +# Required cmake version cmake_minimum_required(VERSION 2.8) -project(libfort) option(FORT_TEST_BUILD "Test build with sanitizers and small library stack size" ON) option(FORT_GCC_BUILD "Build with gcc" ON) -option(CERAII_MSVC_BUILD "Build with msvc" OFF) +option(FORT_MSVC_BUILD "Build with msvc" OFF) +option(FORT_CXX_BUILD "Compile with c++ compiler instead of c" OFF) set(CMAKE_VERBOSE_MAKEFILE ON) include_directories(include) include_directories(src) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g ") +if(FORT_MSVC_BUILD) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W4") +else(FORT_MSVC_BUILD) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -g") +endif(FORT_MSVC_BUILD) + + + + @@ -30,14 +41,19 @@ set(FORT_SOURCES src/table.c src/fort_impl.c) +if(FORT_CXX_BUILD) + SET_SOURCE_FILES_PROPERTIES( ${FORT_SOURCES} PROPERTIES LANGUAGE CXX) +endif(FORT_CXX_BUILD) + + + + add_executable(${PROJECT_NAME}_example example/main.c ${FORT_SOURCES}) -include_directories(tests/cmocka-1.1.0/include) -link_directories(${CMAKE_SOURCE_DIR}/tests/cmocka-1.1.0/build/src) add_executable(${PROJECT_NAME}_test ${FORT_SOURCES} @@ -46,15 +62,13 @@ add_executable(${PROJECT_NAME}_test tests/test_table.c tests/test_string_buffer.c) -target_link_libraries(libfort_test - cmocka) -if(FORT_TEST_BUILD AND NOT CERAII_MSVC_BUILD) +if(FORT_TEST_BUILD AND NOT FORT_MSVC_BUILD) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address") if(FORT_GCC_BUILD) target_link_libraries(${PROJECT_NAME}_example asan) target_link_libraries(${PROJECT_NAME}_test asan) endif(FORT_GCC_BUILD) -endif(FORT_TEST_BUILD AND NOT CERAII_MSVC_BUILD) +endif(FORT_TEST_BUILD AND NOT FORT_MSVC_BUILD) diff --git a/appveyor.yml b/appveyor.yml index 7b30996..998c480 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,14 +12,14 @@ install: - git submodule update --init --recursive before_build: - - dir - mkdir build - cd build - - dir - cmake -G "Visual Studio 15 2017 Win64" .. -DFORT_TEST_BUILD=OFF -DFORT_GCC_BUILD=OFF -DFORT_MSVC_BUILD=ON + - dir build: project: $(APPVEYOR_BUILD_FOLDER)\build\$(APPVEYOR_PROJECT_NAME).sln test_script: -- '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_test.exe' \ No newline at end of file +- '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_test.exe' +- '%APPVEYOR_BUILD_FOLDER%\build\Debug\libfort_example.exe' \ No newline at end of file diff --git a/example/main.c b/example/main.c index 9cfb4fb..25702c7 100644 --- a/example/main.c +++ b/example/main.c @@ -111,7 +111,7 @@ int main() ft_destroy_table(table); /*-------------------------------------------------------------*/ - +#if !defined(__cplusplus) && !defined(FT_MICROSOFT_COMPILER) table = ft_create_table(); ft_set_option(table, FT_ANY_ROW, 0, FT_OPT_TEXT_ALIGN, LeftAligned); ft_set_option(table, FT_ANY_ROW, 1, FT_OPT_TEXT_ALIGN, CenterAligned); @@ -147,7 +147,7 @@ int main() printf("Table:\n"); printf("%s\n", ft_to_string(table)); ft_destroy_table(table); - +#endif /*---------------- Different styles --------------------*/ diff --git a/include/fort.h b/include/fort.h index 2f3f331..0f68d8b 100644 --- a/include/fort.h +++ b/include/fort.h @@ -51,21 +51,21 @@ SOFTWARE. /* * Declare restrict */ -#if defined(__cplusplus) -#if defined(FT_CLANG_COMPILER) -#define FT_RESTRICT __restrict__ -#else -#define FT_RESTRICT __restrict -#endif /* if defined(FT_CLANG_COMPILER) */ -#else -#if __STDC_VERSION__ < 199901L -#define FT_RESTRICT -#else -#define FT_RESTRICT restrict -#endif /* __STDC_VERSION__ < 199901L */ -#endif /* if defined(__cplusplus) */ +//#if defined(__cplusplus) +//#if defined(FT_CLANG_COMPILER) +//#define FT_RESTRICT __restrict__ +//#else +//#define FT_RESTRICT __restrict +//#endif /* if defined(FT_CLANG_COMPILER) */ +//#else +//#if __STDC_VERSION__ < 199901L +//#define FT_RESTRICT +//#else +//#define FT_RESTRICT restrict +//#endif /* __STDC_VERSION__ < 199901L */ +//#endif /* if defined(__cplusplus) */ -/* #define FT_RESTRICT*/ + #define FT_RESTRICT /* @@ -138,6 +138,7 @@ static FT_INLINE int ft_check_if_wstring_helper(const wchar_t*str) return 0; } +/* #define PP_ARG_N( \ _1, _2, _3, _4, _5, _6, _7, _8, _9,_10, \ _11,_12,_13,_14,_15,_16,_17,_18,_19,_20, \ @@ -152,43 +153,47 @@ static FT_INLINE int ft_check_if_wstring_helper(const wchar_t*str) PP_ARG_N(__VA_ARGS__) #define PP_NARG(...) \ PP_NARG_(__VA_ARGS__,PP_RSEQ_N()) +*/ +#define FORT_NARGS_IMPL_(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,N,...) N +#define FT_EXPAND_(x) x +#define PP_NARG(...) \ + FT_EXPAND_(FORT_NARGS_IMPL_(__VA_ARGS__,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0)) - -#define CHECK_IF_STRING_32(checker,arg,...) (checker(arg),CHECK_IF_STRING_31(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_31(checker,arg,...) (checker(arg),CHECK_IF_STRING_30(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_30(checker,arg,...) (checker(arg),CHECK_IF_STRING_29(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_29(checker,arg,...) (checker(arg),CHECK_IF_STRING_28(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_28(checker,arg,...) (checker(arg),CHECK_IF_STRING_27(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_27(checker,arg,...) (checker(arg),CHECK_IF_STRING_26(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_26(checker,arg,...) (checker(arg),CHECK_IF_STRING_25(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_25(checker,arg,...) (checker(arg),CHECK_IF_STRING_24(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_24(checker,arg,...) (checker(arg),CHECK_IF_STRING_23(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_23(checker,arg,...) (checker(arg),CHECK_IF_STRING_22(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_22(checker,arg,...) (checker(arg),CHECK_IF_STRING_21(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_21(checker,arg,...) (checker(arg),CHECK_IF_STRING_20(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_20(checker,arg,...) (checker(arg),CHECK_IF_STRING_19(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_19(checker,arg,...) (checker(arg),CHECK_IF_STRING_18(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_18(checker,arg,...) (checker(arg),CHECK_IF_STRING_17(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_17(checker,arg,...) (checker(arg),CHECK_IF_STRING_16(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_16(checker,arg,...) (checker(arg),CHECK_IF_STRING_15(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_15(checker,arg,...) (checker(arg),CHECK_IF_STRING_14(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_14(checker,arg,...) (checker(arg),CHECK_IF_STRING_13(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_13(checker,arg,...) (checker(arg),CHECK_IF_STRING_12(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_12(checker,arg,...) (checker(arg),CHECK_IF_STRING_11(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_11(checker,arg,...) (checker(arg),CHECK_IF_STRING_10(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_10(checker,arg,...) (checker(arg),CHECK_IF_STRING_9(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_9(checker,arg,...) (checker(arg),CHECK_IF_STRING_8(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_8(checker,arg,...) (checker(arg),CHECK_IF_STRING_7(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_7(checker,arg,...) (checker(arg),CHECK_IF_STRING_6(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_6(checker,arg,...) (checker(arg),CHECK_IF_STRING_5(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_5(checker,arg,...) (checker(arg),CHECK_IF_STRING_4(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_4(checker,arg,...) (checker(arg),CHECK_IF_STRING_3(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_3(checker,arg,...) (checker(arg),CHECK_IF_STRING_2(checker,__VA_ARGS__)) -#define CHECK_IF_STRING_2(checker,arg,...) (checker(arg),CHECK_IF_STRING_1(checker,__VA_ARGS__)) +#define CHECK_IF_STRING_32(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_31(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_31(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_30(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_30(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_29(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_29(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_28(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_28(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_27(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_27(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_26(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_26(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_25(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_25(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_24(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_24(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_23(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_23(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_22(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_22(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_21(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_21(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_20(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_20(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_19(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_19(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_18(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_18(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_17(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_17(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_16(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_16(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_15(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_15(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_14(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_14(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_13(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_13(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_12(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_12(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_11(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_11(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_10(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_10(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_9(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_9(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_8(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_8(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_7(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_7(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_6(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_6(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_5(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_5(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_4(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_4(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_3(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_3(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_2(checker,__VA_ARGS__))) +#define CHECK_IF_STRING_2(checker,arg,...) (checker(arg),FT_EXPAND_(CHECK_IF_STRING_1(checker,__VA_ARGS__))) #define CHECK_IF_STRING_1(checker,arg) (checker(arg)) -#define CHECK_IF_ARGS_ARE_STRINGS__(checker,func, ...) func(checker,__VA_ARGS__) +#define CHECK_IF_ARGS_ARE_STRINGS__(checker,func, ...) FT_EXPAND_(func(checker,__VA_ARGS__)) #define CHECK_IF_ARGS_ARE_STRINGS_(checker,basis, n, ...) CHECK_IF_ARGS_ARE_STRINGS__(checker,STR_2_CAT_(basis, n), __VA_ARGS__) #define CHECK_IF_ARGS_ARE_STRINGS(...) CHECK_IF_ARGS_ARE_STRINGS_(ft_check_if_string_helper,CHECK_IF_STRING_,PP_NARG(__VA_ARGS__), __VA_ARGS__) #ifdef FT_HAVE_WCHAR @@ -246,12 +251,13 @@ FT_EXTERN int ft_nwrite_ln(FTABLE *FT_RESTRICT table, size_t n, const char* FT_R FT_EXTERN int ft_row_write(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT row_cells[]); FT_EXTERN int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTRICT row_cells[]); +#if !defined(__cplusplus) && !defined(FT_MICROSOFT_COMPILER) FT_EXTERN int ft_s_table_write(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const char* FT_RESTRICT table_cells[rows][cols]); FT_EXTERN int ft_s_table_write_ln(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const char* FT_RESTRICT table_cells[rows][cols]); FT_EXTERN int ft_table_write(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const char* * FT_RESTRICT table_cells[rows]); FT_EXTERN int ft_table_write_ln(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const char* * FT_RESTRICT table_cells[rows]); - +#endif diff --git a/src/cell.c b/src/cell.c index 18bb0f7..4f2acf1 100644 --- a/src/cell.c +++ b/src/cell.c @@ -7,6 +7,7 @@ * CELL * ***************************************************************************/ + struct fort_cell { string_buffer_t *str_buffer; @@ -15,7 +16,7 @@ struct fort_cell fort_cell_t * create_cell() { - fort_cell_t *cell = F_CALLOC(sizeof(fort_cell_t), 1); + fort_cell_t *cell = (fort_cell_t *)F_CALLOC(sizeof(fort_cell_t), 1); if (cell == NULL) return NULL; cell->str_buffer = create_string_buffer(DEFAULT_STR_BUF_SIZE, CharBuf); @@ -49,7 +50,7 @@ int hint_width_cell(const fort_cell_t *cell, const context_t *context) int cell_padding_left = get_cell_opt_value_hierarcial(context->table_options, context->row, context->column, FT_OPT_LEFT_PADDING); int cell_padding_right = get_cell_opt_value_hierarcial(context->table_options, context->row, context->column, FT_OPT_RIGHT_PADDING); int result = cell_padding_left + cell_padding_right; - if (cell->str_buffer && cell->str_buffer->data) { + if (cell->str_buffer && cell->str_buffer->str.data) { result += buffer_text_width(cell->str_buffer); } result = MAX(result, get_cell_opt_value_hierarcial(context->table_options, context->row, context->column, FT_OPT_MIN_WIDTH)); @@ -64,7 +65,7 @@ int hint_height_cell(const fort_cell_t *cell, const context_t *context) int cell_padding_bottom = get_cell_opt_value_hierarcial(context->table_options, context->row, context->column, FT_OPT_BOTTOM_PADDING); int cell_empty_string_height = get_cell_opt_value_hierarcial(context->table_options, context->row, context->column, FT_OPT_EMPTY_STR_HEIGHT); int result = cell_padding_top + cell_padding_bottom; - if (cell->str_buffer && cell->str_buffer->data) { + if (cell->str_buffer && cell->str_buffer->str.data) { size_t text_height = buffer_text_height(cell->str_buffer); result += text_height == 0 ? cell_empty_string_height : text_height; } @@ -185,3 +186,4 @@ string_buffer_t *cell_get_string_buffer(fort_cell_t *cell) assert(cell->str_buffer); return cell->str_buffer; } + diff --git a/src/fort.c b/src/fort.c index 505a89e..78d2b71 100644 --- a/src/fort.c +++ b/src/fort.c @@ -49,7 +49,7 @@ SOFTWARE. FTABLE * ft_create_table(void) { - FTABLE *result = F_CALLOC(1, sizeof(FTABLE)); + FTABLE *result = (FTABLE *)F_CALLOC(1, sizeof(FTABLE)); if (result == NULL) return NULL; @@ -109,6 +109,7 @@ void ft_ln(FTABLE *FT_RESTRICT table) static int ft_row_printf_impl(FTABLE *FT_RESTRICT table, size_t row, const char* FT_RESTRICT fmt, va_list *va) { size_t i = 0; + size_t new_cols = 0; if (table == NULL) return -1; @@ -124,12 +125,12 @@ static int ft_row_printf_impl(FTABLE *FT_RESTRICT table, size_t row, const char* if (row >= sz) { size_t push_n = row - sz + 1; for (i = 0; i < push_n; ++i) { - fort_row_t *new_row = create_row(); - if (new_row == NULL) + fort_row_t *padding_row = create_row(); + if (padding_row == NULL) goto clear; - if (IS_ERROR(vector_push(table->rows, &new_row))) { - destroy_row(new_row); + if (IS_ERROR(vector_push(table->rows, &padding_row))) { + destroy_row(padding_row); goto clear; } } @@ -141,7 +142,7 @@ static int ft_row_printf_impl(FTABLE *FT_RESTRICT table, size_t row, const char* destroy_row(*cur_row_p); *cur_row_p = new_row; - size_t new_cols = columns_in_row(new_row); + new_cols = columns_in_row(new_row); table->cur_col += new_cols; return new_cols; @@ -359,6 +360,7 @@ int ft_row_write_ln(FTABLE *FT_RESTRICT table, size_t cols, const char* FT_RESTR +#if !defined(__cplusplus) && !defined(FT_MICROSOFT_COMPILER) int ft_s_table_write(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const char* FT_RESTRICT table_cells[rows][cols]) { @@ -412,7 +414,7 @@ int ft_table_write_ln(FTABLE *FT_RESTRICT table, size_t rows, size_t cols, const } return status; } - +#endif @@ -468,7 +470,7 @@ const char* ft_to_string(const FTABLE *FT_RESTRICT table) return NULL; } } - char_type *buffer = buffer_get_data(table->conv_buffer); + char_type *buffer = (char_type *)buffer_get_data(table->conv_buffer); size_t cols = 0; @@ -562,7 +564,7 @@ const wchar_t* ft_to_wstring(const FTABLE *FT_RESTRICT table) return NULL; } } - char_type *buffer = buffer_get_data(table->conv_buffer); + char_type *buffer = (char_type *)buffer_get_data(table->conv_buffer); size_t cols = 0; @@ -618,7 +620,11 @@ clear: /* * TMP */ -static int dummy_function() __attribute__ ((unused)); +static int dummy_function() +#if defined(FT_CLANG_COMPILER) || defined(FT_GCC_COMPILER) +__attribute__ ((unused)) +#endif +; static int dummy_function() { diff --git a/src/options.c b/src/options.c index c69f5be..cc7edae 100644 --- a/src/options.c +++ b/src/options.c @@ -64,7 +64,7 @@ fort_column_options_t g_column_options = RightAligned, /* align */ }; -fort_column_options_t create_column_options() +fort_column_options_t create_column_options(void) { fort_column_options_t result; memset(&result, '\0', sizeof(result)); @@ -73,9 +73,9 @@ fort_column_options_t create_column_options() } -#define DEFAULT_CELL_OPTION {FT_ROW_UNSPEC, FT_COLUMN_UNSPEC, 0, 0, 0} +//#define DEFAULT_CELL_OPTION {FT_ROW_UNSPEC, FT_COLUMN_UNSPEC, 0, 0, 0} -fort_cell_opt_container_t *create_cell_opt_container() +fort_cell_opt_container_t *create_cell_opt_container(void) { fort_cell_opt_container_t *ret = create_vector(sizeof(fort_cell_options_t), DEFAULT_VECTOR_CAPACITY); return ret; @@ -111,7 +111,7 @@ fort_cell_options_t* get_cell_opt_and_create_if_not_exists(fort_cell_opt_contain if (opt->cell_row == row && opt->cell_col == col) return opt; } - fort_cell_options_t opt = DEFAULT_CELL_OPTION; + fort_cell_options_t opt = g_default_cell_option;// DEFAULT_CELL_OPTION; opt.cell_row = row; opt.cell_col = col; if (IS_SUCCESS(vector_push(cont, &opt))) { @@ -160,7 +160,7 @@ static fort_status_t set_cell_option_impl(fort_cell_options_t *opt, uint32_t opt if (OPTION_IS_SET(option, FT_OPT_MIN_WIDTH)) { opt->col_min_width = value; } else if (OPTION_IS_SET(option, FT_OPT_TEXT_ALIGN)) { - opt->align = value; + opt->align = (enum TextAlignment)value; } else if (OPTION_IS_SET(option, FT_OPT_TOP_PADDING)) { opt->cell_padding_top = value; } else if (OPTION_IS_SET(option, FT_OPT_BOTTOM_PADDING)) { @@ -172,7 +172,7 @@ static fort_status_t set_cell_option_impl(fort_cell_options_t *opt, uint32_t opt } else if (OPTION_IS_SET(option, FT_OPT_EMPTY_STR_HEIGHT)) { opt->cell_empty_string_height = value; } else if (OPTION_IS_SET(option, FT_OPT_ROW_TYPE)) { - opt->row_type = value; + opt->row_type = (enum RowType)value; } return F_SUCCESS; @@ -330,7 +330,7 @@ fort_table_options_t g_table_options = { fort_table_options_t* create_table_options() { - fort_table_options_t* options = F_CALLOC(sizeof(fort_table_options_t), 1); + fort_table_options_t* options = (fort_table_options_t*)F_CALLOC(sizeof(fort_table_options_t), 1); if (options == NULL) { return NULL; } diff --git a/src/options.h b/src/options.h index d069630..754e1f2 100644 --- a/src/options.h +++ b/src/options.h @@ -27,7 +27,7 @@ struct fort_column_options typedef struct fort_column_options fort_column_options_t; extern fort_column_options_t g_column_options; -fort_column_options_t create_column_options(); +fort_column_options_t create_column_options(void); @@ -73,7 +73,7 @@ typedef struct fort_cell_options fort_cell_options_t; typedef vector_t fort_cell_opt_container_t; -fort_cell_opt_container_t *create_cell_opt_container(); +fort_cell_opt_container_t *create_cell_opt_container(void); void destroy_cell_opt_container(fort_cell_opt_container_t *cont); const fort_cell_options_t* cget_cell_opt(const fort_cell_opt_container_t *cont, unsigned row, unsigned col); fort_cell_options_t* get_cell_opt_and_create_if_not_exists(fort_cell_opt_container_t *cont, unsigned row, unsigned col); diff --git a/src/row.c b/src/row.c index 5fc2516..e033966 100644 --- a/src/row.c +++ b/src/row.c @@ -15,7 +15,7 @@ struct fort_row fort_row_t * create_row() { - fort_row_t * row = F_CALLOC(sizeof(fort_row_t), 1); + fort_row_t * row = (fort_row_t *)F_CALLOC(sizeof(fort_row_t), 1); if (row == NULL) return NULL; row->cells = create_vector(sizeof(fort_cell_t*), DEFAULT_VECTOR_CAPACITY); @@ -137,11 +137,11 @@ int print_row_separator(char *buffer, size_t buffer_sz, enum RowType lower_row_type = Common; if (lower_row != NULL) { - lower_row_type = get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + lower_row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); } enum RowType upper_row_type = Common; if (upper_row != NULL) { - upper_row_type = get_cell_opt_value_hierarcial(context->table_options, context->row-1, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + upper_row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row-1, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); } @@ -244,11 +244,11 @@ int wprint_row_separator(wchar_t *buffer, size_t buffer_sz, enum RowType lower_row_type = Common; if (lower_row != NULL) { - lower_row_type = get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + lower_row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); } enum RowType upper_row_type = Common; if (upper_row != NULL) { - upper_row_type = get_cell_opt_value_hierarcial(context->table_options, context->row-1, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + upper_row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row-1, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); } /* Row separator anatomy @@ -327,6 +327,10 @@ clear: fort_row_t* create_row_from_string(const char *str) { + char *pos = NULL; + char *base_pos = NULL; + int number_of_separators = 0; + fort_row_t * row = create_row(); if (row == NULL) return NULL; @@ -338,9 +342,9 @@ fort_row_t* create_row_from_string(const char *str) if (str_copy == NULL) goto clear; - char *pos = str_copy; - char *base_pos = str_copy; - int number_of_separators = 0; + pos = str_copy; + base_pos = str_copy; + number_of_separators = 0; while (*pos) { pos = strchr(pos, FORT_COL_SEPARATOR); if (pos != NULL) { @@ -410,11 +414,12 @@ fort_row_t* create_row_from_fmt_string(const char* FT_RESTRICT fmt, va_list *va_ return NULL; int cols_origin = number_of_columns_in_format_string(fmt); + int cols = 0; while (1) { va_list va; va_copy(va, *va_args); - int virtual_sz = vsnprintf(buffer->cstr, string_buffer_capacity(buffer)/*buffer->str_sz*/, fmt, va); + int virtual_sz = vsnprintf(buffer->str.cstr, string_buffer_capacity(buffer)/*buffer->str_sz*/, fmt, va); va_end(va); /* If error encountered */ if (virtual_sz == -1) @@ -429,10 +434,10 @@ fort_row_t* create_row_from_fmt_string(const char* FT_RESTRICT fmt, va_list *va_ goto clear; } - int cols = number_of_columns_in_format_string(buffer->cstr); + cols = number_of_columns_in_format_string(buffer->str.cstr); if (cols == cols_origin) { - fort_row_t *row = create_row_from_string(buffer->cstr); + fort_row_t *row = create_row_from_string(buffer->str.cstr); if (row == NULL) { goto clear; } @@ -473,7 +478,7 @@ int snprintf_row(const fort_row_t *row, char *buffer, size_t buf_sz, size_t *col */ typedef const char (*border_chars_point_t)[BorderItemPosSize]; - enum RowType row_type = get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + enum RowType row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); const char (*bord_chars)[BorderItemPosSize] = (row_type == Header) ? (border_chars_point_t) (&context->table_options->border_style.header_border_chars) : (border_chars_point_t) (&context->table_options->border_style.border_chars); @@ -532,7 +537,7 @@ int wsnprintf_row(const fort_row_t *row, wchar_t *buffer, size_t buf_sz, size_t */ typedef const char (*border_chars_point_t)[BorderItemPosSize]; - enum RowType row_type = get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); + enum RowType row_type = (enum RowType)get_cell_opt_value_hierarcial(context->table_options, context->row, FT_ANY_COLUMN, FT_OPT_ROW_TYPE); const char (*bord_chars)[BorderItemPosSize] = (row_type) ? (border_chars_point_t) (&context->table_options->border_style.header_border_chars) : (border_chars_point_t) (&context->table_options->border_style.border_chars); diff --git a/src/string_buffer.c b/src/string_buffer.c index 158c434..73bdac6 100644 --- a/src/string_buffer.c +++ b/src/string_buffer.c @@ -11,9 +11,9 @@ static size_t buf_str_len(const string_buffer_t*buf) { assert(buf); if (buf->type == CharBuf) { - return strlen(buf->cstr); + return strlen(buf->str.cstr); } else { - return wcslen(buf->wstr); + return wcslen(buf->str.wstr); } } @@ -132,8 +132,8 @@ string_buffer_t* create_string_buffer(size_t number_of_chars, enum str_buf_type string_buffer_t *result = (string_buffer_t *)F_MALLOC(sizeof(string_buffer_t)); if (result == NULL) return NULL; - result->data = F_MALLOC(sz); - if (result->data == NULL) { + result->str.data = F_MALLOC(sz); + if (result->str.data == NULL) { F_FREE(result); return NULL; } @@ -147,8 +147,8 @@ void destroy_string_buffer(string_buffer_t *buffer) { if (buffer == NULL) return; - F_FREE(buffer->data); - buffer->data = NULL; + F_FREE(buffer->str.data); + buffer->str.data = NULL; F_FREE(buffer); } @@ -159,8 +159,8 @@ fort_status_t realloc_string_buffer_without_copy(string_buffer_t *buffer) if (new_str == NULL) { return F_MEMORY_ERROR; } - F_FREE(buffer->data); - buffer->data = new_str; + F_FREE(buffer->str.data); + buffer->str.data = new_str; buffer->data_sz *= 2; return F_SUCCESS; } @@ -181,8 +181,8 @@ fort_status_t fill_buffer_from_string(string_buffer_t *buffer, const char *str) return status; } } - F_FREE(buffer->data); - buffer->cstr = copy; + F_FREE(buffer->str.data); + buffer->str.cstr = copy; buffer->type = CharBuf; return F_SUCCESS; @@ -204,8 +204,8 @@ fort_status_t fill_buffer_from_wstring(string_buffer_t *buffer, const wchar_t *s return status; } } - F_FREE(buffer->data); - buffer->wstr = copy; + F_FREE(buffer->str.data); + buffer->str.wstr = copy; buffer->type = WCharBuf; return F_SUCCESS; @@ -215,13 +215,13 @@ fort_status_t fill_buffer_from_wstring(string_buffer_t *buffer, const wchar_t *s size_t buffer_text_height(string_buffer_t *buffer) { - if (buffer == NULL || buffer->data == NULL || buf_str_len(buffer) == 0) { + if (buffer == NULL || buffer->str.data == NULL || buf_str_len(buffer) == 0) { return 0; } if (buffer->type == CharBuf) - return 1 + strchr_count(buffer->cstr, '\n'); + return 1 + strchr_count(buffer->str.cstr, '\n'); else - return 1 + wstrchr_count(buffer->wstr, L'\n'); + return 1 + wstrchr_count(buffer->str.wstr, L'\n'); } size_t buffer_text_width(string_buffer_t *buffer) @@ -232,18 +232,18 @@ size_t buffer_text_width(string_buffer_t *buffer) while (1) { const char *beg = NULL; const char *end = NULL; - str_n_substring(buffer->cstr, '\n', n, &beg, &end); + str_n_substring(buffer->str.cstr, '\n', n, &beg, &end); if (beg == NULL || end == NULL) return max_length; - max_length = MAX(max_length, (end - beg)); + max_length = MAX(max_length, (size_t)(end - beg)); ++n; } } else { while (1) { const wchar_t *beg = NULL; const wchar_t *end = NULL; - wstr_n_substring(buffer->wstr, L'\n', n, &beg, &end); + wstr_n_substring(buffer->str.wstr, L'\n', n, &beg, &end); if (beg == NULL || end == NULL) return max_length; @@ -263,11 +263,11 @@ int buffer_printf(string_buffer_t *buffer, size_t buffer_row, size_t table_colum #define SPACE_CHAR ' ' #define SNPRINTF_FMT_STR "%*s" #define SNPRINTF snprintf -#define BUFFER_STR cstr +#define BUFFER_STR str.cstr #define SNPRINT_N_CHARS snprint_n_chars #define STR_N_SUBSTRING str_n_substring - if (buffer == NULL || buffer->data == NULL + if (buffer == NULL || buffer->str.data == NULL || buffer_row >= buffer_text_height(buffer) || buf_len == 0) { return -1; } @@ -345,11 +345,11 @@ int buffer_wprintf(string_buffer_t *buffer, size_t buffer_row, size_t table_colu #define SPACE_CHAR L' ' #define SNPRINTF_FMT_STR L"%*ls" #define SNPRINTF swprintf -#define BUFFER_STR wstr +#define BUFFER_STR str.wstr #define SNPRINT_N_CHARS wsnprint_n_chars #define STR_N_SUBSTRING wstr_n_substring - if (buffer == NULL || buffer->data == NULL + if (buffer == NULL || buffer->str.data == NULL || buffer_row >= buffer_text_height(buffer) || buf_len == 0) { return -1; } @@ -430,5 +430,5 @@ size_t string_buffer_capacity(const string_buffer_t *buffer) void *buffer_get_data(string_buffer_t *buffer) { assert(buffer); - return buffer->data; + return buffer->str.data; } diff --git a/src/string_buffer.h b/src/string_buffer.h index 1ae8948..e260427 100644 --- a/src/string_buffer.h +++ b/src/string_buffer.h @@ -21,7 +21,7 @@ struct string_buffer char *cstr; wchar_t *wstr; void *data; - }; + }str; size_t data_sz; enum str_buf_type type; }; diff --git a/src/table.c b/src/table.c index b0bfac1..e4cfe94 100644 --- a/src/table.c +++ b/src/table.c @@ -104,8 +104,8 @@ fort_status_t table_rows_and_cols_geometry(const FTABLE *table, if (IS_ERROR(status)) return status; - size_t *col_width_arr = F_CALLOC(sizeof(size_t), cols); - size_t *row_height_arr = F_CALLOC(sizeof(size_t), rows); + size_t *col_width_arr = (size_t *)F_CALLOC(sizeof(size_t), cols); + size_t *row_height_arr = (size_t *)F_CALLOC(sizeof(size_t), rows); if (col_width_arr == NULL || row_height_arr == NULL) { F_FREE(col_width_arr); F_FREE(row_height_arr); diff --git a/src/table.h b/src/table.h index 80a9bd0..b9bde18 100644 --- a/src/table.h +++ b/src/table.h @@ -19,7 +19,7 @@ struct fort_table static FT_INLINE separator_t *create_separator(int enabled) { - separator_t *res = F_CALLOC(1, sizeof(separator_t)); + separator_t *res = (separator_t *)F_CALLOC(1, sizeof(separator_t)); if (res == NULL) return NULL; res->enabled = enabled; diff --git a/src/vector.c b/src/vector.c index 9dc9950..ccd8b5a 100644 --- a/src/vector.c +++ b/src/vector.c @@ -1,5 +1,6 @@ #include "vector.h" #include +#include /***************************************************************************** * VECTOR IMPLEMENTATIONS @@ -29,7 +30,7 @@ static int vector_reallocate_(vector_t *vector, size_t new_capacity) vector_t* create_vector(size_t item_size, size_t capacity) { - vector_t *vector = malloc(sizeof(vector_t)); + vector_t *vector = (vector_t *)malloc(sizeof(vector_t)); if (vector == NULL) { SYS_LOG_ERROR("Failed to allocate memory for asock vector"); return NULL; @@ -97,7 +98,7 @@ size_t vector_index_of(const vector_t* vector, const void *item) size_t i = 0; for (i = 0; i < vector->m_size; ++i) { - void *data_pos = vector->m_data + i * vector->m_item_size; + void *data_pos = (char*)vector->m_data + i * vector->m_item_size; if (memcmp(data_pos, item, vector->m_item_size) == 0) { return i; } @@ -120,7 +121,7 @@ int vector_push (vector_t* vector, const void* item) } ptrdiff_t deviation = vector->m_size * vector->m_item_size; - memcpy(vector->m_data + deviation, item, vector->m_item_size); + memcpy((char*)vector->m_data + deviation, item, vector->m_item_size); ++(vector->m_size); @@ -135,8 +136,8 @@ int vector_erase(vector_t *vector, size_t index) if (vector->m_size == 0 || index >= vector->m_size) return F_ERROR; - memmove(vector->m_data + vector->m_item_size * index, - vector->m_data + vector->m_item_size * (index + 1), + memmove((char*)vector->m_data + vector->m_item_size * index, + (char*)vector->m_data + vector->m_item_size * (index + 1), (vector->m_size - 1 - index) * vector->m_item_size); vector->m_size--; return F_SUCCESS; @@ -153,7 +154,7 @@ const void *vector_at_c(const vector_t *vector, size_t index) if (index >= vector->m_size) return NULL; - return vector->m_data + index * vector->m_item_size; + return (char*)vector->m_data + index * vector->m_item_size; } @@ -162,7 +163,7 @@ void *vector_at(vector_t *vector, size_t index) if (index >= vector->m_size) return NULL; - return vector->m_data + index * vector->m_item_size; + return (char*)vector->m_data + index * vector->m_item_size; } diff --git a/tests/cmocka-1.1.0/.clang_complete b/tests/cmocka-1.1.0/.clang_complete deleted file mode 100644 index 6177904..0000000 --- a/tests/cmocka-1.1.0/.clang_complete +++ /dev/null @@ -1,2 +0,0 @@ --Iinclude --Iobj diff --git a/tests/cmocka-1.1.0/.ycm_extra_conf.py b/tests/cmocka-1.1.0/.ycm_extra_conf.py deleted file mode 100644 index 8305a8b..0000000 --- a/tests/cmocka-1.1.0/.ycm_extra_conf.py +++ /dev/null @@ -1,109 +0,0 @@ -import os -import ycm_core - -flags = [ -'-Wall', -'-Wextra', -'-Werror', -'-x', 'c', -'-Iinclude', -] - -# Set this to the absolute path to the folder (NOT the file!) containing the -# compile_commands.json file to use that instead of 'flags'. See here for -# more details: http://clang.llvm.org/docs/JSONCompilationDatabase.html -# -# Most projects will NOT need to set this to anything; you can just change the -# 'flags' list of compilation flags. Notice that YCM itself uses that approach. -compilation_database_folder = 'obj' - -if os.path.exists( compilation_database_folder ): - database = ycm_core.CompilationDatabase( compilation_database_folder ) -else: - database = None - -SOURCE_EXTENSIONS = [ '.cpp', '.cxx', '.cc', '.c', '.m', '.mm' ] - -def DirectoryOfThisScript(): - return os.path.dirname( os.path.abspath( __file__ ) ) - - -def MakeRelativePathsInFlagsAbsolute( flags, working_directory ): - if not working_directory: - return list( flags ) - new_flags = [] - make_next_absolute = False - path_flags = [ '-isystem', '-I', '-iquote', '--sysroot=' ] - for flag in flags: - new_flag = flag - - if make_next_absolute: - make_next_absolute = False - if not flag.startswith( '/' ): - new_flag = os.path.join( working_directory, flag ) - - for path_flag in path_flags: - if flag == path_flag: - make_next_absolute = True - break - - if flag.startswith( path_flag ): - path = flag[ len( path_flag ): ] - new_flag = path_flag + os.path.join( working_directory, path ) - break - - if new_flag: - new_flags.append( new_flag ) - return new_flags - - -def IsHeaderFile( filename ): - extension = os.path.splitext( filename )[ 1 ] - return extension in [ '.h', '.hxx', '.hpp', '.hh' ] - - -def GetCompilationInfoForFile( filename ): - # The compilation_commands.json file generated by CMake does not have entries - # for header files. So we do our best by asking the db for flags for a - # corresponding source file, if any. If one exists, the flags for that file - # should be good enough. - if IsHeaderFile( filename ): - basename = os.path.splitext( filename )[ 0 ] - for extension in SOURCE_EXTENSIONS: - replacement_file = basename + extension - if os.path.exists( replacement_file ): - compilation_info = database.GetCompilationInfoForFile( - replacement_file ) - if compilation_info.compiler_flags_: - return compilation_info - return None - return database.GetCompilationInfoForFile( filename ) - - -def FlagsForFile( filename, **kwargs ): - if database: - # Bear in mind that compilation_info.compiler_flags_ does NOT return a - # python list, but a "list-like" StringVec object - compilation_info = GetCompilationInfoForFile( filename ) - if not compilation_info: - return None - - final_flags = MakeRelativePathsInFlagsAbsolute( - compilation_info.compiler_flags_, - compilation_info.compiler_working_dir_ ) - - # NOTE: This is just for YouCompleteMe; it's highly likely that your project - # does NOT need to remove the stdlib flag. DO NOT USE THIS IN YOUR - # ycm_extra_conf IF YOU'RE NOT 100% SURE YOU NEED IT. - try: - final_flags.remove( '-stdlib=libc++' ) - except ValueError: - pass - else: - relative_to = DirectoryOfThisScript() - final_flags = MakeRelativePathsInFlagsAbsolute( flags, relative_to ) - - return { - 'flags': final_flags, - 'do_cache': True - } diff --git a/tests/cmocka-1.1.0/AUTHORS b/tests/cmocka-1.1.0/AUTHORS deleted file mode 100644 index 1fe0d34..0000000 --- a/tests/cmocka-1.1.0/AUTHORS +++ /dev/null @@ -1,3 +0,0 @@ -opensource@google.com -Andreas Schneider -Jakub Hrozek diff --git a/tests/cmocka-1.1.0/CMakeLists.txt b/tests/cmocka-1.1.0/CMakeLists.txt deleted file mode 100644 index 7f7dac4..0000000 --- a/tests/cmocka-1.1.0/CMakeLists.txt +++ /dev/null @@ -1,88 +0,0 @@ -project(cmocka C) - -# Required cmake version -cmake_minimum_required(VERSION 2.6.0) - -# global needed variables -set(APPLICATION_NAME ${PROJECT_NAME}) - -set(APPLICATION_VERSION_MAJOR "1") -set(APPLICATION_VERSION_MINOR "1") -set(APPLICATION_VERSION_PATCH "0") - -set(APPLICATION_VERSION "${APPLICATION_VERSION_MAJOR}.${APPLICATION_VERSION_MINOR}.${APPLICATION_VERSION_PATCH}") - -# SOVERSION scheme: CURRENT.AGE.REVISION -# If there was an incompatible interface change: -# Increment CURRENT. Set AGE and REVISION to 0 -# If there was a compatible interface change: -# Increment AGE. Set REVISION to 0 -# If the source code was changed, but there were no interface changes: -# Increment REVISION. -set(LIBRARY_VERSION "0.4.0") -set(LIBRARY_SOVERSION "0") - -# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked -set(CMAKE_MODULE_PATH - ${CMAKE_SOURCE_DIR}/cmake/Modules -) - -# add definitions -include(DefineCMakeDefaults) -include(DefinePlatformDefaults) -include(DefineCompilerFlags) -include(DefineInstallationPaths) -include(DefineOptions.cmake) -include(CPackConfig.cmake) -include(CheckSymbolExists) - -# disallow in-source build -include(MacroEnsureOutOfSourceBuild) -macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.") - -# config.h checks -include(ConfigureChecks.cmake) -configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h) - -# MinGW DLL Naming Workaround -if (MINGW) - set(CMAKE_SHARED_LIBRARY_PREFIX "") -endif (MINGW) - -# check subdirectories -add_subdirectory(doc) -add_subdirectory(include) -add_subdirectory(src) - -if (UNIT_TESTING) - include(AddCMockaTest) - add_subdirectory(tests) -endif (UNIT_TESTING) - -add_subdirectory(example) - -# pkg-config file -configure_file(cmocka.pc.cmake ${CMAKE_CURRENT_BINARY_DIR}/cmocka.pc) -install( - FILES - ${CMAKE_CURRENT_BINARY_DIR}/cmocka.pc - DESTINATION - ${LIB_INSTALL_DIR}/pkgconfig - COMPONENT - pkgconfig -) - -# cmake config files -set(CMOCKA_LIBRARY_NAME ${CMAKE_SHARED_LIBRARY_PREFIX}${PROJECT_NAME}${CMAKE_SHARED_LIBRARY_SUFFIX}) - -configure_file(${PROJECT_NAME}-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake @ONLY) -configure_file(${PROJECT_NAME}-config-version.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake @ONLY) -install( - FILES - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake - ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake - DESTINATION - ${CMAKE_INSTALL_DIR}/${PROJECT_NAME} - COMPONENT - devel -) diff --git a/tests/cmocka-1.1.0/COPYING b/tests/cmocka-1.1.0/COPYING deleted file mode 100644 index d645695..0000000 --- a/tests/cmocka-1.1.0/COPYING +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/tests/cmocka-1.1.0/CPackConfig.cmake b/tests/cmocka-1.1.0/CPackConfig.cmake deleted file mode 100644 index 8d427a3..0000000 --- a/tests/cmocka-1.1.0/CPackConfig.cmake +++ /dev/null @@ -1,53 +0,0 @@ -# For help take a look at: -# http://www.cmake.org/Wiki/CMake:CPackConfiguration - -### general settings -set(CPACK_PACKAGE_NAME ${APPLICATION_NAME}) -set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Unit testing framework for C with mock objects") -set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README") -set(CPACK_PACKAGE_VENDOR "Andreas Schneider") -set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME}) -set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/COPYING") - - -### versions -set(CPACK_PACKAGE_VERSION_MAJOR "${APPLICATION_VERSION_MAJOR}") -set(CPACK_PACKAGE_VERSION_MINOR "${APPLICATION_VERSION_MINOR}") -set(CPACK_PACKAGE_VERSION_PATCH "${APPLICATION_VERSION_PATCH}") -set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") - - -### source generator -set(CPACK_SOURCE_GENERATOR "TGZ") -set(CPACK_SOURCE_IGNORE_FILES "~$;[.]swp$;/[.]svn/;/[.]git/;.gitignore;/obj*;tags;cscope.*;.ycm_extra_conf.pyc") -set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}") - -if (WIN32) - set(CPACK_GENERATOR "ZIP") - - ### nsis generator - find_package(NSIS) - if (NSIS_MAKE) - set(CPACK_GENERATOR "${CPACK_GENERATOR};NSIS") - set(CPACK_NSIS_DISPLAY_NAME "CMocka") - set(CPACK_NSIS_COMPRESSOR "/SOLID zlib") - set(CPACK_NSIS_MENU_LINKS "http://cmocka.org/" "cmocka homepage") - endif (NSIS_MAKE) -endif (WIN32) - -set(CPACK_PACKAGE_INSTALL_DIRECTORY "cmocka") - -set(CPACK_PACKAGE_FILE_NAME ${APPLICATION_NAME}-${CPACK_PACKAGE_VERSION}) - -set(CPACK_COMPONENT_LIBRARIES_DISPLAY_NAME "Libraries") -set(CPACK_COMPONENT_HEADERS_DISPLAY_NAME "C/C++ Headers") -set(CPACK_COMPONENT_LIBRARIES_DESCRIPTION - "Libraries used to build programs which use cmocka") -set(CPACK_COMPONENT_HEADERS_DESCRIPTION - "C/C++ header files for use with cmocka") -set(CPACK_COMPONENT_HEADERS_DEPENDS libraries) -#set(CPACK_COMPONENT_APPLICATIONS_GROUP "Runtime") -set(CPACK_COMPONENT_LIBRARIES_GROUP "Development") -set(CPACK_COMPONENT_HEADERS_GROUP "Development") - -include(CPack) diff --git a/tests/cmocka-1.1.0/CTestConfig.cmake b/tests/cmocka-1.1.0/CTestConfig.cmake deleted file mode 100644 index f93a981..0000000 --- a/tests/cmocka-1.1.0/CTestConfig.cmake +++ /dev/null @@ -1,10 +0,0 @@ -set(UPDATE_TYPE "true") - -set(CTEST_PROJECT_NAME "cmocka") -set(CTEST_NIGHTLY_START_TIME "01:00:00 UTC") - -set(CTEST_DROP_METHOD "https") -set(CTEST_DROP_SITE "mock.cryptomilk.org") -set(CTEST_DROP_LOCATION "/submit.php?project=${CTEST_PROJECT_NAME}") -set(CTEST_DROP_SITE_CDASH TRUE) - diff --git a/tests/cmocka-1.1.0/ChangeLog b/tests/cmocka-1.1.0/ChangeLog deleted file mode 100644 index 0319c15..0000000 --- a/tests/cmocka-1.1.0/ChangeLog +++ /dev/null @@ -1,92 +0,0 @@ -Wed Sep 21 2016 Andreas Schneider - * cmocka: version 1.1.0 - * Added support to catch multiple exceptions - * Added support to verify call ordering - * Added support to pass initial data to test cases - * Added will_return_maybe() for ignoring mock returns - * Added subtests for groups using TAP output - * Added support to write multiple XML files for groups - * Improved documentation - * Fixed XML output generataion - * Fixed Windows builds with VS2015 - -Thu Mar 12 2015 Andreas Schneider - * cmocka: version 1.0.1 - * Added a macro for assert_ptr_equal(). - * Fixed test_realloc() if 0 size is passed. - * Fixed objects packaging bug. - * Fixed building with newer gcc versions. - -Sun Feb 16 2015 Andreas Schneider - * cmocka: version 1.0.0 - * Added new test runner with group fixtures. The old runner is deprecated - * Added an extensible message output formatter - * Added jUnit XML message output - * Added subunit message output - * Added Test Anything Protocol message output - * Added skip() command - * Added test_realloc() - * Added a cmockery compat header - * Fixed a lot of bugs on Windows - -Thu May 22 2014 Andreas Schneider - * cmocka: version 0.4.1 - * Added CMOCKA_TEST_ABORT env variable to leave threading apps. - * Fixed count parameter of expect_check() macro. - * Fixed reporting the number of tests. - * Fixed cmake config files. - -Fri Apr 11 2014 Andreas Schneider - * cmocka: version 0.4.0 - * Added support for group testing. - * Added assert_return_code(). - * Added better messages for errors. - * Added cmake config mode support. - * Fixed bug with unit_test_setup and unit_test_teardown. - * Fixed a lot of small bugs. - -Wed Nov 06 2013 Andreas Schneider - * cmocka: version 0.3.2 - * Fixed FindNSIS detection. - * Fixed unit_test_setup() and unit_test_teardown(). - * Fixed GTest and GCC message style conformance - * Fixed stringification in will_return_always(). - -Wed Jul 10 15:24 2013 Andreas Schneider - * cmocka: version 0.3.1 - * Fixed pointer conversion on s390 and ppc (32bit big endian). - * Fixed the customer_database test on big endian. - -Wed Jun 05 08:14 2013 Andreas Schneider - * cmocka: version 0.3.0 - * Added a better mock object example. - * Added pkgconfig file. - * Added new macros mock_type() and mock_ptr_type(). - * Added more documentation. - * Fixed installation problems on some platforms. - -Mon Jan 14 11:16 2013 Andreas Schneider - * cmocka: version 0.2.0 - * Added doxygen api documentation. - * Added new cmake build system. - * Added support to create windows NSIS installer. - * Fixed examples which didn't work. - * Fixed a huge amount of bugs. - -Mon Sep 15 17:21:22 2008 Google Inc. - * cmockery: version 0.12 - * Made it possible to specify additional compiler, lib tool and link - flags on Windows. - * Added Windows makefile to the tar ball. - -Fri Aug 29 10:50:46 2008 Google Inc. - - * cmockery: version 0.11 - * Made it possible to specify executable, library and object output - directories. - -Tue Aug 26 10:18:02 2008 Google Inc. - - * cmockery: initial release: - A lightweight library to simplify and generalize the process of - writing unit tests for C applications. diff --git a/tests/cmocka-1.1.0/ConfigureChecks.cmake b/tests/cmocka-1.1.0/ConfigureChecks.cmake deleted file mode 100644 index 31c5a94..0000000 --- a/tests/cmocka-1.1.0/ConfigureChecks.cmake +++ /dev/null @@ -1,149 +0,0 @@ -include(CheckIncludeFile) -include(CheckSymbolExists) -include(CheckFunctionExists) -include(CheckLibraryExists) -include(CheckTypeSize) -include(CheckCXXSourceCompiles) -include(CheckStructHasMember) -include(TestBigEndian) - -set(PACKAGE ${APPLICATION_NAME}) -set(VERSION ${APPLICATION_VERSION}) -set(DATADIR ${DATA_INSTALL_DIR}) -set(LIBDIR ${LIB_INSTALL_DIR}) -set(PLUGINDIR "${PLUGIN_INSTALL_DIR}-${LIBRARY_SOVERSION}") -set(SYSCONFDIR ${SYSCONF_INSTALL_DIR}) - -set(BINARYDIR ${CMAKE_BINARY_DIR}) -set(SOURCEDIR ${CMAKE_SOURCE_DIR}) - -function(COMPILER_DUMPVERSION _OUTPUT_VERSION) - # Remove whitespaces from the argument. - # This is needed for CC="ccache gcc" cmake .. - string(REPLACE " " "" _C_COMPILER_ARG "${CMAKE_C_COMPILER_ARG1}") - - execute_process( - COMMAND - ${CMAKE_C_COMPILER} ${_C_COMPILER_ARG} -dumpversion - OUTPUT_VARIABLE _COMPILER_VERSION - ) - - string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2" - _COMPILER_VERSION ${_COMPILER_VERSION}) - - set(${_OUTPUT_VERSION} ${_COMPILER_VERSION} PARENT_SCOPE) -endfunction() - -if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) - compiler_dumpversion(GNUCC_VERSION) - if (NOT GNUCC_VERSION EQUAL 34) - check_c_compiler_flag("-fvisibility=hidden" WITH_VISIBILITY_HIDDEN) - endif (NOT GNUCC_VERSION EQUAL 34) -endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) - -# DEFINITIONS -if (SOLARIS) - add_definitions(-D__EXTENSIONS__) -endif (SOLARIS) - -# HEADER FILES -check_include_file(assert.h HAVE_ASSERT_H) -check_include_file(inttypes.h HAVE_INTTYPES_H) -check_include_file(io.h HAVE_IO_H) -check_include_file(malloc.h HAVE_MALLOC_H) -check_include_file(memory.h HAVE_MEMORY_H) -check_include_file(setjmp.h HAVE_SETJMP_H) -check_include_file(signal.h HAVE_SIGNAL_H) -check_include_file(stdarg.h HAVE_STDARG_H) -check_include_file(stddef.h HAVE_STDDEF_H) -check_include_file(stdint.h HAVE_STDINT_H) -check_include_file(stdio.h HAVE_STDIO_H) -check_include_file(stdlib.h HAVE_STDLIB_H) -check_include_file(string.h HAVE_STRING_H) -check_include_file(strings.h HAVE_STRINGS_H) -check_include_file(sys/stat.h HAVE_SYS_STAT_H) -check_include_file(sys/types.h HAVE_SYS_TYPES_H) -check_include_file(time.h HAVE_TIME_H) -check_include_file(unistd.h HAVE_UNISTD_H) - -if (HAVE_TIME_H) - check_struct_has_member("struct timespec" tv_sec "time.h" HAVE_STRUCT_TIMESPEC) -endif (HAVE_TIME_H) - -# FUNCTIONS -check_function_exists(calloc HAVE_CALLOC) -check_function_exists(exit HAVE_EXIT) -check_function_exists(fprintf HAVE_FPRINTF) -check_function_exists(free HAVE_FREE) -check_function_exists(longjmp HAVE_LONGJMP) -check_function_exists(siglongjmp HAVE_SIGLONGJMP) -check_function_exists(malloc HAVE_MALLOC) -check_function_exists(memcpy HAVE_MEMCPY) -check_function_exists(memset HAVE_MEMSET) -check_function_exists(printf HAVE_PRINTF) -check_function_exists(setjmp HAVE_SETJMP) -check_function_exists(signal HAVE_SIGNAL) -check_function_exists(strsignal HAVE_STRSIGNAL) -check_function_exists(strcmp HAVE_STRCMP) -check_function_exists(clock_gettime HAVE_CLOCK_GETTIME) - -if (WIN32) - check_function_exists(_vsnprintf_s HAVE__VSNPRINTF_S) - check_function_exists(_vsnprintf HAVE__VSNPRINTF) - check_function_exists(_snprintf HAVE__SNPRINTF) - check_function_exists(_snprintf_s HAVE__SNPRINTF_S) - check_symbol_exists(snprintf stdio.h HAVE_SNPRINTF) - check_symbol_exists(vsnprintf stdio.h HAVE_VSNPRINTF) -else (WIN32) - check_function_exists(sprintf HAVE_SNPRINTF) - check_function_exists(vsnprintf HAVE_VSNPRINTF) -endif (WIN32) - -find_library(RT_LIBRARY rt) -if (RT_LIBRARY AND NOT LINUX) - set(CMOCKA_REQUIRED_LIBRARIES ${RT_LIBRARY} CACHE INTERNAL "cmocka required system libraries") -endif () - -# OPTIONS -check_c_source_compiles(" -__thread int tls; - -int main(void) { - return 0; -}" HAVE_GCC_THREAD_LOCAL_STORAGE) - -if (WIN32) -check_c_source_compiles(" -__declspec(thread) int tls; - -int main(void) { - return 0; -}" HAVE_MSVC_THREAD_LOCAL_STORAGE) -endif(WIN32) - -if (HAVE_TIME_H AND HAVE_STRUCT_TIMESPEC AND HAVE_CLOCK_GETTIME) - if (RT_LIBRARY) - set(CMAKE_REQUIRED_LIBRARIES ${RT_LIBRARY}) - endif() - - check_c_source_compiles(" -#include - -int main(void) { - struct timespec ts; - - clock_gettime(CLOCK_REALTIME, &ts); - - return 0; -}" HAVE_CLOCK_GETTIME_REALTIME) - - # reset cmake requirements - set(CMAKE_REQUIRED_INCLUDES) - set(CMAKE_REQUIRED_LIBRARIES) -endif () - -# ENDIAN -if (NOT WIN32) - set(WORDS_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P}) - test_big_endian(WORDS_BIGENDIAN) -endif (NOT WIN32) diff --git a/tests/cmocka-1.1.0/DefineOptions.cmake b/tests/cmocka-1.1.0/DefineOptions.cmake deleted file mode 100644 index 7564a22..0000000 --- a/tests/cmocka-1.1.0/DefineOptions.cmake +++ /dev/null @@ -1,7 +0,0 @@ -option(WITH_STATIC_LIB "Build with a static library" OFF) -option(WITH_CMOCKERY_SUPPORT "Install a cmockery header" OFF) -option(UNIT_TESTING "Build with unit testing" OFF) - -if (UNIT_TESTING) - set(WITH_STATIC_LIB ON) -endif() diff --git a/tests/cmocka-1.1.0/INSTALL b/tests/cmocka-1.1.0/INSTALL deleted file mode 100644 index 8b438d5..0000000 --- a/tests/cmocka-1.1.0/INSTALL +++ /dev/null @@ -1,102 +0,0 @@ -# How to build from source - -## Requirements - -### Common requirements - -In order to build cmocka, you need to install several components: - -- A C compiler -- [CMake](http://www.cmake.org) >= 2.8.0. - -Note that these version numbers are version we know works correctly. If you -build and run cmocka successfully with an older version, please let us know. - -## Building -First, you need to configure the compilation, using CMake. Go inside the -`build` dir. Create it if it doesn't exist. - -GNU/Linux, MacOS X, MSYS/MinGW: - - cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug .. - make - -On Windows you should choose a makefile gernerator with -G, for example: - - cmake -G "Visual Studio 12 2013" -DCMAKE_BUILD_TYPE=Debug /path/to/source - -You can also use the CMake GUI which is shipped with CMake. It will list all -available generators for MSVC on Windows. - -### CMake standard options -Here is a list of the most interesting options provided out of the box by -CMake. - -- CMAKE_BUILD_TYPE: The type of build (can be Debug Release MinSizeRel - RelWithDebInfo) -- CMAKE_INSTALL_PREFIX: The prefix to use when running make install (Default - to /usr/local on GNU/Linux and MacOS X) -- CMAKE_C_COMPILER: The path to the C compiler -- CMAKE_CXX_COMPILER: The path to the C++ compiler - -### CMake options defined for cmocka - -Options are defined in the following files: - -- DefineOptions.cmake - -They can be changed with the -D option: - -`cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=ON ..` - -### Browsing/editing CMake options - -In addition to passing options on the command line, you can browse and edit -CMake options using `cmakesetup` (Windows), `cmake-gui` or `ccmake` (GNU/Linux -and MacOS X). - -- Go to the build dir -- On Windows: run `cmakesetup` -- On GNU/Linux and MacOS X: run `ccmake ..` - -## Installing - -If you want to install cmocka after compilation run: - - make install - -## Running - -The cmocka library can be found in the `build/src` directory. -You can run the binaries in `build/examples/*` which is a -are exsample tests. - -## Testing - -As mention above you can turn on the unit tests and make it possible to easily -execute them: - -`cmake -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=ON ..` - -After that you can simply call `make test` in the build directory or if you -want more output simply call `ctest -V`. - -If you want to enable the generation of coverage files you can do this by -using the following options: - -`cmake -DCMAKE_BUILD_TYPE=Profiling -DUNIT_TESTING=ON ..` - -After building it you will see that you have several coverage options in - -`make help` - -You should have `make ExperimentalCoverage` and running it will create -coverage files. The result is stored in Testing directory. - -## About this document - -This document is written using [Markdown][] syntax, making it possible to -provide usable information in both plain text and HTML format. Whenever -modifying this document please use [Markdown][] syntax. - -[markdown]: http://www.daringfireball.net/projects/markdown diff --git a/tests/cmocka-1.1.0/NEWS b/tests/cmocka-1.1.0/NEWS deleted file mode 100644 index e69de29..0000000 diff --git a/tests/cmocka-1.1.0/README b/tests/cmocka-1.1.0/README deleted file mode 100644 index b432e8e..0000000 --- a/tests/cmocka-1.1.0/README +++ /dev/null @@ -1,15 +0,0 @@ -CMOCKA -======= - -cmocka is a fork for Google's cmockery unit testing framework to fix bugs and -support it in future. -See https://code.google.com/p/cmockery/ - -For information about how to use the cmocka unit testing framework see -doc/index.html. - -COMPILING ---------- -To compile the cmocka library and example applications run, create a build dir, -and in the build dir call 'cmake /path/to/cmocka' followed by 'make'. On -Windows you can use the cmake gui. More details can be found in the INSTALL file. diff --git a/tests/cmocka-1.1.0/cmake/Modules/AddCMockaTest.cmake b/tests/cmocka-1.1.0/cmake/Modules/AddCMockaTest.cmake deleted file mode 100644 index 19de66e..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/AddCMockaTest.cmake +++ /dev/null @@ -1,23 +0,0 @@ -# - ADD_CMOCKA_TEST(test_name test_source linklib1 ... linklibN) - -# Copyright (c) 2007 Daniel Gollub -# Copyright (c) 2007-2010 Andreas Schneider -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -enable_testing() -include(CTest) - -if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) - set(CMAKE_C_FLAGS_PROFILING "-g -O0 -Wall -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wwrite-strings -fprofile-arcs -ftest-coverage" CACHE STRING "Profiling Compiler Flags") - set(CMAKE_SHARED_LINKER_FLAGS_PROFILING " -fprofile-arcs -ftest-coverage" CACHE STRING "Profiling Linker Flags") - set(CMAKE_MODULE_LINKER_FLAGS_PROFILING " -fprofile-arcs -ftest-coverage" CACHE STRING "Profiling Linker Flags") - set(CMAKE_EXEC_LINKER_FLAGS_PROFILING " -fprofile-arcs -ftest-coverage" CACHE STRING "Profiling Linker Flags") -endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW) - -function (ADD_CMOCKA_TEST _testName _testSource) - add_executable(${_testName} ${_testSource}) - target_link_libraries(${_testName} ${ARGN}) - add_test(${_testName} ${CMAKE_CURRENT_BINARY_DIR}/${_testName}) -endfunction (ADD_CMOCKA_TEST) diff --git a/tests/cmocka-1.1.0/cmake/Modules/COPYING-CMAKE-SCRIPTS b/tests/cmocka-1.1.0/cmake/Modules/COPYING-CMAKE-SCRIPTS deleted file mode 100644 index 4b41776..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/COPYING-CMAKE-SCRIPTS +++ /dev/null @@ -1,22 +0,0 @@ -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - -1. Redistributions of source code must retain the copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. -3. The name of the author may not be used to endorse or promote products - derived from this software without specific prior written permission. - -THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR -IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. -IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, -INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT -NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, -DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY -THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF -THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/tests/cmocka-1.1.0/cmake/Modules/CheckCCompilerFlagSSP.cmake b/tests/cmocka-1.1.0/cmake/Modules/CheckCCompilerFlagSSP.cmake deleted file mode 100644 index 2fe4395..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/CheckCCompilerFlagSSP.cmake +++ /dev/null @@ -1,26 +0,0 @@ -# - Check whether the C compiler supports a given flag in the -# context of a stack checking compiler option. - -# CHECK_C_COMPILER_FLAG_SSP(FLAG VARIABLE) -# -# FLAG - the compiler flag -# VARIABLE - variable to store the result -# -# This actually calls check_c_source_compiles. -# See help for CheckCSourceCompiles for a listing of variables -# that can modify the build. - -# Copyright (c) 2006, Alexander Neundorf, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -include(CheckCSourceCompiles) - -function(CHECK_C_COMPILER_FLAG_SSP _FLAG _RESULT) - set(SAFE_CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS}") - set(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}") - check_c_source_compiles("int main(int argc, char **argv) { char buffer[256]; return buffer[argc]=0;}" ${_RESULT}) - set(CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}") -endfunction(CHECK_C_COMPILER_FLAG_SSP) diff --git a/tests/cmocka-1.1.0/cmake/Modules/DefineCMakeDefaults.cmake b/tests/cmocka-1.1.0/cmake/Modules/DefineCMakeDefaults.cmake deleted file mode 100644 index a08eca1..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/DefineCMakeDefaults.cmake +++ /dev/null @@ -1,36 +0,0 @@ -# Always include srcdir and builddir in include path -# This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in -# about every subdir -# since cmake 2.4.0 -set(CMAKE_INCLUDE_CURRENT_DIR ON) - -# Put the include dirs which are in the source or build tree -# before all other include dirs, so the headers in the sources -# are prefered over the already installed ones -# since cmake 2.4.1 -set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON) - -# Use colored output -# since cmake 2.4.0 -set(CMAKE_COLOR_MAKEFILE ON) - -# Define the generic version of the libraries here -set(GENERIC_LIB_VERSION "0.1.0") -set(GENERIC_LIB_SOVERSION "0") - -# Set the default build type to release with debug info -if (NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE RelWithDebInfo - CACHE STRING - "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." - ) -endif (NOT CMAKE_BUILD_TYPE) - -# Create the compile command database for clang by default -set(CMAKE_EXPORT_COMPILE_COMMANDS ON) - -if (APPLE) - set(CMAKE_MACOSX_RPATH ON) - set(CMAKE_SKIP_BUILD_RPATH FALSE) - set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) -endif(APPLE) diff --git a/tests/cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake b/tests/cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake deleted file mode 100644 index 14d473f..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/DefineCompilerFlags.cmake +++ /dev/null @@ -1,79 +0,0 @@ -# define system dependent compiler flags - -include(CheckCCompilerFlag) -include(CheckCCompilerFlagSSP) - -if (UNIX AND NOT WIN32) - # - # Define GNUCC compiler flags - # - if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") - - # add -Wconversion ? - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -pedantic -pedantic-errors") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -Wundef") - - # with -fPIC - check_c_compiler_flag("-fPIC" WITH_FPIC) - if (WITH_FPIC) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") - endif (WITH_FPIC) - - check_c_compiler_flag_ssp("-fstack-protector" WITH_STACK_PROTECTOR) - if (WITH_STACK_PROTECTOR) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fstack-protector") - endif (WITH_STACK_PROTECTOR) - - if (CMAKE_BUILD_TYPE) - string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER) - if (CMAKE_BUILD_TYPE_LOWER MATCHES (release|relwithdebinfo|minsizerel)) - check_c_compiler_flag("-Wp,-D_FORTIFY_SOURCE=2" WITH_FORTIFY_SOURCE) - if (WITH_FORTIFY_SOURCE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wp,-D_FORTIFY_SOURCE=2") - endif (WITH_FORTIFY_SOURCE) - endif() - endif() - - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE") - endif (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)") - - # - # Check for large filesystem support - # - if (CMAKE_SIZEOF_VOID_P MATCHES "8") - # with large file support - execute_process( - COMMAND - getconf LFS64_CFLAGS - OUTPUT_VARIABLE - _lfs_CFLAGS - ERROR_QUIET - OUTPUT_STRIP_TRAILING_WHITESPACE - ) - else (CMAKE_SIZEOF_VOID_P MATCHES "8") - # with large file support - execute_process( - COMMAND - getconf LFS_CFLAGS - OUTPUT_VARIABLE - _lfs_CFLAGS - ERROR_QUIET - OUTPUT_STRIP_TRAILING_WHITESPACE - ) - endif (CMAKE_SIZEOF_VOID_P MATCHES "8") - if (_lfs_CFLAGS) - string(REGEX REPLACE "[\r\n]" " " "${_lfs_CFLAGS}" "${${_lfs_CFLAGS}}") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_lfs_CFLAGS}") - endif (_lfs_CFLAGS) - -endif (UNIX AND NOT WIN32) - -if (MSVC) - # Use secure functions by defaualt and suppress warnings about - #"deprecated" functions - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_NONSTDC_NO_WARNINGS=1 /D _CRT_SECURE_NO_WARNINGS=1") -endif (MSVC) diff --git a/tests/cmocka-1.1.0/cmake/Modules/DefineInstallationPaths.cmake b/tests/cmocka-1.1.0/cmake/Modules/DefineInstallationPaths.cmake deleted file mode 100644 index 88e08ca..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/DefineInstallationPaths.cmake +++ /dev/null @@ -1,109 +0,0 @@ -if (UNIX OR OS2) - IF (NOT APPLICATION_NAME) - MESSAGE(STATUS "${PROJECT_NAME} is used as APPLICATION_NAME") - SET(APPLICATION_NAME ${PROJECT_NAME}) - ENDIF (NOT APPLICATION_NAME) - - # Suffix for Linux - SET(LIB_SUFFIX - CACHE STRING "Define suffix of directory name (32/64)" - ) - - SET(EXEC_INSTALL_PREFIX - "${CMAKE_INSTALL_PREFIX}" - CACHE PATH "Base directory for executables and libraries" - ) - SET(SHARE_INSTALL_PREFIX - "${CMAKE_INSTALL_PREFIX}/share" - CACHE PATH "Base directory for files which go to share/" - ) - SET(DATA_INSTALL_PREFIX - "${SHARE_INSTALL_PREFIX}/${APPLICATION_NAME}" - CACHE PATH "The parent directory where applications can install their data") - - # The following are directories where stuff will be installed to - SET(BIN_INSTALL_DIR - "${EXEC_INSTALL_PREFIX}/bin" - CACHE PATH "The ${APPLICATION_NAME} binary install dir (default prefix/bin)" - ) - SET(SBIN_INSTALL_DIR - "${EXEC_INSTALL_PREFIX}/sbin" - CACHE PATH "The ${APPLICATION_NAME} sbin install dir (default prefix/sbin)" - ) - SET(LIB_INSTALL_DIR - "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}" - CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is prefix/lib)" - ) - SET(LIBEXEC_INSTALL_DIR - "${EXEC_INSTALL_PREFIX}/libexec" - CACHE PATH "The subdirectory relative to the install prefix where libraries will be installed (default is prefix/libexec)" - ) - SET(PLUGIN_INSTALL_DIR - "${LIB_INSTALL_DIR}/${APPLICATION_NAME}" - CACHE PATH "The subdirectory relative to the install prefix where plugins will be installed (default is prefix/lib/${APPLICATION_NAME})" - ) - SET(INCLUDE_INSTALL_DIR - "${CMAKE_INSTALL_PREFIX}/include" - CACHE PATH "The subdirectory to the header prefix (default prefix/include)" - ) - - set(CMAKE_INSTALL_DIR - "${LIB_INSTALL_DIR}/cmake" - CACHE PATH "The subdirectory to install cmake config files") - - SET(DATA_INSTALL_DIR - "${DATA_INSTALL_PREFIX}" - CACHE PATH "The parent directory where applications can install their data (default prefix/share/${APPLICATION_NAME})" - ) - SET(HTML_INSTALL_DIR - "${DATA_INSTALL_PREFIX}/doc/HTML" - CACHE PATH "The HTML install dir for documentation (default data/doc/html)" - ) - SET(ICON_INSTALL_DIR - "${DATA_INSTALL_PREFIX}/icons" - CACHE PATH "The icon install dir (default data/icons/)" - ) - SET(SOUND_INSTALL_DIR - "${DATA_INSTALL_PREFIX}/sounds" - CACHE PATH "The install dir for sound files (default data/sounds)" - ) - - SET(LOCALE_INSTALL_DIR - "${SHARE_INSTALL_PREFIX}/locale" - CACHE PATH "The install dir for translations (default prefix/share/locale)" - ) - - SET(XDG_APPS_DIR - "${SHARE_INSTALL_PREFIX}/applications/" - CACHE PATH "The XDG apps dir" - ) - SET(XDG_DIRECTORY_DIR - "${SHARE_INSTALL_PREFIX}/desktop-directories" - CACHE PATH "The XDG directory" - ) - - SET(SYSCONF_INSTALL_DIR - "${EXEC_INSTALL_PREFIX}/etc" - CACHE PATH "The ${APPLICATION_NAME} sysconfig install dir (default prefix/etc)" - ) - SET(MAN_INSTALL_DIR - "${SHARE_INSTALL_PREFIX}/man" - CACHE PATH "The ${APPLICATION_NAME} man install dir (default prefix/man)" - ) - SET(INFO_INSTALL_DIR - "${SHARE_INSTALL_PREFIX}/info" - CACHE PATH "The ${APPLICATION_NAME} info install dir (default prefix/info)" - ) -else() - # Same same - set(BIN_INSTALL_DIR "bin" CACHE PATH "-") - set(SBIN_INSTALL_DIR "sbin" CACHE PATH "-") - set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "-") - set(INCLUDE_INSTALL_DIR "include" CACHE PATH "-") - set(CMAKE_INSTALL_DIR "CMake" CACHE PATH "-") - set(PLUGIN_INSTALL_DIR "plugins" CACHE PATH "-") - set(HTML_INSTALL_DIR "doc/HTML" CACHE PATH "-") - set(ICON_INSTALL_DIR "icons" CACHE PATH "-") - set(SOUND_INSTALL_DIR "soudns" CACHE PATH "-") - set(LOCALE_INSTALL_DIR "lang" CACHE PATH "-") -endif () diff --git a/tests/cmocka-1.1.0/cmake/Modules/DefinePlatformDefaults.cmake b/tests/cmocka-1.1.0/cmake/Modules/DefinePlatformDefaults.cmake deleted file mode 100644 index 46c3185..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/DefinePlatformDefaults.cmake +++ /dev/null @@ -1,21 +0,0 @@ -# Set system vars - -if (CMAKE_SYSTEM_NAME MATCHES "Linux") - set(LINUX TRUE) -endif(CMAKE_SYSTEM_NAME MATCHES "Linux") - -if (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - set(FREEBSD TRUE) -endif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") - -if (CMAKE_SYSTEM_NAME MATCHES "OpenBSD") - set(OPENBSD TRUE) -endif (CMAKE_SYSTEM_NAME MATCHES "OpenBSD") - -if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") - set(NETBSD TRUE) -endif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") - -if (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") - set(SOLARIS TRUE) -endif (CMAKE_SYSTEM_NAME MATCHES "(Solaris|SunOS)") diff --git a/tests/cmocka-1.1.0/cmake/Modules/FindNSIS.cmake b/tests/cmocka-1.1.0/cmake/Modules/FindNSIS.cmake deleted file mode 100644 index 08d839b..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/FindNSIS.cmake +++ /dev/null @@ -1,51 +0,0 @@ -# - Try to find NSIS -# Once done this will define -# -# NSIS_FOUND - system has NSIS -# NSIS_MAKE - NSIS creator executable -# -#============================================================================= -# Copyright (c) 2010-2013 Andreas Schneider -# -# Distributed under the OSI-approved BSD License (the "License"); -# see accompanying file Copyright.txt for details. -# -# This software is distributed WITHOUT ANY WARRANTY; without even the -# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# See the License for more information. -#============================================================================= -# - -if (WIN32) - set(_NSIS_ROOT_HINTS - "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\NSIS;Default]") - - set(_NSIS_ROOT_PATHS - $ENV{PROGRAMFILES}/NSIS) - - find_path(NSIS_ROOT_PATH - NAMES - Include/Library.nsh - HINTS - ${_NSIS_ROOT_HINTS} - PATHS - ${_NSIS_ROOT_PATHS} - ) - mark_as_advanced(NSIS_ROOT_PATH) -endif (WIN32) - -find_program(NSIS_MAKE - NAMES - makensis - PATHS - ${NSIS_ROOT_PATH} -) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(NSIS DEFAULT_MSG NSIS_MAKE) - -if (NSIS_MAKE) - set(NSIS_FOUND TRUE) -endif (NSIS_MAKE) - -mark_as_advanced(NSIS_MAKE) diff --git a/tests/cmocka-1.1.0/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake b/tests/cmocka-1.1.0/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake deleted file mode 100644 index a2e9480..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/MacroEnsureOutOfSourceBuild.cmake +++ /dev/null @@ -1,17 +0,0 @@ -# - MACRO_ENSURE_OUT_OF_SOURCE_BUILD() -# MACRO_ENSURE_OUT_OF_SOURCE_BUILD() - -# Copyright (c) 2006, Alexander Neundorf, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -macro (MACRO_ENSURE_OUT_OF_SOURCE_BUILD _errorMessage) - - string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" _insource) - if (_insource) - message(SEND_ERROR "${_errorMessage}") - message(FATAL_ERROR "Remove the file CMakeCache.txt in ${CMAKE_SOURCE_DIR} first.") - endif (_insource) - -endmacro (MACRO_ENSURE_OUT_OF_SOURCE_BUILD) diff --git a/tests/cmocka-1.1.0/cmake/Modules/UseDoxygen.cmake b/tests/cmocka-1.1.0/cmake/Modules/UseDoxygen.cmake deleted file mode 100644 index 72c384d..0000000 --- a/tests/cmocka-1.1.0/cmake/Modules/UseDoxygen.cmake +++ /dev/null @@ -1,140 +0,0 @@ -# - Run Doxygen -# -# Adds a doxygen target that runs doxygen to generate the html -# and optionally the LaTeX API documentation. -# The doxygen target is added to the doc target as a dependency. -# i.e.: the API documentation is built with: -# make doc -# -# USAGE: GLOBAL INSTALL -# -# Install it with: -# cmake ./ && sudo make install -# Add the following to the CMakeLists.txt of your project: -# include(UseDoxygen OPTIONAL) -# Optionally copy Doxyfile.in in the directory of CMakeLists.txt and edit it. -# -# USAGE: INCLUDE IN PROJECT -# -# set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) -# include(UseDoxygen) -# Add the Doxyfile.in and UseDoxygen.cmake files to the projects source directory. -# -# -# CONFIGURATION -# -# To configure Doxygen you can edit Doxyfile.in and set some variables in cmake. -# Variables you may define are: -# DOXYFILE_SOURCE_DIR - Path where the Doxygen input files are. -# Defaults to the current source directory. -# DOXYFILE_EXTRA_SOURCES - Additional source diretories/files for Doxygen to scan. -# The Paths should be in double quotes and separated by space. e.g.: -# "${CMAKE_CURRENT_BINARY_DIR}/foo.c" "${CMAKE_CURRENT_BINARY_DIR}/bar/" -# -# DOXYFILE_OUTPUT_DIR - Path where the Doxygen output is stored. -# Defaults to "${CMAKE_CURRENT_BINARY_DIR}/doc". -# -# DOXYFILE_LATEX - ON/OFF; Set to "ON" if you want the LaTeX documentation -# to be built. -# DOXYFILE_LATEX_DIR - Directory relative to DOXYFILE_OUTPUT_DIR where -# the Doxygen LaTeX output is stored. Defaults to "latex". -# -# DOXYFILE_HTML_DIR - Directory relative to DOXYFILE_OUTPUT_DIR where -# the Doxygen html output is stored. Defaults to "html". -# - -# -# Copyright (c) 2009, 2010, 2011 Tobias Rautenkranz -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - -macro(usedoxygen_set_default name value type docstring) - if(NOT DEFINED "${name}") - set("${name}" "${value}" CACHE "${type}" "${docstring}") - endif() -endmacro() - -find_package(Doxygen) - -if(DOXYGEN_FOUND) - find_file(DOXYFILE_IN "Doxyfile.in" - PATHS "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_ROOT}/Modules/" - NO_DEFAULT_PATH - DOC "Path to the doxygen configuration template file") - set(DOXYFILE "${CMAKE_CURRENT_BINARY_DIR}/Doxyfile") - include(FindPackageHandleStandardArgs) - find_package_handle_standard_args(DOXYFILE_IN DEFAULT_MSG "DOXYFILE_IN") -endif() - -if(DOXYGEN_FOUND AND DOXYFILE_IN_FOUND) - usedoxygen_set_default(DOXYFILE_OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/doc" - PATH "Doxygen output directory") - usedoxygen_set_default(DOXYFILE_HTML_DIR "html" - STRING "Doxygen HTML output directory") - usedoxygen_set_default(DOXYFILE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" - PATH "Input files source directory") - usedoxygen_set_default(DOXYFILE_EXTRA_SOURCE_DIRS "" - STRING "Additional source files/directories separated by space") - set(DOXYFILE_SOURCE_DIRS "\"${DOXYFILE_SOURCE_DIR}\" ${DOXYFILE_EXTRA_SOURCES}") - - usedoxygen_set_default(DOXYFILE_LATEX YES BOOL "Generate LaTeX API documentation" OFF) - usedoxygen_set_default(DOXYFILE_LATEX_DIR "latex" STRING "LaTex output directory") - - mark_as_advanced(DOXYFILE_OUTPUT_DIR DOXYFILE_HTML_DIR DOXYFILE_LATEX_DIR - DOXYFILE_SOURCE_DIR DOXYFILE_EXTRA_SOURCE_DIRS DOXYFILE_IN) - - - set_property(DIRECTORY - APPEND PROPERTY - ADDITIONAL_MAKE_CLEAN_FILES - "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_HTML_DIR}") - - add_custom_target(doxygen - COMMAND "${DOXYGEN_EXECUTABLE}" - "${DOXYFILE}" - COMMENT "Writing documentation to ${DOXYFILE_OUTPUT_DIR}..." - WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") - - set(DOXYFILE_DOT "NO") - if(DOXYGEN_DOT_EXECUTABLE) - set(DOXYFILE_DOT "YES") - endif() - - ## LaTeX - set(DOXYFILE_PDFLATEX "NO") - - set_property(DIRECTORY APPEND PROPERTY - ADDITIONAL_MAKE_CLEAN_FILES - "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") - - if(DOXYFILE_LATEX STREQUAL "ON") - set(DOXYFILE_GENERATE_LATEX "YES") - find_package(LATEX) - find_program(DOXYFILE_MAKE make) - mark_as_advanced(DOXYFILE_MAKE) - if(LATEX_COMPILER AND MAKEINDEX_COMPILER AND DOXYFILE_MAKE) - if(PDFLATEX_COMPILER) - set(DOXYFILE_PDFLATEX "YES") - endif() - - add_custom_command(TARGET doxygen - POST_BUILD - COMMAND "${DOXYFILE_MAKE}" - COMMENT "Running LaTeX for Doxygen documentation in ${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}..." - WORKING_DIRECTORY "${DOXYFILE_OUTPUT_DIR}/${DOXYFILE_LATEX_DIR}") - else() - set(DOXYGEN_LATEX "NO") - endif() - else() - set(DOXYFILE_GENERATE_LATEX "NO") - endif() - - - configure_file("${DOXYFILE_IN}" "${DOXYFILE}" @ONLY) - - add_custom_target(doc) - add_dependencies(doc doxygen) -endif() diff --git a/tests/cmocka-1.1.0/cmocka-build-tree-settings.cmake.in b/tests/cmocka-1.1.0/cmocka-build-tree-settings.cmake.in deleted file mode 100644 index eb1f29e..0000000 --- a/tests/cmocka-1.1.0/cmocka-build-tree-settings.cmake.in +++ /dev/null @@ -1 +0,0 @@ -set(CMOCKA_INLUDE_DIR @PROJECT_SOURCE_DIR@/include) diff --git a/tests/cmocka-1.1.0/cmocka-config-version.cmake.in b/tests/cmocka-1.1.0/cmocka-config-version.cmake.in deleted file mode 100644 index 98f292c..0000000 --- a/tests/cmocka-1.1.0/cmocka-config-version.cmake.in +++ /dev/null @@ -1,11 +0,0 @@ -set(PACKAGE_VERSION @APPLICATION_VERSION@) - -# Check whether the requested PACKAGE_FIND_VERSION is compatible -if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}") - set(PACKAGE_VERSION_COMPATIBLE FALSE) -else() - set(PACKAGE_VERSION_COMPATIBLE TRUE) - if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}") - set(PACKAGE_VERSION_EXACT TRUE) - endif() -endif() diff --git a/tests/cmocka-1.1.0/cmocka-config.cmake.in b/tests/cmocka-1.1.0/cmocka-config.cmake.in deleted file mode 100644 index 317f0a2..0000000 --- a/tests/cmocka-1.1.0/cmocka-config.cmake.in +++ /dev/null @@ -1,11 +0,0 @@ -get_filename_component(CMOCKA_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) - -if (EXISTS "${CMOCKA_CMAKE_DIR}/CMakeCache.txt") - # In build tree - include(${CMOCKA_CMAKE_DIR}/cmocka-build-tree-settings.cmake) -else() - set(CMOCKA_INCLUDE_DIR @INCLUDE_INSTALL_DIR@) -endif() - -set(CMOCKA_LIBRARY @LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@) -set(CMOCKA_LIBRARIES @LIB_INSTALL_DIR@/@CMOCKA_LIBRARY_NAME@) diff --git a/tests/cmocka-1.1.0/cmocka.pc.cmake b/tests/cmocka-1.1.0/cmocka.pc.cmake deleted file mode 100644 index c6f7433..0000000 --- a/tests/cmocka-1.1.0/cmocka.pc.cmake +++ /dev/null @@ -1,6 +0,0 @@ -Name: ${APPLICATION_NAME} -Description: The cmocka unit testing library -Version: ${APPLICATION_VERSION} -Libs: -L${LIB_INSTALL_DIR} -lcmocka -Cflags: -I${INCLUDE_INSTALL_DIR} - diff --git a/tests/cmocka-1.1.0/config.h.cmake b/tests/cmocka-1.1.0/config.h.cmake deleted file mode 100644 index 920bb10..0000000 --- a/tests/cmocka-1.1.0/config.h.cmake +++ /dev/null @@ -1,169 +0,0 @@ -/* Name of package */ -#cmakedefine PACKAGE "${APPLICATION_NAME}" - -/* Version number of package */ -#cmakedefine VERSION "${APPLICATION_VERSION}" - -#cmakedefine LOCALEDIR "${LOCALE_INSTALL_DIR}" -#cmakedefine DATADIR "${DATADIR}" -#cmakedefine LIBDIR "${LIBDIR}" -#cmakedefine PLUGINDIR "${PLUGINDIR}" -#cmakedefine SYSCONFDIR "${SYSCONFDIR}" -#cmakedefine BINARYDIR "${BINARYDIR}" -#cmakedefine SOURCEDIR "${SOURCEDIR}" - -/************************** HEADER FILES *************************/ - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ASSERT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DLFCN_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_INTTYPES_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_IO_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MALLOC_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MEMORY_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SETJMP_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SIGNAL_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDARG_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDDEF_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDINT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDIO_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDLIB_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRINGS_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRING_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_STAT_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TYPES_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_TIME_H 1 - -/* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UNISTD_H 1 - -/**************************** STRUCTS ****************************/ - -#cmakedefine HAVE_STRUCT_TIMESPEC 1 - -/*************************** FUNCTIONS ***************************/ - -/* Define to 1 if you have the `calloc' function. */ -#cmakedefine HAVE_CALLOC 1 - -/* Define to 1 if you have the `exit' function. */ -#cmakedefine HAVE_EXIT 1 - -/* Define to 1 if you have the `fprintf' function. */ -#cmakedefine HAVE_FPRINTF 1 - -/* Define to 1 if you have the `snprintf' function. */ -#cmakedefine HAVE_SNPRINTF 1 - -/* Define to 1 if you have the `_snprintf' function. */ -#cmakedefine HAVE__SNPRINTF 1 - -/* Define to 1 if you have the `_snprintf_s' function. */ -#cmakedefine HAVE__SNPRINTF_S 1 - -/* Define to 1 if you have the `vsnprintf' function. */ -#cmakedefine HAVE_VSNPRINTF 1 - -/* Define to 1 if you have the `_vsnprintf' function. */ -#cmakedefine HAVE__VSNPRINTF 1 - -/* Define to 1 if you have the `_vsnprintf_s' function. */ -#cmakedefine HAVE__VSNPRINTF_S 1 - -/* Define to 1 if you have the `free' function. */ -#cmakedefine HAVE_FREE 1 - -/* Define to 1 if you have the `longjmp' function. */ -#cmakedefine HAVE_LONGJMP 1 - -/* Define to 1 if you have the `siglongjmp' function. */ -#cmakedefine HAVE_SIGLONGJMP 1 - -/* Define to 1 if you have the `malloc' function. */ -#cmakedefine HAVE_MALLOC 1 - -/* Define to 1 if you have the `memcpy' function. */ -#cmakedefine HAVE_MEMCPY 1 - -/* Define to 1 if you have the `memset' function. */ -#cmakedefine HAVE_MEMSET 1 - -/* Define to 1 if you have the `printf' function. */ -#cmakedefine HAVE_PRINTF 1 - -/* Define to 1 if you have the `setjmp' function. */ -#cmakedefine HAVE_SETJMP 1 - -/* Define to 1 if you have the `signal' function. */ -#cmakedefine HAVE_SIGNAL 1 - -/* Define to 1 if you have the `snprintf' function. */ -#cmakedefine HAVE_SNPRINTF 1 - -/* Define to 1 if you have the `strcmp' function. */ -#cmakedefine HAVE_STRCMP 1 - -/* Define to 1 if you have the `strcpy' function. */ -#cmakedefine HAVE_STRCPY 1 - -/* Define to 1 if you have the `vsnprintf' function. */ -#cmakedefine HAVE_VSNPRINTF 1 - -/* Define to 1 if you have the `strsignal' function. */ -#cmakedefine HAVE_STRSIGNAL 1 - -/* Define to 1 if you have the `clock_gettime' function. */ -#cmakedefine HAVE_CLOCK_GETTIME 1 - -/**************************** OPTIONS ****************************/ - -/* Check if we have TLS support with GCC */ -#cmakedefine HAVE_GCC_THREAD_LOCAL_STORAGE 1 - -/* Check if we have TLS support with MSVC */ -#cmakedefine HAVE_MSVC_THREAD_LOCAL_STORAGE 1 - -/* Check if we have CLOCK_REALTIME for clock_gettime() */ -#cmakedefine HAVE_CLOCK_GETTIME_REALTIME 1 - -/*************************** ENDIAN *****************************/ - -#cmakedefine WORDS_SIZEOF_VOID_P ${WORDS_SIZEOF_VOID_P} - -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#cmakedefine WORDS_BIGENDIAN 1 diff --git a/tests/cmocka-1.1.0/coverity/README b/tests/cmocka-1.1.0/coverity/README deleted file mode 100644 index 7756137..0000000 --- a/tests/cmocka-1.1.0/coverity/README +++ /dev/null @@ -1,9 +0,0 @@ -coverity_assert_model.c: - -This file is a Coverity Modeling file for projects using CMocka for unit -testing. The assert functiions could create false positives, to avoid that you -can load this modeling file in the Coverity web interface. - -coverity_internal_model.c: - -This file is for the CMocka source code itself. diff --git a/tests/cmocka-1.1.0/coverity/coverity_assert_model.c b/tests/cmocka-1.1.0/coverity/coverity_assert_model.c deleted file mode 100644 index 9bbb9f7..0000000 --- a/tests/cmocka-1.1.0/coverity/coverity_assert_model.c +++ /dev/null @@ -1,87 +0,0 @@ -#define LargestIntegralType unsigned long long - -void _assert_true(const LargestIntegralType result, - const char* const expression, - const char * const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_int_equal( - const LargestIntegralType a, const LargestIntegralType b, - const char * const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_int_not_equal( - const LargestIntegralType a, const LargestIntegralType b, - const char * const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_return_code(const LargestIntegralType result, - size_t rlen, - const LargestIntegralType error, - const char * const expression, - const char * const file, - const int line) -{ - __coverity_panic__(); -} - -void _assert_string_equal(const char * const a, const char * const b, - const char * const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_string_not_equal(const char * const a, const char * const b, - const char *file, const int line) -{ - __coverity_panic__(); -} - -void _assert_memory_equal(const void * const a, const void * const b, - const size_t size, const char* const file, - const int line) -{ - __coverity_panic__(); -} - -void _assert_memory_not_equal(const void * const a, const void * const b, - const size_t size, const char* const file, - const int line) -{ - __coverity_panic__(); -} - -void _assert_in_range( - const LargestIntegralType value, const LargestIntegralType minimum, - const LargestIntegralType maximum, const char* const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_not_in_range( - const LargestIntegralType value, const LargestIntegralType minimum, - const LargestIntegralType maximum, const char* const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_in_set( - const LargestIntegralType value, const LargestIntegralType values[], - const size_t number_of_values, const char* const file, const int line) -{ - __coverity_panic__(); -} - -void _assert_not_in_set( - const LargestIntegralType value, const LargestIntegralType values[], - const size_t number_of_values, const char* const file, const int line) -{ - __coverity_panic__(); -} - diff --git a/tests/cmocka-1.1.0/coverity/coverity_internal_model.c b/tests/cmocka-1.1.0/coverity/coverity_internal_model.c deleted file mode 100644 index fd1416d..0000000 --- a/tests/cmocka-1.1.0/coverity/coverity_internal_model.c +++ /dev/null @@ -1,5 +0,0 @@ -/* Functions to help coverity do static analysis on cmocka */ -void exit_test(const int quit_application) -{ - __coverity_panic__(); -} diff --git a/tests/cmocka-1.1.0/doc/CMakeLists.txt b/tests/cmocka-1.1.0/doc/CMakeLists.txt deleted file mode 100644 index 3124281..0000000 --- a/tests/cmocka-1.1.0/doc/CMakeLists.txt +++ /dev/null @@ -1,5 +0,0 @@ -# -# Build the documentation -# -include(UseDoxygen OPTIONAL) - diff --git a/tests/cmocka-1.1.0/doc/Doxyfile.in b/tests/cmocka-1.1.0/doc/Doxyfile.in deleted file mode 100644 index b0f9f63..0000000 --- a/tests/cmocka-1.1.0/doc/Doxyfile.in +++ /dev/null @@ -1,2358 +0,0 @@ -# Doxyfile 1.8.8 - -# This file describes the settings to be used by the documentation system -# doxygen (www.doxygen.org) for a project. -# -# All text after a double hash (##) is considered a comment and is placed in -# front of the TAG it is preceding. -# -# All text after a single hash (#) is considered a comment and will be ignored. -# The format is: -# TAG = value [value, ...] -# For lists, items can also be appended using: -# TAG += value [value, ...] -# Values that contain spaces should be placed between quotes (\" \"). - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- - -# This tag specifies the encoding used for all characters in the config file -# that follow. The default is UTF-8 which is also the encoding used for all text -# before the first occurrence of this tag. Doxygen uses libiconv (or the iconv -# built into libc) for the transcoding. See http://www.gnu.org/software/libiconv -# for the list of possible encodings. -# The default value is: UTF-8. - -DOXYFILE_ENCODING = UTF-8 - -# The PROJECT_NAME tag is a single word (or a sequence of words surrounded by -# double-quotes, unless you are using Doxywizard) that should identify the -# project for which the documentation is generated. This name is used in the -# title of most generated pages and in a few other places. -# The default value is: My Project. - -PROJECT_NAME = @APPLICATION_NAME@ - -# The PROJECT_NUMBER tag can be used to enter a project or revision number. This -# could be handy for archiving the generated documentation or if some version -# control system is used. - -PROJECT_NUMBER = @APPLICATION_VERSION@ - -# Using the PROJECT_BRIEF tag one can provide an optional one line description -# for a project that appears at the top of each page and should give viewer a -# quick idea about the purpose of the project. Keep the description short. - -PROJECT_BRIEF = - -# With the PROJECT_LOGO tag one can specify an logo or icon that is included in -# the documentation. The maximum height of the logo should not exceed 55 pixels -# and the maximum width should not exceed 200 pixels. Doxygen will copy the logo -# to the output directory. - -PROJECT_LOGO = - -# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path -# into which the generated documentation will be written. If a relative path is -# entered, it will be relative to the location where doxygen was started. If -# left blank the current directory will be used. - -OUTPUT_DIRECTORY = @CMAKE_CURRENT_BINARY_DIR@ - -# If the CREATE_SUBDIRS tag is set to YES, then doxygen will create 4096 sub- -# directories (in 2 levels) under the output directory of each output format and -# will distribute the generated files over these directories. Enabling this -# option can be useful when feeding doxygen a huge amount of source files, where -# putting all generated files in the same directory would otherwise causes -# performance problems for the file system. -# The default value is: NO. - -CREATE_SUBDIRS = NO - -# If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII -# characters to appear in the names of generated files. If set to NO, non-ASCII -# characters will be escaped, for example _xE3_x81_x84 will be used for Unicode -# U+3044. -# The default value is: NO. - -ALLOW_UNICODE_NAMES = NO - -# The OUTPUT_LANGUAGE tag is used to specify the language in which all -# documentation generated by doxygen is written. Doxygen will use this -# information to generate all constant output in the proper language. -# Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, -# Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), -# Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, -# Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), -# Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, -# Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, -# Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, -# Ukrainian and Vietnamese. -# The default value is: English. - -OUTPUT_LANGUAGE = English - -# If the BRIEF_MEMBER_DESC tag is set to YES doxygen will include brief member -# descriptions after the members that are listed in the file and class -# documentation (similar to Javadoc). Set to NO to disable this. -# The default value is: YES. - -BRIEF_MEMBER_DESC = YES - -# If the REPEAT_BRIEF tag is set to YES doxygen will prepend the brief -# description of a member or function before the detailed description -# -# Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the -# brief descriptions will be completely suppressed. -# The default value is: YES. - -REPEAT_BRIEF = YES - -# This tag implements a quasi-intelligent brief description abbreviator that is -# used to form the text in various listings. Each string in this list, if found -# as the leading text of the brief description, will be stripped from the text -# and the result, after processing the whole list, is used as the annotated -# text. Otherwise, the brief description is used as-is. If left blank, the -# following values are used ($name is automatically replaced with the name of -# the entity):The $name class, The $name widget, The $name file, is, provides, -# specifies, contains, represents, a, an and the. - -ABBREVIATE_BRIEF = "The $name class" \ - "The $name widget" \ - "The $name file" \ - is \ - provides \ - specifies \ - contains \ - represents \ - a \ - an \ - the - -# If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then -# doxygen will generate a detailed section even if there is only a brief -# description. -# The default value is: NO. - -ALWAYS_DETAILED_SEC = NO - -# If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all -# inherited members of a class in the documentation of that class as if those -# members were ordinary class members. Constructors, destructors and assignment -# operators of the base classes will not be shown. -# The default value is: NO. - -INLINE_INHERITED_MEMB = NO - -# If the FULL_PATH_NAMES tag is set to YES doxygen will prepend the full path -# before files name in the file list and in the header files. If set to NO the -# shortest path that makes the file name unique will be used -# The default value is: YES. - -FULL_PATH_NAMES = YES - -# The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. -# Stripping is only done if one of the specified strings matches the left-hand -# part of the path. The tag can be used to show relative paths in the file list. -# If left blank the directory from which doxygen is run is used as the path to -# strip. -# -# Note that you can specify absolute paths here, but also relative paths, which -# will be relative from the directory where doxygen is started. -# This tag requires that the tag FULL_PATH_NAMES is set to YES. - -STRIP_FROM_PATH = @CMAKE_SOURCE_DIR@ - -# The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the -# path mentioned in the documentation of a class, which tells the reader which -# header file to include in order to use a class. If left blank only the name of -# the header file containing the class definition is used. Otherwise one should -# specify the list of include paths that are normally passed to the compiler -# using the -I flag. - -STRIP_FROM_INC_PATH = @CMAKE_SOURCE_DIR@ - -# If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but -# less readable) file names. This can be useful is your file systems doesn't -# support long names like on DOS, Mac, or CD-ROM. -# The default value is: NO. - -SHORT_NAMES = NO - -# If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the -# first line (until the first dot) of a Javadoc-style comment as the brief -# description. If set to NO, the Javadoc-style will behave just like regular Qt- -# style comments (thus requiring an explicit @brief command for a brief -# description.) -# The default value is: NO. - -JAVADOC_AUTOBRIEF = YES - -# If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first -# line (until the first dot) of a Qt-style comment as the brief description. If -# set to NO, the Qt-style will behave just like regular Qt-style comments (thus -# requiring an explicit \brief command for a brief description.) -# The default value is: NO. - -QT_AUTOBRIEF = NO - -# The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a -# multi-line C++ special comment block (i.e. a block of //! or /// comments) as -# a brief description. This used to be the default behavior. The new default is -# to treat a multi-line C++ comment block as a detailed description. Set this -# tag to YES if you prefer the old behavior instead. -# -# Note that setting this tag to YES also means that rational rose comments are -# not recognized any more. -# The default value is: NO. - -MULTILINE_CPP_IS_BRIEF = NO - -# If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the -# documentation from any documented member that it re-implements. -# The default value is: YES. - -INHERIT_DOCS = YES - -# If the SEPARATE_MEMBER_PAGES tag is set to YES, then doxygen will produce a -# new page for each member. If set to NO, the documentation of a member will be -# part of the file/class/namespace that contains it. -# The default value is: NO. - -SEPARATE_MEMBER_PAGES = NO - -# The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen -# uses this value to replace tabs by spaces in code fragments. -# Minimum value: 1, maximum value: 16, default value: 4. - -TAB_SIZE = 2 - -# This tag can be used to specify a number of aliases that act as commands in -# the documentation. An alias has the form: -# name=value -# For example adding -# "sideeffect=@par Side Effects:\n" -# will allow you to put the command \sideeffect (or @sideeffect) in the -# documentation, which will result in a user-defined paragraph with heading -# "Side Effects:". You can put \n's in the value part of an alias to insert -# newlines. - -ALIASES = - -# This tag can be used to specify a number of word-keyword mappings (TCL only). -# A mapping has the form "name=value". For example adding "class=itcl::class" -# will allow you to use the command class in the itcl::class meaning. - -TCL_SUBST = - -# Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources -# only. Doxygen will then generate output that is more tailored for C. For -# instance, some of the names that are used will be different. The list of all -# members will be omitted, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_FOR_C = YES - -# Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or -# Python sources only. Doxygen will then generate output that is more tailored -# for that language. For instance, namespaces will be presented as packages, -# qualified scopes will look different, etc. -# The default value is: NO. - -OPTIMIZE_OUTPUT_JAVA = NO - -# Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran -# sources. Doxygen will then generate output that is tailored for Fortran. -# The default value is: NO. - -OPTIMIZE_FOR_FORTRAN = NO - -# Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL -# sources. Doxygen will then generate output that is tailored for VHDL. -# The default value is: NO. - -OPTIMIZE_OUTPUT_VHDL = NO - -# Doxygen selects the parser to use depending on the extension of the files it -# parses. With this tag you can assign which parser to use for a given -# extension. Doxygen has a built-in mapping, but you can override or extend it -# using this tag. The format is ext=language, where ext is a file extension, and -# language is one of the parsers supported by doxygen: IDL, Java, Javascript, -# C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: -# FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: -# Fortran. In the later case the parser tries to guess whether the code is fixed -# or free formatted code, this is the default for Fortran type files), VHDL. For -# instance to make doxygen treat .inc files as Fortran files (default is PHP), -# and .f files as C (default is Fortran), use: inc=Fortran f=C. -# -# Note For files without extension you can use no_extension as a placeholder. -# -# Note that for custom extensions you also need to set FILE_PATTERNS otherwise -# the files are not read by doxygen. - -EXTENSION_MAPPING = - -# If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments -# according to the Markdown format, which allows for more readable -# documentation. See http://daringfireball.net/projects/markdown/ for details. -# The output of markdown processing is further processed by doxygen, so you can -# mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in -# case of backward compatibilities issues. -# The default value is: YES. - -MARKDOWN_SUPPORT = YES - -# When enabled doxygen tries to link words that correspond to documented -# classes, or namespaces to their corresponding documentation. Such a link can -# be prevented in individual cases by by putting a % sign in front of the word -# or globally by setting AUTOLINK_SUPPORT to NO. -# The default value is: YES. - -AUTOLINK_SUPPORT = YES - -# If you use STL classes (i.e. std::string, std::vector, etc.) but do not want -# to include (a tag file for) the STL sources as input, then you should set this -# tag to YES in order to let doxygen match functions declarations and -# definitions whose arguments contain STL classes (e.g. func(std::string); -# versus func(std::string) {}). This also make the inheritance and collaboration -# diagrams that involve STL classes more complete and accurate. -# The default value is: NO. - -BUILTIN_STL_SUPPORT = NO - -# If you use Microsoft's C++/CLI language, you should set this option to YES to -# enable parsing support. -# The default value is: NO. - -CPP_CLI_SUPPORT = NO - -# Set the SIP_SUPPORT tag to YES if your project consists of sip (see: -# http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen -# will parse them like normal C++ but will assume all classes use public instead -# of private inheritance when no explicit protection keyword is present. -# The default value is: NO. - -SIP_SUPPORT = NO - -# For Microsoft's IDL there are propget and propput attributes to indicate -# getter and setter methods for a property. Setting this option to YES will make -# doxygen to replace the get and set methods by a property in the documentation. -# This will only work if the methods are indeed getting or setting a simple -# type. If this is not the case, or you want to show the methods anyway, you -# should set this option to NO. -# The default value is: YES. - -IDL_PROPERTY_SUPPORT = YES - -# If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC -# tag is set to YES, then doxygen will reuse the documentation of the first -# member in the group (if any) for the other members of the group. By default -# all members of a group must be documented explicitly. -# The default value is: NO. - -DISTRIBUTE_GROUP_DOC = NO - -# Set the SUBGROUPING tag to YES to allow class member groups of the same type -# (for instance a group of public functions) to be put as a subgroup of that -# type (e.g. under the Public Functions section). Set it to NO to prevent -# subgrouping. Alternatively, this can be done per class using the -# \nosubgrouping command. -# The default value is: YES. - -SUBGROUPING = YES - -# When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions -# are shown inside the group in which they are included (e.g. using \ingroup) -# instead of on a separate page (for HTML and Man pages) or section (for LaTeX -# and RTF). -# -# Note that this feature does not work in combination with -# SEPARATE_MEMBER_PAGES. -# The default value is: NO. - -INLINE_GROUPED_CLASSES = NO - -# When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions -# with only public data fields or simple typedef fields will be shown inline in -# the documentation of the scope in which they are defined (i.e. file, -# namespace, or group documentation), provided this scope is documented. If set -# to NO, structs, classes, and unions are shown on a separate page (for HTML and -# Man pages) or section (for LaTeX and RTF). -# The default value is: NO. - -INLINE_SIMPLE_STRUCTS = NO - -# When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or -# enum is documented as struct, union, or enum with the name of the typedef. So -# typedef struct TypeS {} TypeT, will appear in the documentation as a struct -# with name TypeT. When disabled the typedef will appear as a member of a file, -# namespace, or class. And the struct will be named TypeS. This can typically be -# useful for C code in case the coding convention dictates that all compound -# types are typedef'ed and only the typedef is referenced, never the tag name. -# The default value is: NO. - -TYPEDEF_HIDES_STRUCT = YES - -# The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This -# cache is used to resolve symbols given their name and scope. Since this can be -# an expensive process and often the same symbol appears multiple times in the -# code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small -# doxygen will become slower. If the cache is too large, memory is wasted. The -# cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range -# is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 -# symbols. At the end of a run doxygen will report the cache usage and suggest -# the optimal cache size from a speed point of view. -# Minimum value: 0, maximum value: 9, default value: 0. - -LOOKUP_CACHE_SIZE = 0 - -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- - -# If the EXTRACT_ALL tag is set to YES doxygen will assume all entities in -# documentation are documented, even if no documentation was available. Private -# class members and static file members will be hidden unless the -# EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. -# Note: This will also disable the warnings about undocumented members that are -# normally produced when WARNINGS is set to YES. -# The default value is: NO. - -EXTRACT_ALL = NO - -# If the EXTRACT_PRIVATE tag is set to YES all private members of a class will -# be included in the documentation. -# The default value is: NO. - -EXTRACT_PRIVATE = NO - -# If the EXTRACT_PACKAGE tag is set to YES all members with package or internal -# scope will be included in the documentation. -# The default value is: NO. - -EXTRACT_PACKAGE = NO - -# If the EXTRACT_STATIC tag is set to YES all static members of a file will be -# included in the documentation. -# The default value is: NO. - -EXTRACT_STATIC = NO - -# If the EXTRACT_LOCAL_CLASSES tag is set to YES classes (and structs) defined -# locally in source files will be included in the documentation. If set to NO -# only classes defined in header files are included. Does not have any effect -# for Java sources. -# The default value is: YES. - -EXTRACT_LOCAL_CLASSES = NO - -# This flag is only useful for Objective-C code. When set to YES local methods, -# which are defined in the implementation section but not in the interface are -# included in the documentation. If set to NO only methods in the interface are -# included. -# The default value is: NO. - -EXTRACT_LOCAL_METHODS = NO - -# If this flag is set to YES, the members of anonymous namespaces will be -# extracted and appear in the documentation as a namespace called -# 'anonymous_namespace{file}', where file will be replaced with the base name of -# the file that contains the anonymous namespace. By default anonymous namespace -# are hidden. -# The default value is: NO. - -EXTRACT_ANON_NSPACES = NO - -# If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all -# undocumented members inside documented classes or files. If set to NO these -# members will be included in the various overviews, but no documentation -# section is generated. This option has no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_MEMBERS = YES - -# If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all -# undocumented classes that are normally visible in the class hierarchy. If set -# to NO these classes will be included in the various overviews. This option has -# no effect if EXTRACT_ALL is enabled. -# The default value is: NO. - -HIDE_UNDOC_CLASSES = YES - -# If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend -# (class|struct|union) declarations. If set to NO these declarations will be -# included in the documentation. -# The default value is: NO. - -HIDE_FRIEND_COMPOUNDS = NO - -# If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any -# documentation blocks found inside the body of a function. If set to NO these -# blocks will be appended to the function's detailed documentation block. -# The default value is: NO. - -HIDE_IN_BODY_DOCS = NO - -# The INTERNAL_DOCS tag determines if documentation that is typed after a -# \internal command is included. If the tag is set to NO then the documentation -# will be excluded. Set it to YES to include the internal documentation. -# The default value is: NO. - -INTERNAL_DOCS = @CMAKE_INTERNAL_DOC@ - -# If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file -# names in lower-case letters. If set to YES upper-case letters are also -# allowed. This is useful if you have classes or files whose names only differ -# in case and if your file system supports case sensitive file names. Windows -# and Mac users are advised to set this option to NO. -# The default value is: system dependent. - -CASE_SENSE_NAMES = YES - -# If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with -# their full class and namespace scopes in the documentation. If set to YES the -# scope will be hidden. -# The default value is: NO. - -HIDE_SCOPE_NAMES = NO - -# If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of -# the files that are included by a file in the documentation of that file. -# The default value is: YES. - -SHOW_INCLUDE_FILES = YES - -# If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each -# grouped member an include statement to the documentation, telling the reader -# which file to include in order to use the member. -# The default value is: NO. - -SHOW_GROUPED_MEMB_INC = NO - -# If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include -# files with double quotes in the documentation rather than with sharp brackets. -# The default value is: NO. - -FORCE_LOCAL_INCLUDES = NO - -# If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the -# documentation for inline members. -# The default value is: YES. - -INLINE_INFO = YES - -# If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the -# (detailed) documentation of file and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. -# The default value is: YES. - -SORT_MEMBER_DOCS = YES - -# If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief -# descriptions of file, namespace and class members alphabetically by member -# name. If set to NO the members will appear in declaration order. Note that -# this will also influence the order of the classes in the class list. -# The default value is: NO. - -SORT_BRIEF_DOCS = YES - -# If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the -# (brief and detailed) documentation of class members so that constructors and -# destructors are listed first. If set to NO the constructors will appear in the -# respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. -# Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief -# member documentation. -# Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting -# detailed member documentation. -# The default value is: NO. - -SORT_MEMBERS_CTORS_1ST = NO - -# If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy -# of group names into alphabetical order. If set to NO the group names will -# appear in their defined order. -# The default value is: NO. - -SORT_GROUP_NAMES = NO - -# If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by -# fully-qualified names, including namespaces. If set to NO, the class list will -# be sorted only by class name, not including the namespace part. -# Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. -# Note: This option applies only to the class list, not to the alphabetical -# list. -# The default value is: NO. - -SORT_BY_SCOPE_NAME = NO - -# If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper -# type resolution of all parameters of a function it will reject a match between -# the prototype and the implementation of a member function even if there is -# only one candidate or it is obvious which candidate to choose by doing a -# simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still -# accept a match between prototype and implementation in such cases. -# The default value is: NO. - -STRICT_PROTO_MATCHING = NO - -# The GENERATE_TODOLIST tag can be used to enable ( YES) or disable ( NO) the -# todo list. This list is created by putting \todo commands in the -# documentation. -# The default value is: YES. - -GENERATE_TODOLIST = YES - -# The GENERATE_TESTLIST tag can be used to enable ( YES) or disable ( NO) the -# test list. This list is created by putting \test commands in the -# documentation. -# The default value is: YES. - -GENERATE_TESTLIST = YES - -# The GENERATE_BUGLIST tag can be used to enable ( YES) or disable ( NO) the bug -# list. This list is created by putting \bug commands in the documentation. -# The default value is: YES. - -GENERATE_BUGLIST = YES - -# The GENERATE_DEPRECATEDLIST tag can be used to enable ( YES) or disable ( NO) -# the deprecated list. This list is created by putting \deprecated commands in -# the documentation. -# The default value is: YES. - -GENERATE_DEPRECATEDLIST= YES - -# The ENABLED_SECTIONS tag can be used to enable conditional documentation -# sections, marked by \if ... \endif and \cond -# ... \endcond blocks. - -ENABLED_SECTIONS = - -# The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the -# initial value of a variable or macro / define can have for it to appear in the -# documentation. If the initializer consists of more lines than specified here -# it will be hidden. Use a value of 0 to hide initializers completely. The -# appearance of the value of individual variables and macros / defines can be -# controlled using \showinitializer or \hideinitializer command in the -# documentation regardless of this setting. -# Minimum value: 0, maximum value: 10000, default value: 30. - -MAX_INITIALIZER_LINES = 30 - -# Set the SHOW_USED_FILES tag to NO to disable the list of files generated at -# the bottom of the documentation of classes and structs. If set to YES the list -# will mention the files that were used to generate the documentation. -# The default value is: YES. - -SHOW_USED_FILES = YES - -# Set the SHOW_FILES tag to NO to disable the generation of the Files page. This -# will remove the Files entry from the Quick Index and from the Folder Tree View -# (if specified). -# The default value is: YES. - -SHOW_FILES = YES - -# Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces -# page. This will remove the Namespaces entry from the Quick Index and from the -# Folder Tree View (if specified). -# The default value is: YES. - -SHOW_NAMESPACES = YES - -# The FILE_VERSION_FILTER tag can be used to specify a program or script that -# doxygen should invoke to get the current version for each file (typically from -# the version control system). Doxygen will invoke the program by executing (via -# popen()) the command command input-file, where command is the value of the -# FILE_VERSION_FILTER tag, and input-file is the name of an input file provided -# by doxygen. Whatever the program writes to standard output is used as the file -# version. For an example see the documentation. - -FILE_VERSION_FILTER = - -# The LAYOUT_FILE tag can be used to specify a layout file which will be parsed -# by doxygen. The layout file controls the global structure of the generated -# output files in an output format independent way. To create the layout file -# that represents doxygen's defaults, run doxygen with the -l option. You can -# optionally specify a file name after the option, if omitted DoxygenLayout.xml -# will be used as the name of the layout file. -# -# Note that if you run doxygen from a directory containing a file called -# DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE -# tag is left empty. - -LAYOUT_FILE = - -# The CITE_BIB_FILES tag can be used to specify one or more bib files containing -# the reference definitions. This must be a list of .bib files. The .bib -# extension is automatically appended if omitted. This requires the bibtex tool -# to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. -# For LaTeX the style of the bibliography can be controlled using -# LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the -# search path. See also \cite for info how to create references. - -CITE_BIB_FILES = - -#--------------------------------------------------------------------------- -# Configuration options related to warning and progress messages -#--------------------------------------------------------------------------- - -# The QUIET tag can be used to turn on/off the messages that are generated to -# standard output by doxygen. If QUIET is set to YES this implies that the -# messages are off. -# The default value is: NO. - -QUIET = YES - -# The WARNINGS tag can be used to turn on/off the warning messages that are -# generated to standard error ( stderr) by doxygen. If WARNINGS is set to YES -# this implies that the warnings are on. -# -# Tip: Turn warnings on while writing the documentation. -# The default value is: YES. - -WARNINGS = YES - -# If the WARN_IF_UNDOCUMENTED tag is set to YES, then doxygen will generate -# warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag -# will automatically be disabled. -# The default value is: YES. - -WARN_IF_UNDOCUMENTED = YES - -# If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for -# potential errors in the documentation, such as not documenting some parameters -# in a documented function, or documenting parameters that don't exist or using -# markup commands wrongly. -# The default value is: YES. - -WARN_IF_DOC_ERROR = YES - -# This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that -# are documented, but have no documentation for their parameters or return -# value. If set to NO doxygen will only warn about wrong or incomplete parameter -# documentation, but not about the absence of documentation. -# The default value is: NO. - -WARN_NO_PARAMDOC = NO - -# The WARN_FORMAT tag determines the format of the warning messages that doxygen -# can produce. The string should contain the $file, $line, and $text tags, which -# will be replaced by the file and line number from which the warning originated -# and the warning text. Optionally the format may contain $version, which will -# be replaced by the version of the file (if it could be obtained via -# FILE_VERSION_FILTER) -# The default value is: $file:$line: $text. - -WARN_FORMAT = "$file:$line: $text" - -# The WARN_LOGFILE tag can be used to specify a file to which warning and error -# messages should be written. If left blank the output is written to standard -# error (stderr). - -WARN_LOGFILE = - -#--------------------------------------------------------------------------- -# Configuration options related to the input files -#--------------------------------------------------------------------------- - -# The INPUT tag is used to specify the files and/or directories that contain -# documented source files. You may enter file names like myfile.cpp or -# directories like /usr/src/myproject. Separate the files or directories with -# spaces. -# Note: If this tag is empty the current directory is searched. - -INPUT = @CMAKE_SOURCE_DIR@/include \ - @CMAKE_SOURCE_DIR@/src \ - @CMAKE_SOURCE_DIR@/doc - -# This tag can be used to specify the character encoding of the source files -# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses -# libiconv (or the iconv built into libc) for the transcoding. See the libiconv -# documentation (see: http://www.gnu.org/software/libiconv) for the list of -# possible encodings. -# The default value is: UTF-8. - -INPUT_ENCODING = UTF-8 - -# If the value of the INPUT tag contains directories, you can use the -# FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank the -# following patterns are tested:*.c, *.cc, *.cxx, *.cpp, *.c++, *.java, *.ii, -# *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, *.hh, *.hxx, *.hpp, -# *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, *.m, *.markdown, -# *.md, *.mm, *.dox, *.py, *.f90, *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf, -# *.qsf, *.as and *.js. - -FILE_PATTERNS = *.cpp \ - *.cc \ - *.c \ - *.h \ - *.hh \ - *.hpp \ - *.dox - -# The RECURSIVE tag can be used to specify whether or not subdirectories should -# be searched for input files as well. -# The default value is: NO. - -RECURSIVE = YES - -# The EXCLUDE tag can be used to specify files and/or directories that should be -# excluded from the INPUT source files. This way you can easily exclude a -# subdirectory from a directory tree whose root is specified with the INPUT tag. -# -# Note that relative paths are relative to the directory from which doxygen is -# run. - -EXCLUDE = - -# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or -# directories that are symbolic links (a Unix file system feature) are excluded -# from the input. -# The default value is: NO. - -EXCLUDE_SYMLINKS = NO - -# If the value of the INPUT tag contains directories, you can use the -# EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude -# certain files from those directories. -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories for example use the pattern */test/* - -EXCLUDE_PATTERNS = */.git/* \ - */.svn/* \ - */cmake/* - -# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names -# (namespaces, classes, functions, etc.) that should be excluded from the -# output. The symbol name can be a fully qualified name, a word, or if the -# wildcard * is used, a substring. Examples: ANamespace, AClass, -# AClass::ANamespace, ANamespace::*Test -# -# Note that the wildcards are matched against the file with absolute path, so to -# exclude all test directories use the pattern */test/* - -EXCLUDE_SYMBOLS = - -# The EXAMPLE_PATH tag can be used to specify one or more files or directories -# that contain example code fragments that are included (see the \include -# command). - -EXAMPLE_PATH = @CMAKE_SOURCE_DIR@/example - -# If the value of the EXAMPLE_PATH tag contains directories, you can use the -# EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and -# *.h) to filter out the source-files in the directories. If left blank all -# files are included. - -EXAMPLE_PATTERNS = *.c \ - *.h \ - INSTALL \ - DEPENDENCIES \ - CHANGELOG \ - LICENSE \ - LGPL - -# If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be -# searched for input files to be used with the \include or \dontinclude commands -# irrespective of the value of the RECURSIVE tag. -# The default value is: NO. - -EXAMPLE_RECURSIVE = YES - -# The IMAGE_PATH tag can be used to specify one or more files or directories -# that contain images that are to be included in the documentation (see the -# \image command). - -IMAGE_PATH = - -# The INPUT_FILTER tag can be used to specify a program that doxygen should -# invoke to filter for each input file. Doxygen will invoke the filter program -# by executing (via popen()) the command: -# -# -# -# where is the value of the INPUT_FILTER tag, and is the -# name of an input file. Doxygen will then use the output that the filter -# program writes to standard output. If FILTER_PATTERNS is specified, this tag -# will be ignored. -# -# Note that the filter must not add or remove lines; it is applied before the -# code is scanned, but not when the output code is generated. If lines are added -# or removed, the anchors will not be placed correctly. - -INPUT_FILTER = - -# The FILTER_PATTERNS tag can be used to specify filters on a per file pattern -# basis. Doxygen will compare the file name with each pattern and apply the -# filter if there is a match. The filters are a list of the form: pattern=filter -# (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how -# filters are used. If the FILTER_PATTERNS tag is empty or if none of the -# patterns match the file name, INPUT_FILTER is applied. - -FILTER_PATTERNS = - -# If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using -# INPUT_FILTER ) will also be used to filter the input files that are used for -# producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). -# The default value is: NO. - -FILTER_SOURCE_FILES = NO - -# The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file -# pattern. A pattern will override the setting for FILTER_PATTERN (if any) and -# it is also possible to disable source filtering for a specific pattern using -# *.ext= (so without naming a filter). -# This tag requires that the tag FILTER_SOURCE_FILES is set to YES. - -FILTER_SOURCE_PATTERNS = - -# If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that -# is part of the input, its contents will be placed on the main page -# (index.html). This can be useful if you have a project on for instance GitHub -# and want to reuse the introduction page also for the doxygen output. - -USE_MDFILE_AS_MAINPAGE = - -#--------------------------------------------------------------------------- -# Configuration options related to source browsing -#--------------------------------------------------------------------------- - -# If the SOURCE_BROWSER tag is set to YES then a list of source files will be -# generated. Documented entities will be cross-referenced with these sources. -# -# Note: To get rid of all source code in the generated output, make sure that -# also VERBATIM_HEADERS is set to NO. -# The default value is: NO. - -SOURCE_BROWSER = NO - -# Setting the INLINE_SOURCES tag to YES will include the body of functions, -# classes and enums directly into the documentation. -# The default value is: NO. - -INLINE_SOURCES = NO - -# Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any -# special comment blocks from generated source code fragments. Normal C, C++ and -# Fortran comments will always remain visible. -# The default value is: YES. - -STRIP_CODE_COMMENTS = YES - -# If the REFERENCED_BY_RELATION tag is set to YES then for each documented -# function all documented functions referencing it will be listed. -# The default value is: NO. - -REFERENCED_BY_RELATION = YES - -# If the REFERENCES_RELATION tag is set to YES then for each documented function -# all documented entities called/used by that function will be listed. -# The default value is: NO. - -REFERENCES_RELATION = YES - -# If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set -# to YES, then the hyperlinks from functions in REFERENCES_RELATION and -# REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will -# link to the documentation. -# The default value is: YES. - -REFERENCES_LINK_SOURCE = YES - -# If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the -# source code will show a tooltip with additional information such as prototype, -# brief description and links to the definition and documentation. Since this -# will make the HTML file larger and loading of large files a bit slower, you -# can opt to disable this feature. -# The default value is: YES. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -SOURCE_TOOLTIPS = YES - -# If the USE_HTAGS tag is set to YES then the references to source code will -# point to the HTML generated by the htags(1) tool instead of doxygen built-in -# source browser. The htags tool is part of GNU's global source tagging system -# (see http://www.gnu.org/software/global/global.html). You will need version -# 4.8.6 or higher. -# -# To use it do the following: -# - Install the latest version of global -# - Enable SOURCE_BROWSER and USE_HTAGS in the config file -# - Make sure the INPUT points to the root of the source tree -# - Run doxygen as normal -# -# Doxygen will invoke htags (and that will in turn invoke gtags), so these -# tools must be available from the command line (i.e. in the search path). -# -# The result: instead of the source browser generated by doxygen, the links to -# source code will now point to the output of htags. -# The default value is: NO. -# This tag requires that the tag SOURCE_BROWSER is set to YES. - -USE_HTAGS = NO - -# If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a -# verbatim copy of the header file for each class for which an include is -# specified. Set to NO to disable this. -# See also: Section \class. -# The default value is: YES. - -VERBATIM_HEADERS = YES - -#--------------------------------------------------------------------------- -# Configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- - -# If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all -# compounds will be generated. Enable this if the project contains a lot of -# classes, structs, unions or interfaces. -# The default value is: YES. - -ALPHABETICAL_INDEX = YES - -# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in -# which the alphabetical index list will be split. -# Minimum value: 1, maximum value: 20, default value: 5. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -COLS_IN_ALPHA_INDEX = 2 - -# In case all classes in a project start with a common prefix, all classes will -# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag -# can be used to specify a prefix (or a list of prefixes) that should be ignored -# while generating the index headers. -# This tag requires that the tag ALPHABETICAL_INDEX is set to YES. - -IGNORE_PREFIX = - -#--------------------------------------------------------------------------- -# Configuration options related to the HTML output -#--------------------------------------------------------------------------- - -# If the GENERATE_HTML tag is set to YES doxygen will generate HTML output -# The default value is: YES. - -GENERATE_HTML = YES - -# The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a -# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of -# it. -# The default directory is: html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_OUTPUT = html - -# The HTML_FILE_EXTENSION tag can be used to specify the file extension for each -# generated HTML page (for example: .htm, .php, .asp). -# The default value is: .html. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FILE_EXTENSION = .html - -# The HTML_HEADER tag can be used to specify a user-defined HTML header file for -# each generated HTML page. If the tag is left blank doxygen will generate a -# standard header. -# -# To get valid HTML the header file that includes any scripts and style sheets -# that doxygen needs, which is dependent on the configuration options used (e.g. -# the setting GENERATE_TREEVIEW). It is highly recommended to start with a -# default header using -# doxygen -w html new_header.html new_footer.html new_stylesheet.css -# YourConfigFile -# and then modify the file new_header.html. See also section "Doxygen usage" -# for information on how to generate the default header that doxygen normally -# uses. -# Note: The header is subject to change so you typically have to regenerate the -# default header when upgrading to a newer version of doxygen. For a description -# of the possible markers and block names see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_HEADER = - -# The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each -# generated HTML page. If the tag is left blank doxygen will generate a standard -# footer. See HTML_HEADER for more information on how to generate a default -# footer and what special commands can be used inside the footer. See also -# section "Doxygen usage" for information on how to generate the default footer -# that doxygen normally uses. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_FOOTER = - -# The HTML_STYLESHEET tag can be used to specify a user-defined cascading style -# sheet that is used by each HTML page. It can be used to fine-tune the look of -# the HTML output. If left blank doxygen will generate a default style sheet. -# See also section "Doxygen usage" for information on how to generate the style -# sheet that doxygen normally uses. -# Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as -# it is more robust and this tag (HTML_STYLESHEET) will in the future become -# obsolete. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_STYLESHEET = - -# The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined -# cascading style sheets that are included after the standard style sheets -# created by doxygen. Using this option one can overrule certain style aspects. -# This is preferred over using HTML_STYLESHEET since it does not replace the -# standard style sheet and is therefor more robust against future updates. -# Doxygen will copy the style sheet files to the output directory. -# Note: The order of the extra stylesheet files is of importance (e.g. the last -# stylesheet in the list overrules the setting of the previous ones in the -# list). For an example see the documentation. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_STYLESHEET = - -# The HTML_EXTRA_FILES tag can be used to specify one or more extra images or -# other source files which should be copied to the HTML output directory. Note -# that these files will be copied to the base HTML output directory. Use the -# $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these -# files. In the HTML_STYLESHEET file, use the file name only. Also note that the -# files will be copied as-is; there are no commands or markers available. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_EXTRA_FILES = - -# The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen -# will adjust the colors in the stylesheet and background images according to -# this color. Hue is specified as an angle on a colorwheel, see -# http://en.wikipedia.org/wiki/Hue for more information. For instance the value -# 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 -# purple, and 360 is red again. -# Minimum value: 0, maximum value: 359, default value: 220. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_HUE = 220 - -# The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors -# in the HTML output. For a value of 0 the output will use grayscales only. A -# value of 255 will produce the most vivid colors. -# Minimum value: 0, maximum value: 255, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_SAT = 100 - -# The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the -# luminance component of the colors in the HTML output. Values below 100 -# gradually make the output lighter, whereas values above 100 make the output -# darker. The value divided by 100 is the actual gamma applied, so 80 represents -# a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not -# change the gamma. -# Minimum value: 40, maximum value: 240, default value: 80. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_COLORSTYLE_GAMMA = 80 - -# If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML -# page will contain the date and time when the page was generated. Setting this -# to NO can help when comparing the output of multiple runs. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_TIMESTAMP = NO - -# If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML -# documentation will contain sections that can be hidden and shown after the -# page has loaded. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_DYNAMIC_SECTIONS = NO - -# With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries -# shown in the various tree structured indices initially; the user can expand -# and collapse entries dynamically later on. Doxygen will expand the tree to -# such a level that at most the specified number of entries are visible (unless -# a fully collapsed tree already exceeds this amount). So setting the number of -# entries 1 will produce a full collapsed tree by default. 0 is a special value -# representing an infinite number of entries and will result in a full expanded -# tree by default. -# Minimum value: 0, maximum value: 9999, default value: 100. -# This tag requires that the tag GENERATE_HTML is set to YES. - -HTML_INDEX_NUM_ENTRIES = 100 - -# If the GENERATE_DOCSET tag is set to YES, additional index files will be -# generated that can be used as input for Apple's Xcode 3 integrated development -# environment (see: http://developer.apple.com/tools/xcode/), introduced with -# OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a -# Makefile in the HTML output directory. Running make will produce the docset in -# that directory and running make install will install the docset in -# ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at -# startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html -# for more information. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_DOCSET = NO - -# This tag determines the name of the docset feed. A documentation feed provides -# an umbrella under which multiple documentation sets from a single provider -# (such as a company or product suite) can be grouped. -# The default value is: Doxygen generated docs. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_FEEDNAME = "Doxygen generated docs" - -# This tag specifies a string that should uniquely identify the documentation -# set bundle. This should be a reverse domain-name style string, e.g. -# com.mycompany.MyDocSet. Doxygen will append .docset to the name. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_BUNDLE_ID = org.doxygen.Project - -# The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify -# the documentation publisher. This should be a reverse domain-name style -# string, e.g. com.mycompany.MyDocSet.documentation. -# The default value is: org.doxygen.Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_ID = org.doxygen.Publisher - -# The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. -# The default value is: Publisher. -# This tag requires that the tag GENERATE_DOCSET is set to YES. - -DOCSET_PUBLISHER_NAME = Publisher - -# If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three -# additional HTML index files: index.hhp, index.hhc, and index.hhk. The -# index.hhp is a project file that can be read by Microsoft's HTML Help Workshop -# (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on -# Windows. -# -# The HTML Help Workshop contains a compiler that can convert all HTML output -# generated by doxygen into a single compiled HTML file (.chm). Compiled HTML -# files are now used as the Windows 98 help format, and will replace the old -# Windows help format (.hlp) on all Windows platforms in the future. Compressed -# HTML files also contain an index, a table of contents, and you can search for -# words in the documentation. The HTML workshop also contains a viewer for -# compressed HTML files. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_HTMLHELP = NO - -# The CHM_FILE tag can be used to specify the file name of the resulting .chm -# file. You can add a path in front of the file if the result should not be -# written to the html output directory. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_FILE = - -# The HHC_LOCATION tag can be used to specify the location (absolute path -# including file name) of the HTML help compiler ( hhc.exe). If non-empty -# doxygen will try to run the HTML help compiler on the generated index.hhp. -# The file has to be specified with full path. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -HHC_LOCATION = - -# The GENERATE_CHI flag controls if a separate .chi index file is generated ( -# YES) or that it should be included in the master .chm file ( NO). -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -GENERATE_CHI = NO - -# The CHM_INDEX_ENCODING is used to encode HtmlHelp index ( hhk), content ( hhc) -# and project file content. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -CHM_INDEX_ENCODING = - -# The BINARY_TOC flag controls whether a binary table of contents is generated ( -# YES) or a normal table of contents ( NO) in the .chm file. Furthermore it -# enables the Previous and Next buttons. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -BINARY_TOC = NO - -# The TOC_EXPAND flag can be set to YES to add extra items for group members to -# the table of contents of the HTML help documentation and to the tree view. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTMLHELP is set to YES. - -TOC_EXPAND = NO - -# If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and -# QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that -# can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help -# (.qch) of the generated HTML documentation. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_QHP = NO - -# If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify -# the file name of the resulting .qch file. The path specified is relative to -# the HTML output folder. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QCH_FILE = - -# The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help -# Project output. For more information please see Qt Help Project / Namespace -# (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_NAMESPACE = - -# The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt -# Help Project output. For more information please see Qt Help Project / Virtual -# Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- -# folders). -# The default value is: doc. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_VIRTUAL_FOLDER = doc - -# If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom -# filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_NAME = - -# The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the -# custom filter to add. For more information please see Qt Help Project / Custom -# Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- -# filters). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_CUST_FILTER_ATTRS = - -# The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this -# project's filter section matches. Qt Help Project / Filter Attributes (see: -# http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHP_SECT_FILTER_ATTRS = - -# The QHG_LOCATION tag can be used to specify the location of Qt's -# qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the -# generated .qhp file. -# This tag requires that the tag GENERATE_QHP is set to YES. - -QHG_LOCATION = - -# If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be -# generated, together with the HTML files, they form an Eclipse help plugin. To -# install this plugin and make it available under the help contents menu in -# Eclipse, the contents of the directory containing the HTML and XML files needs -# to be copied into the plugins directory of eclipse. The name of the directory -# within the plugins directory should be the same as the ECLIPSE_DOC_ID value. -# After copying Eclipse needs to be restarted before the help appears. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_ECLIPSEHELP = NO - -# A unique identifier for the Eclipse help plugin. When installing the plugin -# the directory name containing the HTML and XML files should also have this -# name. Each documentation set should have its own identifier. -# The default value is: org.doxygen.Project. -# This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. - -ECLIPSE_DOC_ID = org.doxygen.Project - -# If you want full control over the layout of the generated HTML pages it might -# be necessary to disable the index and replace it with your own. The -# DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top -# of each HTML page. A value of NO enables the index and the value YES disables -# it. Since the tabs in the index contain the same information as the navigation -# tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -DISABLE_INDEX = NO - -# The GENERATE_TREEVIEW tag is used to specify whether a tree-like index -# structure should be generated to display hierarchical information. If the tag -# value is set to YES, a side panel will be generated containing a tree-like -# index structure (just like the one that is generated for HTML Help). For this -# to work a browser that supports JavaScript, DHTML, CSS and frames is required -# (i.e. any modern browser). Windows users are probably better off using the -# HTML help feature. Via custom stylesheets (see HTML_EXTRA_STYLESHEET) one can -# further fine-tune the look of the index. As an example, the default style -# sheet generated by doxygen has an example that shows how to put an image at -# the root of the tree instead of the PROJECT_NAME. Since the tree basically has -# the same information as the tab index, you could consider setting -# DISABLE_INDEX to YES when enabling this option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -GENERATE_TREEVIEW = NO - -# The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that -# doxygen will group on one line in the generated HTML documentation. -# -# Note that a value of 0 will completely suppress the enum values from appearing -# in the overview section. -# Minimum value: 0, maximum value: 20, default value: 4. -# This tag requires that the tag GENERATE_HTML is set to YES. - -ENUM_VALUES_PER_LINE = 4 - -# If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used -# to set the initial width (in pixels) of the frame in which the tree is shown. -# Minimum value: 0, maximum value: 1500, default value: 250. -# This tag requires that the tag GENERATE_HTML is set to YES. - -TREEVIEW_WIDTH = 250 - -# When the EXT_LINKS_IN_WINDOW option is set to YES doxygen will open links to -# external symbols imported via tag files in a separate window. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -EXT_LINKS_IN_WINDOW = NO - -# Use this tag to change the font size of LaTeX formulas included as images in -# the HTML documentation. When you change the font size after a successful -# doxygen run you need to manually remove any form_*.png images from the HTML -# output directory to force them to be regenerated. -# Minimum value: 8, maximum value: 50, default value: 10. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_FONTSIZE = 10 - -# Use the FORMULA_TRANPARENT tag to determine whether or not the images -# generated for formulas are transparent PNGs. Transparent PNGs are not -# supported properly for IE 6.0, but are supported on all modern browsers. -# -# Note that when changing this option you need to delete any form_*.png files in -# the HTML output directory before the changes have effect. -# The default value is: YES. -# This tag requires that the tag GENERATE_HTML is set to YES. - -FORMULA_TRANSPARENT = YES - -# Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see -# http://www.mathjax.org) which uses client side Javascript for the rendering -# instead of using prerendered bitmaps. Use this if you do not have LaTeX -# installed or if you want to formulas look prettier in the HTML output. When -# enabled you may also need to install MathJax separately and configure the path -# to it using the MATHJAX_RELPATH option. -# The default value is: NO. -# This tag requires that the tag GENERATE_HTML is set to YES. - -USE_MATHJAX = NO - -# When MathJax is enabled you can set the default output format to be used for -# the MathJax output. See the MathJax site (see: -# http://docs.mathjax.org/en/latest/output.html) for more details. -# Possible values are: HTML-CSS (which is slower, but has the best -# compatibility), NativeMML (i.e. MathML) and SVG. -# The default value is: HTML-CSS. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_FORMAT = HTML-CSS - -# When MathJax is enabled you need to specify the location relative to the HTML -# output directory using the MATHJAX_RELPATH option. The destination directory -# should contain the MathJax.js script. For instance, if the mathjax directory -# is located at the same level as the HTML output directory, then -# MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax -# Content Delivery Network so you can quickly see the result without installing -# MathJax. However, it is strongly recommended to install a local copy of -# MathJax from http://www.mathjax.org before deployment. -# The default value is: http://cdn.mathjax.org/mathjax/latest. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest - -# The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax -# extension names that should be enabled during MathJax rendering. For example -# MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_EXTENSIONS = - -# The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces -# of code that will be used on startup of the MathJax code. See the MathJax site -# (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an -# example see the documentation. -# This tag requires that the tag USE_MATHJAX is set to YES. - -MATHJAX_CODEFILE = - -# When the SEARCHENGINE tag is enabled doxygen will generate a search box for -# the HTML output. The underlying search engine uses javascript and DHTML and -# should work on any modern browser. Note that when using HTML help -# (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) -# there is already a search function so this one should typically be disabled. -# For large projects the javascript based search engine can be slow, then -# enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to -# search using the keyboard; to jump to the search box use + S -# (what the is depends on the OS and browser, but it is typically -# , /