profile
viewpoint
遗忘

TheVice/Advanced2D 0

Fork created while study of source code from "Advanced 2D Game Development by J.S. Harbour" http://jharbour.com/wordpress/portfolio/advanced-2d-game-development/ Copyright (c) 2008. Addition information can be found at http://jharbour.com/forum/index.php?board=12.0

TheVice/android-cmake 0

CMake toolchain file and other scripts for the Android NDK

TheVice/Ant4C 0

Tool that interprets scenarios. Similar to Apache Ant and NAnt. Written in C.

TheVice/BLAKE3 0

The BLAKE3 cryptographic hash function

TheVice/cake 0

Cake (C# Make) is a cross platform build automation system.

TheVice/elements 0

Experiments with particles and effects

TheVice/game-programming-patterns 0

Source repo for the book

TheVice/glew 0

The OpenGL Extension Wrangler Library

TheVice/inih 0

Simple .INI file parser in C, good for embedded systems

push eventTheVice/Ant4C

TheVice

commit sha e5a898fc3616da04592efa86ad497ed7e0a7db40

[listener] added new unit. [file_system] added 'fail on error' argument to the 'directory_enumerate_file_system_entries' function: 'foreach' task can process folder with entries with denied access - if 'failonerror' set to 'false' entry that can not be process will be skip with out error.

view details

push time in 3 days

push eventTheVice/Ant4C

TheVice

commit sha 66e930be664003304eb8eda24c7784f99d6ec1de

[echo] removed NoLevel and Fail from the level enumeration. Added 'echo_set_level' function. From this commit echo do not add name of level at the begin of message when output to the console. Messages with levels debug and verbose do not display by default. For file mode of echo level, even incorrect, will be ignored. Debug and Verbose levels of echo can be set after quiet mode was set.

view details

push time in 3 days

push eventTheVice/Ant4C

TheVice

commit sha 9c396af1ff013eccf4157b2bb66c8cc3063821ad

[hash] added 'blake3' and 'keccak' algorithms to the get-checksum function. Added argument to 'get-checksum' function - supported values depend of algorithm that was used. [blake2b] replaced 'hash_algorithm_blake2b_160', 'hash_algorithm_blake2b_256', 'hash_algorithm_blake2b_384' and 'hash_algorithm_blake2b_512' functions with 'hash_algorithm'. Function 'BLAKE2b' now used 'BLAKE2b_init', 'BLAKE2b_core' and 'BLAKE2b_final'. [blake3] replaced 'hash_algorithm_blake3_256' function with 'hash_algorithm_blake3'. [sha3] replaced 'hash_algorithm_keccak_224', 'hash_algorithm_keccak_256', 'hash_algorithm_keccak_384' and 'hash_algorithm_keccak_512' function with 'hash_algorithm_keccak'. Replaced 'hash_algorithm_sha3_224', 'hash_algorithm_sha3_256', 'hash_algorithm_sha3_384' and 'hash_algorithm_sha3_512' functions with 'hash_algorithm_sha3'.

view details

push time in 7 days

push eventTheVice/Ant4C

TheVice

commit sha 9c396af1ff013eccf4157b2bb66c8cc3063821ad

[hash] added 'blake3' and 'keccak' algorithms to the get-checksum function. Added argument to 'get-checksum' function - supported values depend of algorithm that was used. [blake2b] replaced 'hash_algorithm_blake2b_160', 'hash_algorithm_blake2b_256', 'hash_algorithm_blake2b_384' and 'hash_algorithm_blake2b_512' functions with 'hash_algorithm'. Function 'BLAKE2b' now used 'BLAKE2b_init', 'BLAKE2b_core' and 'BLAKE2b_final'. [blake3] replaced 'hash_algorithm_blake3_256' function with 'hash_algorithm_blake3'. [sha3] replaced 'hash_algorithm_keccak_224', 'hash_algorithm_keccak_256', 'hash_algorithm_keccak_384' and 'hash_algorithm_keccak_512' function with 'hash_algorithm_keccak'. Replaced 'hash_algorithm_sha3_224', 'hash_algorithm_sha3_256', 'hash_algorithm_sha3_384' and 'hash_algorithm_sha3_512' functions with 'hash_algorithm_sha3'.

view details

TheVice

commit sha 407a271d560e638c6ed34e5bfd229ca6f49278ed

Merge branch 'hash' into develop

view details

push time in 7 days

push eventTheVice/Ant4C

TheVice

commit sha f2108ab1fb02fd8aaa58e662820e5bb979733103

[CMakeLists] added header files for the 'for_each' and 'try_catch' units. Target 'ant4c_app' have binary file named 'ant4c'. [argument_parser] resolved recognition of target with one letter in the name. [common] added 'common_get_arguments' function. Added 'find_any_symbol_like_or_not_like_that_UTF32LE' function, removed 'common_unbox_bool_data' and 'common_unbox_int64_data' functions. [path] all functions allow to use empty and null arguments. Function 'path_combine' add delimiter only if second argument not empty. [target] condition of targets will processing after dependencies. Added detection of stack overflow at the task evaluation process. Added 'target_set_name' function: if run wild target - name of last one will be used from the input. [string_unit] added third parameter to the 'string_enumerate' function. Increased list of trim symbols. Replaced calls of 'common_get_one_argument', 'common_get_two_arguments' and 'common_get_three_arguments' functions with call of 'common_get_arguments' function. [tests_project] test project_load_from_content added buildfile path to the project - full path to the source file. Added checks of target run.

view details

push time in 14 days

push eventTheVice/Ant4C

TheVice

commit sha 53814503e4a32181b0232893cec29c43c9e85e37

[README.md] added link to the help file.

view details

push time in a month

push eventTheVice/Ant4C

TheVice

commit sha df56b12f48b73a3d1037bd31d8177cf0cfb0c39f

[help] added adoc source of the help file. To generate html help - type 'asciidoc help.adoc'

view details

push time in a month

delete branch TheVice/Ant4C

delete branch : v2020.04_2

delete time in a month

delete branch TheVice/Ant4C

delete branch : v2019.10.21_2

delete time in a month

push eventTheVice/Ant4C

TheVice

commit sha 4a3b952100a89328ba185c3b1e177486424b05c9

[v2019.10.21_2] replaced application in tar.bz2 archive with FreeBSD package.

view details

TheVice

commit sha 9b4abe19f5aa42c08a434ac48d2f4e5bece98320

Create MD5SUMS

view details

TheVice

commit sha 404855581178b8fc96a991734f1d77ecce32b2d9

Create SHA3-224SUMS

view details

TheVice

commit sha 9209700f76a05689adc0ed3ab2735c805b725c9c

[v2019.10.21_2] added link to the FreeBSD package. Added links to the files with checksums of binaries from release page of current version.

view details

TheVice

commit sha 0530fb56f0675ed36033685703e9b068e5283a44

[v2019.10.21_2] added link to the OpenBSD package.

view details

TheVice

commit sha bbe7d417ed745ee1419ad4fd8f0b5a2f538d5937

[v2019.10.21_2] added links to the other packages for other versions of OpenBSD.

view details

TheVice

commit sha 3d18f54beec4b7304ed72b636051309dc093fb0f

Merge v2020.04_1 into v2020.04_2

view details

TheVice

commit sha 2ba70ad0aa1ad2e3416dc8c54fcd5fc90a032d16

Merge branch 'v2020.04_2' into v2020.05_2

view details

TheVice

commit sha 67fc40c8b970a21328d2b2e3710e660691a4d965

Merge branch 'v2020.05_2'

view details

push time in a month

create barnchTheVice/Ant4C

branch : v2020.04_2

created branch time in a month

push eventTheVice/Ant4C

TheVice

commit sha bbe7d417ed745ee1419ad4fd8f0b5a2f538d5937

[v2019.10.21_2] added links to the other packages for other versions of OpenBSD.

view details

push time in a month

push eventTheVice/Ant4C

TheVice

commit sha 0530fb56f0675ed36033685703e9b068e5283a44

[v2019.10.21_2] added link to the OpenBSD package.

view details

push time in a month

push eventTheVice/Ant4C

TheVice

commit sha 9209700f76a05689adc0ed3ab2735c805b725c9c

[v2019.10.21_2] added link to the FreeBSD package. Added links to the files with checksums of binaries from release page of current version.

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 404855581178b8fc96a991734f1d77ecce32b2d9

Create SHA3-224SUMS

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 9b4abe19f5aa42c08a434ac48d2f4e5bece98320

Create MD5SUMS

view details

push time in 2 months

create barnchTheVice/Ant4C

branch : v2019.10.21_2

created branch time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha fce3f2e06a37b4c81caffbe59346fadc09c62af2

Update README.md

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha e5024e2e182ac50bef677898bd14cd1138001d95

Update README.md

view details

push time in 2 months

delete branch TheVice/Ant4C

delete branch : v2020.04_1

delete time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 2f31e088b02280d3cf51cdfc8c88d12fa6fd310c

[v2019.10.21_1] added check sums (MD5 and SHA3-224) of Debian packages files. Added CHANGELOG file. [CMakeLists] for GCC compiler added instruction to build executable with PIE flag. Added possible to use external defined CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS flags.

view details

TheVice

commit sha 6927e8d0077fbb789a9800b17b309f2a09a671e9

[README.md] reorganized download section.

view details

TheVice

commit sha 1d4160b104a3ab4c2520f7599500f2d7189cee01

[README] added hash sums of rest of v2019.10.21 binaries.

view details

TheVice

commit sha 395ebd672b5470f94fa4ae5fb82a879515664bf6

Merge branch 'v2019.10.21_1' into 'v2020.04_1'.

view details

TheVice

commit sha 0531b0a05527da09d2e2f1510f5aad7bb2268f9f

Update README.md

view details

TheVice

commit sha ea4c154c2c7d0c2960609018ca0ec01c21f29897

Merge branch 'v2020.04_1' into master.

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 0531b0a05527da09d2e2f1510f5aad7bb2268f9f

Update README.md

view details

push time in 2 months

delete branch TheVice/Ant4C

delete branch : v2019.10.21_1

delete time in 2 months

create barnchTheVice/Ant4C

branch : v2020.04_1

created branch time in 2 months

created tagTheVice/Ant4C

tagv2020.05

Tool that interprets scenarios. Similar to Apache Ant and NAnt. Written in C.

created time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 4cc005f99954fa3d615edaa5bf8574d6fe8244fc

[CHANGELOG] added information about upcoming version. [tests.xml] added test cases for project_load_from_build_file.

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha a554a951caa458884f8b4453ac7a91c2fd1f55b5

[echo] fixed issue at printing non ASCII chars at Win32 terminal. Replaced '_setmode' function with print to C stream with platform specific function WriteConsoleW. [echo|MinGW] Running tests from IDE with project configured for MinGW may failed after this changes. Run from Windows terminal in this case will be fine. [file_system] added file_read_lines function. [for_each] fixed issue with enumerating non ASCII chars at the for_each_substring function. [property] changed behavior of set value to the read only property - in this case evaluation of script will continue and value left unchanged. Exception for for_each task - loop property can not be read only, evaluation will be end if used read only property in this case. [target] fixed issue while enumerating names of target dependence - if space or tab symbol used between names it used while finding target name, now names from dependence trim before finding the target at the project by name. [tests_project] removed program_exec_function tests. Test on project_load_from_build_file function now work with external storage of build files.

view details

TheVice

commit sha 4cc005f99954fa3d615edaa5bf8574d6fe8244fc

[CHANGELOG] added information about upcoming version. [tests.xml] added test cases for project_load_from_build_file.

view details

TheVice

commit sha 2f55fe293c83f297b41da3bd9481463352c16943

[master] release version 2020.05.

view details

TheVice

commit sha 6afbe2e537efd3468f871c70b9d6634801076642

[CHANGELOG] actualized template data of 2020.05 version.

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha a554a951caa458884f8b4453ac7a91c2fd1f55b5

[echo] fixed issue at printing non ASCII chars at Win32 terminal. Replaced '_setmode' function with print to C stream with platform specific function WriteConsoleW. [echo|MinGW] Running tests from IDE with project configured for MinGW may failed after this changes. Run from Windows terminal in this case will be fine. [file_system] added file_read_lines function. [for_each] fixed issue with enumerating non ASCII chars at the for_each_substring function. [property] changed behavior of set value to the read only property - in this case evaluation of script will continue and value left unchanged. Exception for for_each task - loop property can not be read only, evaluation will be end if used read only property in this case. [target] fixed issue while enumerating names of target dependence - if space or tab symbol used between names it used while finding target name, now names from dependence trim before finding the target at the project by name. [tests_project] removed program_exec_function tests. Test on project_load_from_build_file function now work with external storage of build files.

view details

push time in 2 months

push eventTheVice/Ant4C

TheVice

commit sha 6927e8d0077fbb789a9800b17b309f2a09a671e9

[README.md] reorganized download section.

view details

push time in 2 months

create barnchTheVice/Ant4C

branch : v2019.10.21_1

created branch time in 2 months

created tagTheVice/Ant4C

tagv2020.04

Tool that interprets scenarios. Similar to Apache Ant and NAnt. Written in C.

created time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha 143f68b34537ff5d741a36fb7e98db33364da2b0

[Ant4C] updated README.md with instruction about developing process. Added tests.

view details

TheVice

commit sha b4c4c7e459e860d04f427a4aff1f1a0206742b94

[Ant4C] corrected information: fixed name of space and strike the functions that not support from string name space.

view details

TheVice

commit sha cd3a5c7371aa5972f33f5699b624fc0b889eed2d

[Ant4C] added text_encoding unit with tests on it. [CMakeLists] added SOURCES_OF_EXEC_APP property. Moved tests_exec_app target inside test required condition. [Tests] added to test infrastructure function buffer_to_u16string with return type std::wstring but internally it make sure that data collected by values of uint16_t type. Function make sure that no different on that system it run - with wchar_t size 4 (POSIX) or 2 (Windows). Not used std::u16string as return type in order to compile on widen count of C++ compilers (N.B. tests written on C++).

view details

TheVice

commit sha f3f8aee83ac943a9764b3b762a5dc5d823a46002

[Ant4C] added test cases for rest of supported code page. Disabled source of argument_parser and exec units. Replaced char with uint8_t at proper place across the project, the root of changes is range that first changed type of it structure members. At commented part proposed function common_string_to_enum_ that also took array with lengths of reference strings. Added function common_count_bytes_until that can be used as functional analog of strlen function for uint8_t* arrays. Changed signature of bool_parse function: second parameter is length now. Move some double string in static const variables. At current moment that approach apply to per unit. Several units can have same constants. Disabled function path_to_pathW. Increased maximum length of property and target names up to 256 bytes. For ASCII names it equal to 256 chars. So length should not check maximum length according to type checks for this moment. Only if length is zero now checks - direct for property and via range size for target name. Disabled some of test cases for interpreter_evaluate_code function, that currently failed on Windows platform. Tests that also fail will commented for Windows. Disabled tests_argument_parser and tests_exec units. Added macros DOUBLE_PARSE and INT_PARSE to test infrastructure. It allowed to use outside of unit tests_conversion where test on double_parse and int_parse functions located.

view details

TheVice

commit sha 666d527da2fefc23aaebf3d6e28e2545375ae32b

[Ant4C] added COUNT_OF macros. Expected that calculation of array size will be provided by this macros. Replaced some of casting to ‘const uint8_t*’ with definition of uint8_t[] arrays. Changed signature of project_get_default_target and project_get_name functions by adding target argument. PROGRAM_VERSION_LENGTH now not required to set according to using of macros COUNT_OF to PROGRAM_VERSION definition. Renamed property_value_is_char_array into property_value_is_byte_array. Moved from echo unit parts that determine encoding from passed argument to the text_encoding unit. Added buffer_assing_to_uint16 function that assign uint8_t array to internal uint16_t array. Added support to echo on Unicode console at Windows.

view details

TheVice

commit sha 954e9992e3113fa7025b6dc92fe4c9643f48278b

[Ant4C] added macros MEM_CPY. Re-factored test for text_encoding_encode_UTF8 function: removed unnecessary casting, removed limitation of checking by modification expected result for some input range. Added text_encoding_encode_UTF16LE and text_encoding_decode_UTF16LE functions, as reference used code from article https://ru.wikipedia.org/wiki/UTF-16 Added macros UTF8_TO_UTF16LE and UTF16LE_TO_UTF8.

view details

TheVice

commit sha 93a6d73b7898e175aee00680411846c6672ae2a7

[Ant4C] re-factored argument parser unit. Added using of text_encoding unit here, replaced macros with function. Function argument_parser_wchar_t convert input and call char version. Other wchar_t function required to be whole in one type. Added to use COUNT_OF macros to echo, environment, exec, operating_system, text_encoding and version units. Fixed compile error at project unit for Alpine Linux. Path to log file now can be redefined later at command line parameters. Added tests on argument_parser_get_verbose, argument_parser_get_build_file and argument_parser_get_log_file functions. All tests from tests_argument_parser are enabled now. Few cases for argument_parser_get_log_file test are commented in order to non complete functional of test at part of expected return. Test argument_parser_at_all can be passed even with empty input. Replaced macros UTF8_TO_UTF16LE and UTF16LE_TO_UTF8 with functions. Function text_encoding_UTF16LE_to_UTF8, at current moment, will be available for Windows platform. Increased buffer at text_encoding_UTF16LE_to_UTF8 function from sizeof(uint32_t) * N to 2 * sizeof(uint32_t) * N comparing to early macros definition. Where N count of uint16_t elements.

view details

TheVice

commit sha f98f56395562d871a169bdb91f5888b7bb84d35a

[Ant4C] removed PROGRAM_VERSION_LENGTH from the CMakeLists.txt file. Added PUGIXML_HEADER_ONLY to CMakeLists.txt file, but only at part that use result of 'find_package' function call with 'pugixml' argument. Removed from tests_base_xml definition of PUGIXML_HEADER_ONLY. If error at compile stage happen at new developing environment, connected to the 'pugixml.hpp' file, '-DPUGIXML_HEADER_ONLY=1' putted to the 'cmake' at configuration stage should help. Can be apply to variant when find_package used. If used '-DPUGIXML_PATH' then '-DPUGIXML_HEADER_ONLY' will be ignored. Added index argument to interpreter_get_arguments_from_xml_tag_record function. Renamed interpreter_xml_tag_should_be_skip_by_if_or_unless function into interpreter_is_xml_tag_should_be_skip_by_if_or_unless. Added unit to the name of enumeration elements and task to another enumeration elements. Added target task that will be interpreted. Variable task_attributes_count also used as returned variable. Function interpreter_is_xml_tag_should_be_skip_by_if_or_unless now used interpreter_get_arguments_from_xml_tag_record instead apply own approach for same reason. Fill property task case at interpreter_evaluate_task function. Added interpreter_evaluate_tasks function that previously was know as project_load_properties_and_targets function. Removed target argument from project_property_set_value and project_set_buildfile_path functions. Removed description_str, property_str and target_str variables according to moved functional that required it to the interpreter unit and where they exist in string array. Added property_get_attributes_and_arguments_for_task and property_evaluate_task functions. Commented property_set_from_xml_tag_record function. Added missed include to the tests_conversion unit that is critical for some environments, for example building at Alpine Linux. At project_load_from_content commented checking of targets according to stated re-factoring process and missed new functional that get information about targets. Commented property_set_from_xml_tag_record test, added test on property_get_attributes_and_arguments_for_task function.

view details

TheVice

commit sha 574ed4f4f707bd3756cd63b2cf92ba64de0790c2

[Ant4C] removed target parameter from several of functions at property unit. Disabled call of directory_get_current_directory function. Added missed calls of buffer_release at interpreter_get_value_for_argument function. Calls of project functions from interpreter_evaluate_function is disabled right now. Disabled path_get_full_path_ function. Added property_actualize_value function - design to actualize value of dynamic properties. Function property_exists replaced property_get_pointer. Removed target parameter from project_exec_function. Function property_append renamed into property_add_at_project. Removed code of property_set_from_xml_tag_record function. Test on property_set_from_xml_tag_record renamed into property_task that based on recently added code but with previously exists test data. Disabled test case at interpreter_evaluate_code test where call get-full-path function. Function project_free moved from test_project unit to the tests_base_xml unit. Added property_load_from_node function that contain code early present in function properties_load_from_node. New one function is used by properties_load_from_node. Test path_exec_function_get_full_path from tests_path unit is disabled right now. Several tests from tests_project unit is commented right now.

view details

TheVice

commit sha 53baeb0be562ce324dc1bbfbf94a3729b51c0110

[Ant4C] fixed issue with _setmode call at echo unit. Used addition variable. Project unit is reachable from interpreter unit. All project function return pointers to properties so required to be actualized in case properties is dynamic. Name and default target is always dynamic properties. Current directory is dynamic if set from xml file, otherwise it static like and build file from which it calculated in that case. Using of project_get_buildfile_uri is unable right now. Added project task. Added missed check of input parameter 'the_property' at property_exec_function. Added property_to_string at test infrastructure. Enabled project tests. Test on project_property_set_value function required new code.

view details

TheVice

commit sha 17bb43e0e6cccd23febb027565a52c0acdcb3f88

[Ant4C] for MinGW building added addition comparing of stream mode. Make sure that _setmode not equal to -1, so in general echo task finish correct. Renamed function project_property_get_pointer into project_property_exists. Completed path_to_pathW function based on text_encoding_UTF8_to_UTF16LE comparing to previous version base on macros MULTI2WIDE with call of system function MultiByteToWideChar. Completed path_get_temp_path function, for Windows, based on text_encoding_UTF16LE_to_UTF8 comparing to previous version base on macros WIDE2MULTI with call of system function WideCharToMultiByte. Completed project_get_buildfile_uri function, it make sure that not generated '////' after scheme name and ':'. Fixed issue with output at echo file path at test project_load_from_build_file by not set zero symbol to the build file property of project by project_property_set_value function. Added to the case of project_load_from_build_file test calls from program unit and defined target with echo task call. Enabled test project_load_from_build_file for Windows platform. Replaced magic numbers at program_exec_function test with function calls.

view details

TheVice

commit sha 4fb11501fc62b9a1907d3a77014967b2c57197b2

[Ant4C] removed functions long_parse_wchar_t and int64_parse_wchar_t. Renamed functions (directory|file)_exists_by_wchar_path into (directory|file)_exists_wchar_t. Enabled directory_get_current_directory function with changed signature. All units at interpreter_evaluate_function function now break at switch and no one return from function. For get-full-path function from path unit added pre unit interpretation. Moved path and property functions enumeration from source files to header files. Removed path_get_full_path_ function. Enabled path_exec_function_get_full_path test. Rewritten path_exec_function_get_full_path test to use interpreter_evaluate_function function according to not processed by path_exec_function of get-full-path function. Enabled path_get_temp_file_name and path_get_temp_path tests for Windows platform. Detected issue at VS2013 - echo will failed according to line 186 of file 'Microsoft Visual Studio 12.0\VC\crt\src\_flsbuf.c' where 'charcount = sizeof(TCHAR)' and TCHAR always equal to char, so no CMake set to target of UNICODE and _UNICODE will not help. Direct use of console API probably will required in this case. Echo task direct will fail at assert at file 'Microsoft Visual Studio 12.0\VC\crt\src\write.c' on line 116 with code '_VALIDATE_CLEAR_OSSERR_RETURN(((cnt & 1) == 0), EINVAL, -1)'.

view details

TheVice

commit sha c75aa5f1c8c56ea0c0bd0478cfca8f0d9873b9fa

[Ant4C] added u8string_to_u16string function to test infrastructure. Replaced std::wstring.assing(std::string.cbegin(), std::string.cend()) with u8string_to_u16string call at test on argument_parser_at_all function. Enabled tests on environment_get_operating_system, operating_system_at_all, directory_exists and file_exists functions.

view details

TheVice

commit sha 8db7502fd4ee8e0837de33d08e30cf5822dea833

[Ant4C] added addition encodings at text_encoding_get_BOM test. Removed commented code from test on text_encoding_encode_UTF16LE function. Added test on text_encoding_UTF8_to_UTF16LE function. On Windows platform also call of text_encoding_UTF16LE_to_UTF8 function happen in this test. Added text_encoding_encode_UTF8_single, text_encoding_decode_UTF8_single, text_encoding_encode_UTF16LE_single and text_encoding_decode_UTF16LE_single functions. At text_encoding_UTF8_to_UTF16LE function used text_encoding_decode_UTF8_single and text_encoding_encode_UTF16LE_single functions instead text_encoding_decode_UTF8 and text_encoding_encode_UTF16LE. At text_encoding_UTF16LE_to_UTF8 function used text_encoding_decode_UTF16LE_single and text_encoding_encode_UTF8_single functions instead text_encoding_decode_UTF16LE and text_encoding_encode_UTF8.

view details

TheVice

commit sha cd4a41c75e6046dc323adb29f04586f53112b6a7

[Ant4C] removed resizing of argumentA buffer at argument_parser unit. Other parameters at text_encoding_UTF16LE_to_UTF8 function not points to same buffer. In this case it is safe that function apply resize to the buffer. Changed signature of environment_get_variable and environment_variable_exists functions - replaced length parameters with variable name finish. Replaced macros WIDE2MULTI with text_encoding_UTF16LE_to_UTF8 function. Also in some places, special that required by TODO, replaced direct casting from char to wchar_t with text_encoding_UTF8_to_UTF16LE function. Early in this places MULTI2WIDE should be applied. Replaced GetLogicalDriveStringsW with GetLogicalDrives at directory_get_logical_drives function. Added test for this function. Resolved memory leak at project_evaluate_task function and test named property_task from tests_property unit. Removed test on environment_at_all function. Added environment_get_machine_name and environment_get_user_name tests. Added tests on path_get_directory_for_current_process and cygpath_get_dos_path functions.

view details

TheVice

commit sha d0bbd4ca174c4926e892f6c754fd309f708cee93

[Ant4C] added echo_get_attributes_and_arguments_for_task function. Echo unit now used similar to project and property approach of task evaluating. Added test on echo_get_attributes_and_arguments_for_task function, locate at current moment at tests_project unit. Moved property_actualize_value into interpreter unit with name interpreter_actualize_property_value and made it internal. Removed test on property_set_value function. Test property_task should be used in this scenario. Added test on path_get_directory_for_current_image function. Replaced while(1) loop with buffer_append in condition.

view details

TheVice

commit sha 4bea1d61f98d53367b5f891ad9ed703ff6ca9190

[Ant4C] renamed replace_double_char_by_single function. New name is common_replace_double_byte_by_single with added return type 'uint8_t'. Added function exec_get_program_full_path and exec_append_command_line. Replaced MultiByteToWideChar with text_encoding_UTF8_to_UTF16LE at exec function at Windows side. Added file_system_append_pre_root and file_system_get_position_after_pre_root functions. Removed checking on zero of first symbols of paths at file_system unit. Allow, will not return 0, to call path_combine function with empty paths. Also function normalize paths for operating system by calling cygpath_get_windows_path or cygpath_get_unix_path functions. Same name test got addition test cases to checks new possibilities. Function string_replace allow to be call with empty string and return in this case 1. Uncommented test cases for argument_parser_get_log_file test by adding return tag to the all test cases. Uncommented test cases for interpreter_evaluate_code test. Added TODO mark to one of previously commented test case of path_get_full_path test.

view details

TheVice

commit sha 359884ca15c20b28d560620ca5d72c68dd856b94

[Ant4C] fixed issue at exec function for Windows. For environment with several variables count equal to 3 was used that actually incorrect in this case. Now used case when count more than 1 where checking before set exists. Moved all test cases of exec_at_all test into exec_with_redirect_to_tmp_file. TestExec got global parameter - allow_output_to_console. If it off, value interprets as false, test exec_with_redirect_to_tmp_file run as in previous implementation. If it on, value interprets as true, exec_with_redirect_to_tmp_file run as two previous implementations - exec_at_all and exec_with_redirect_to_tmp_file. At TestExec section moved comments from <!-- ... --> into tags <comment>. Fixed issue at argument_get_keys_and_values function on current test data. Added two versions of compare_paths_with_delimiter_independ function. For Windows platform added put the zero to buffer after all keys and values at tests_exec unit in argument_get_keys_and_values function. Added checking of environment variables at exec_with_redirect_to_tmp_file test, added TODO about working directory.

view details

TheVice

commit sha 9cc6ac0c0b857975f0c32387fbbb0ecc8db2555d

[Ant4C] allow to set PUGIXML_HEADER_ONLY for all CMake script use. Fixed typos in messages at CMakeLists.txt. Removed project argument from echo_evaluate_task as not necessary in this function. Added exec_get_attributes_and_arguments_for_task function with test. Changed signature of exec_evaluate_task function. Detected issues at Posix side for paths with spaces - quoting in this case generate an error, so removed such command. Added verbose parameter to the interpreter_evaluate_task function. Removed project_str and PROJECT_STR_LENGTH from project unit. Replaced project_is_in_element with xml_get_tag_name that allow to be as root element not only project tag. Added verbose to the project_evaluate_task function. Added test on exec_evaluate_task function via interpreter_evaluate_task call.

view details

TheVice

commit sha edeec2b4b8d1c5e6292a83e5f4bbcab53e46b645

[Ant4C] changed signature of xml_get_attribute_value and xml_get_element_value. Removed xml_is_attribute_exists function, xml_get_attribute_value should be used with NULL parameter at value to check exists of attribute. Function xml_get_element_value_from_parts removed and xml_get_element_value got it first two parameters. Disabled test on xml_get_element_value function.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha d32fbab1181c16e479cba1cf71386974330e7ea9

[file_system] moved copy/move tasks to own unit file. Fixed issue at 'directory_enumerate_file_system_entries_wchar_t' function: if output encoding requested non UTF8, finish pointer do not refreshed to up-to-date data and fail return may provided in same case where with UTF8 output encoding function return success. [interpreter] at 'interpreter_get_value_for_argument' function make sure that returned empty string is really means empty and code that provided such do not requested to be added as function return value. In this case for some of test cases from the tests.xml requested addition changes. At the string::empty function actually script code used as input, that actually mean - empty value. For some reason get-host-name may not set at some environments so that test case also upgraded. [copy_move] changed signature of 'copy_evaluate_task' and 'move_evaluate_task' functions. Only cases with different input and output encodings and that used nested elements of copy and move tasks not covered. [tests.xml] at 'loadfile sample' removed expected to use code - at other tests used such for, here left unchanged use property::get-value function to cover last one too. [tests_project] expected base directory from test environment is interpreting before compare to returned value.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha 243535536da46b7aa282a41789f48c455acdf70c

[file_system] added processing of file at the copy and move tasks. Implemented for using with 'file/todir' and file/tofile attributes. [project|for_each|interpreter] renamed function 'program_get_current_directory' into 'project_get_current_directory'.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha e6545594b61365680ef4925289cdff013353ee3b

[file_system] made available to call 'file replace' function from the scripts. [for_each] added support of 'do' task. Currently available from any tasks, not only from 'for each' task as nested element. [property] added support of UTF8 names of properties at 'property_is_name_valid' function. [string_unit] added 'string_get_id_of_to_lower_function' and 'string_get_id_of_to_upper_function' functions. Made function 'string_to_case' public available. [target] added support of wild target.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha 8841a4e64225aaac0847ebd9dc02437436ed9ea7

[try_catch|CMakeLists|interpreter] added support of 'trycatch' task. [common] added functions common_set_output_stream, common_set_error_output_stream, common_is_output_stream_standard and common_is_error_output_stream_standard. [echo] added 'Fail' echo level - same as 'NoLevel', but for standard error output stream. Not available at echo task from script, internally used by fail task. Removed unnecessary including of 'wchar.h' for Windows platform. Replaced binary AND ('&') operation with logical AND ('&&'). [for_each] value of loop item property will set as static. [interpreter] added support of escaping of values at interpreter_get_values_for_arguments function, special of coma char ','. [fail] for empty message fail task will use 'Error' level otherwise recently added 'Fail' echo level. [property] added property_set_from_stream function. [tests_project] at test project_load_from_content added checks of properties before unloading/clearing project.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha a72c1dd20e4f8610ed211b79926c95c045ed9793

[file_system] fixed issue with call of property_get_by_pointer function. [for_each] resolved issue with outdated pointer to the property: in case several for_each loops created, pointer to the property of first one for_each will outdated. When required to manipulate with such pointer to the property - undefined behavior may occur depending on the compiler by which the project binary was created. Added support of several chars of delimiter thanks to the string_index_of_any function. [interpreter] added support of argument value escaping at the interpreter_evaluate_argument_area function by same approach that early was applied to the interpreter_evaluate_code function. Exit from function interpreter_actualize_property_value on empty code will be with success code. [project] used wrong array - project_attributes_lengths instead project_properties_lengths at project_is_property_private function. Allowed to get values of project's properties even if they has even exists. That possibility available only from script. Zero string will returned if some of property do not exists at moment when such try was provided. [xml] added support of CDATA to the xml_skip_comment function. At the function xml_get_element_value added addition checks to prevent exit with fail from function by checking only return of the xml_read_ampersand_based_data function. That function will call only if index more than zero.

view details

push time in 3 months

push eventTheVice/Ant4C

TheVice

commit sha 0b1fe3579ec4b8e1e98804e0894938ba677ac5c1

[string_unit] renamed string_index_of_any into string_index_of_value. Added true one string_index_of_any function. Function string_index_of_value will return index of UTF8 char in the string, not byte position in the array. Added new script functions - index-of-any and last-index-of-any, based on recently added functions.

view details

push time in 3 months

more