foundational_lib 1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Articles/1.html +524 -0
- data/Articles/10.html +63 -0
- data/Articles/11.html +153 -0
- data/Articles/12.html +15 -0
- data/Articles/13.html +14 -0
- data/Articles/14.html +299 -0
- data/Articles/15.html +125 -0
- data/Articles/16.html +908 -0
- data/Articles/2.html +83 -0
- data/Articles/3.html +46 -0
- data/Articles/4.html +108 -0
- data/Articles/5.html +186 -0
- data/Articles/6.html +49 -0
- data/Articles/7.html +25 -0
- data/Articles/8.html +128 -0
- data/Articles/9.html +72 -0
- data/Articles/convert_html_to_markdown.sh +8 -0
- data/Articles/css.css +54 -0
- data/Articles/format.rb +95 -0
- data/Articles/index.html +34 -0
- data/Articles_MD/1.html.md +451 -0
- data/Articles_MD/10.html.md +57 -0
- data/Articles_MD/11.html.md +231 -0
- data/Articles_MD/12.html.md +16 -0
- data/Articles_MD/13.html.md +15 -0
- data/Articles_MD/14.html.md +280 -0
- data/Articles_MD/15.html.md +135 -0
- data/Articles_MD/16.html.md +840 -0
- data/Articles_MD/17.html.md +838 -0
- data/Articles_MD/2.html.md +82 -0
- data/Articles_MD/3.html.md +163 -0
- data/Articles_MD/4.html.md +137 -0
- data/Articles_MD/5.html.md +175 -0
- data/Articles_MD/6.html.md +47 -0
- data/Articles_MD/7.html.md +24 -0
- data/Articles_MD/8.html.md +71 -0
- data/Articles_MD/9.html.md +68 -0
- data/Articles_MD/index.html.md +25 -0
- data/DOCS.md +11153 -0
- data/GENERATE_CUSTOM_FOUNDATIONALLIB.rb +89 -0
- data/LICENSE.md +16 -0
- data/NOTE.md +29 -0
- data/README.md +120 -0
- data/custom_library_example.h +13999 -0
- data/docs/Doxyfile +2746 -0
- data/docs/LICENSE +21 -0
- data/docs/Makefile +39 -0
- data/docs/custom-alternative.css +54 -0
- data/docs/custom.css +57 -0
- data/docs/doxygen-awesome-darkmode-toggle.js +157 -0
- data/docs/doxygen-awesome-fragment-copy-button.js +85 -0
- data/docs/doxygen-awesome-interactive-toc.js +81 -0
- data/docs/doxygen-awesome-paragraph-link.js +51 -0
- data/docs/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
- data/docs/doxygen-awesome-sidebar-only.css +116 -0
- data/docs/doxygen-awesome-tabs.js +90 -0
- data/docs/doxygen-awesome.css +2669 -0
- data/docs/doxygen-custom/custom-alternative.css +54 -0
- data/docs/doxygen-custom/custom.css +57 -0
- data/docs/doxygen-custom/header.html +90 -0
- data/docs/doxygen-custom/toggle-alternative-theme.js +12 -0
- data/docs/header.html +90 -0
- data/docs/html/html/annotated.html +145 -0
- data/docs/html/html/annotated_dup.js +10 -0
- data/docs/html/html/bc_s.png +0 -0
- data/docs/html/html/bdwn.png +0 -0
- data/docs/html/html/classes.html +149 -0
- data/docs/html/html/closed.png +0 -0
- data/docs/html/html/custom-alternative.css +54 -0
- data/docs/html/html/custom.css +57 -0
- data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.html +141 -0
- data/docs/html/html/dir_68267d1309a1af8e8297ef4c3efbcdba.js +4 -0
- data/docs/html/html/doc.png +0 -0
- data/docs/html/html/doxygen-awesome-darkmode-toggle.js +157 -0
- data/docs/html/html/doxygen-awesome-fragment-copy-button.js +85 -0
- data/docs/html/html/doxygen-awesome-interactive-toc.js +81 -0
- data/docs/html/html/doxygen-awesome-paragraph-link.js +51 -0
- data/docs/html/html/doxygen-awesome-sidebar-only-darkmode-toggle.css +40 -0
- data/docs/html/html/doxygen-awesome-sidebar-only.css +116 -0
- data/docs/html/html/doxygen-awesome-tabs.js +90 -0
- data/docs/html/html/doxygen-awesome.css +2669 -0
- data/docs/html/html/doxygen.css +1793 -0
- data/docs/html/html/doxygen.svg +26 -0
- data/docs/html/html/dynsections.js +121 -0
- data/docs/html/html/files.html +140 -0
- data/docs/html/html/files_dup.js +4 -0
- data/docs/html/html/folderclosed.png +0 -0
- data/docs/html/html/folderopen.png +0 -0
- data/docs/html/html/foundationallib_8h.html +17294 -0
- data/docs/html/html/foundationallib_8h.js +445 -0
- data/docs/html/html/foundationallib_8h__incl.map +15 -0
- data/docs/html/html/foundationallib_8h__incl.md5 +1 -0
- data/docs/html/html/foundationallib_8h__incl.svg +202 -0
- data/docs/html/html/foundationallib_8h_source.html +9125 -0
- data/docs/html/html/functions.html +188 -0
- data/docs/html/html/functions_vars.html +188 -0
- data/docs/html/html/globals.html +158 -0
- data/docs/html/html/globals_b.html +137 -0
- data/docs/html/html/globals_c.html +173 -0
- data/docs/html/html/globals_d.html +185 -0
- data/docs/html/html/globals_defs.html +361 -0
- data/docs/html/html/globals_dup.js +19 -0
- data/docs/html/html/globals_e.html +221 -0
- data/docs/html/html/globals_f.html +560 -0
- data/docs/html/html/globals_func.html +158 -0
- data/docs/html/html/globals_func.js +19 -0
- data/docs/html/html/globals_func_b.html +137 -0
- data/docs/html/html/globals_func_c.html +173 -0
- data/docs/html/html/globals_func_d.html +179 -0
- data/docs/html/html/globals_func_e.html +218 -0
- data/docs/html/html/globals_func_f.html +341 -0
- data/docs/html/html/globals_func_g.html +140 -0
- data/docs/html/html/globals_func_i.html +188 -0
- data/docs/html/html/globals_func_j.html +137 -0
- data/docs/html/html/globals_func_l.html +152 -0
- data/docs/html/html/globals_func_m.html +152 -0
- data/docs/html/html/globals_func_p.html +374 -0
- data/docs/html/html/globals_func_r.html +194 -0
- data/docs/html/html/globals_func_s.html +386 -0
- data/docs/html/html/globals_func_u.html +140 -0
- data/docs/html/html/globals_func_w.html +140 -0
- data/docs/html/html/globals_g.html +140 -0
- data/docs/html/html/globals_i.html +188 -0
- data/docs/html/html/globals_j.html +137 -0
- data/docs/html/html/globals_l.html +152 -0
- data/docs/html/html/globals_m.html +152 -0
- data/docs/html/html/globals_p.html +374 -0
- data/docs/html/html/globals_r.html +194 -0
- data/docs/html/html/globals_s.html +389 -0
- data/docs/html/html/globals_type.html +144 -0
- data/docs/html/html/globals_u.html +140 -0
- data/docs/html/html/globals_vars.html +135 -0
- data/docs/html/html/globals_w.html +140 -0
- data/docs/html/html/graph_legend.html +194 -0
- data/docs/html/html/graph_legend.md5 +1 -0
- data/docs/html/html/graph_legend.svg +117 -0
- data/docs/html/html/index.html +134 -0
- data/docs/html/html/jquery.js +35 -0
- data/docs/html/html/logo.drawio.svg +1 -0
- data/docs/html/html/menu.js +51 -0
- data/docs/html/html/menudata.js +75 -0
- data/docs/html/html/nav_f.png +0 -0
- data/docs/html/html/nav_g.png +0 -0
- data/docs/html/html/nav_h.png +0 -0
- data/docs/html/html/navtree.css +146 -0
- data/docs/html/html/navtree.js +546 -0
- data/docs/html/html/navtreedata.js +57 -0
- data/docs/html/html/navtreeindex0.js +253 -0
- data/docs/html/html/navtreeindex1.js +253 -0
- data/docs/html/html/navtreeindex2.js +18 -0
- data/docs/html/html/open.png +0 -0
- data/docs/html/html/resize.js +140 -0
- data/docs/html/html/search/all_0.html +37 -0
- data/docs/html/html/search/all_0.js +12 -0
- data/docs/html/html/search/all_1.html +37 -0
- data/docs/html/html/search/all_1.js +4 -0
- data/docs/html/html/search/all_10.html +37 -0
- data/docs/html/html/search/all_10.js +6 -0
- data/docs/html/html/search/all_11.html +37 -0
- data/docs/html/html/search/all_11.js +5 -0
- data/docs/html/html/search/all_12.html +37 -0
- data/docs/html/html/search/all_12.js +4 -0
- data/docs/html/html/search/all_13.html +37 -0
- data/docs/html/html/search/all_13.js +5 -0
- data/docs/html/html/search/all_2.html +37 -0
- data/docs/html/html/search/all_2.js +17 -0
- data/docs/html/html/search/all_3.html +37 -0
- data/docs/html/html/search/all_3.js +21 -0
- data/docs/html/html/search/all_4.html +37 -0
- data/docs/html/html/search/all_4.js +34 -0
- data/docs/html/html/search/all_5.html +37 -0
- data/docs/html/html/search/all_5.js +147 -0
- data/docs/html/html/search/all_6.html +37 -0
- data/docs/html/html/search/all_6.js +5 -0
- data/docs/html/html/search/all_7.html +37 -0
- data/docs/html/html/search/all_7.js +22 -0
- data/docs/html/html/search/all_8.html +37 -0
- data/docs/html/html/search/all_8.js +4 -0
- data/docs/html/html/search/all_9.html +37 -0
- data/docs/html/html/search/all_9.js +4 -0
- data/docs/html/html/search/all_a.html +37 -0
- data/docs/html/html/search/all_a.js +9 -0
- data/docs/html/html/search/all_b.html +37 -0
- data/docs/html/html/search/all_b.js +9 -0
- data/docs/html/html/search/all_c.html +37 -0
- data/docs/html/html/search/all_c.js +4 -0
- data/docs/html/html/search/all_d.html +37 -0
- data/docs/html/html/search/all_d.js +83 -0
- data/docs/html/html/search/all_e.html +37 -0
- data/docs/html/html/search/all_e.js +25 -0
- data/docs/html/html/search/all_f.html +37 -0
- data/docs/html/html/search/all_f.js +91 -0
- data/docs/html/html/search/classes_0.html +37 -0
- data/docs/html/html/search/classes_0.js +5 -0
- data/docs/html/html/search/classes_1.html +37 -0
- data/docs/html/html/search/classes_1.js +5 -0
- data/docs/html/html/search/classes_2.html +37 -0
- data/docs/html/html/search/classes_2.js +5 -0
- data/docs/html/html/search/classes_3.html +37 -0
- data/docs/html/html/search/classes_3.js +4 -0
- data/docs/html/html/search/close.svg +31 -0
- data/docs/html/html/search/defines_0.html +37 -0
- data/docs/html/html/search/defines_0.js +4 -0
- data/docs/html/html/search/defines_1.html +37 -0
- data/docs/html/html/search/defines_1.js +4 -0
- data/docs/html/html/search/defines_2.html +37 -0
- data/docs/html/html/search/defines_2.js +74 -0
- data/docs/html/html/search/files_0.html +37 -0
- data/docs/html/html/search/files_0.js +4 -0
- data/docs/html/html/search/functions_0.html +37 -0
- data/docs/html/html/search/functions_0.js +11 -0
- data/docs/html/html/search/functions_1.html +37 -0
- data/docs/html/html/search/functions_1.js +4 -0
- data/docs/html/html/search/functions_2.html +37 -0
- data/docs/html/html/search/functions_2.js +16 -0
- data/docs/html/html/search/functions_3.html +37 -0
- data/docs/html/html/search/functions_3.js +18 -0
- data/docs/html/html/search/functions_4.html +37 -0
- data/docs/html/html/search/functions_4.js +31 -0
- data/docs/html/html/search/functions_5.html +37 -0
- data/docs/html/html/search/functions_5.js +72 -0
- data/docs/html/html/search/functions_6.html +37 -0
- data/docs/html/html/search/functions_6.js +5 -0
- data/docs/html/html/search/functions_7.html +37 -0
- data/docs/html/html/search/functions_7.js +21 -0
- data/docs/html/html/search/functions_8.html +37 -0
- data/docs/html/html/search/functions_8.js +4 -0
- data/docs/html/html/search/functions_9.html +37 -0
- data/docs/html/html/search/functions_9.js +9 -0
- data/docs/html/html/search/functions_a.html +37 -0
- data/docs/html/html/search/functions_a.js +9 -0
- data/docs/html/html/search/functions_b.html +37 -0
- data/docs/html/html/search/functions_b.js +83 -0
- data/docs/html/html/search/functions_c.html +37 -0
- data/docs/html/html/search/functions_c.js +23 -0
- data/docs/html/html/search/functions_d.html +37 -0
- data/docs/html/html/search/functions_d.js +87 -0
- data/docs/html/html/search/functions_e.html +37 -0
- data/docs/html/html/search/functions_e.js +5 -0
- data/docs/html/html/search/functions_f.html +37 -0
- data/docs/html/html/search/functions_f.js +5 -0
- data/docs/html/html/search/mag_sel.svg +74 -0
- data/docs/html/html/search/nomatches.html +13 -0
- data/docs/html/html/search/search.css +257 -0
- data/docs/html/html/search/search.js +816 -0
- data/docs/html/html/search/search_l.png +0 -0
- data/docs/html/html/search/search_m.png +0 -0
- data/docs/html/html/search/search_r.png +0 -0
- data/docs/html/html/search/searchdata.js +33 -0
- data/docs/html/html/search/typedefs_0.html +37 -0
- data/docs/html/html/search/typedefs_0.js +4 -0
- data/docs/html/html/search/typedefs_1.html +37 -0
- data/docs/html/html/search/typedefs_1.js +5 -0
- data/docs/html/html/search/typedefs_2.html +37 -0
- data/docs/html/html/search/typedefs_2.js +4 -0
- data/docs/html/html/search/variables_0.html +37 -0
- data/docs/html/html/search/variables_0.js +4 -0
- data/docs/html/html/search/variables_1.html +37 -0
- data/docs/html/html/search/variables_1.js +4 -0
- data/docs/html/html/search/variables_2.html +37 -0
- data/docs/html/html/search/variables_2.js +5 -0
- data/docs/html/html/search/variables_3.html +37 -0
- data/docs/html/html/search/variables_3.js +5 -0
- data/docs/html/html/search/variables_4.html +37 -0
- data/docs/html/html/search/variables_4.js +4 -0
- data/docs/html/html/search/variables_5.html +37 -0
- data/docs/html/html/search/variables_5.js +4 -0
- data/docs/html/html/search/variables_6.html +37 -0
- data/docs/html/html/search/variables_6.js +4 -0
- data/docs/html/html/search/variables_7.html +37 -0
- data/docs/html/html/search/variables_7.js +5 -0
- data/docs/html/html/search/variables_8.html +37 -0
- data/docs/html/html/search/variables_8.js +5 -0
- data/docs/html/html/search/variables_9.html +37 -0
- data/docs/html/html/search/variables_9.js +5 -0
- data/docs/html/html/search/variables_a.html +37 -0
- data/docs/html/html/search/variables_a.js +4 -0
- data/docs/html/html/splitbar.png +0 -0
- data/docs/html/html/struct_dict.html +195 -0
- data/docs/html/html/struct_dict.js +6 -0
- data/docs/html/html/struct_dict_key_value.html +197 -0
- data/docs/html/html/struct_dict_key_value.js +6 -0
- data/docs/html/html/struct_frozen_dict.html +195 -0
- data/docs/html/html/struct_frozen_dict.js +6 -0
- data/docs/html/html/struct_frozen_set.html +195 -0
- data/docs/html/html/struct_frozen_set.js +6 -0
- data/docs/html/html/struct_set.html +195 -0
- data/docs/html/html/struct_set.js +6 -0
- data/docs/html/html/struct_set_key.html +179 -0
- data/docs/html/html/struct_set_key.js +5 -0
- data/docs/html/html/struct_thread_data.html +291 -0
- data/docs/html/html/struct_thread_data.js +12 -0
- data/docs/html/html/sync_off.png +0 -0
- data/docs/html/html/sync_on.png +0 -0
- data/docs/html/html/tab_a.png +0 -0
- data/docs/html/html/tab_b.png +0 -0
- data/docs/html/html/tab_h.png +0 -0
- data/docs/html/html/tab_s.png +0 -0
- data/docs/html/html/tabs.css +1 -0
- data/docs/html/html/toggle-alternative-theme.js +12 -0
- data/docs/img/screenshot.png +0 -0
- data/docs/img/testimage.png +0 -0
- data/docs/img/theme-variants-base.drawio.svg +117 -0
- data/docs/img/theme-variants-sidebar-only.drawio.svg +102 -0
- data/docs/logo.drawio.svg +1 -0
- data/docs/package.json +34 -0
- data/docs/src/foundationallib.h +13061 -0
- data/docs/toggle-alternative-theme.js +12 -0
- data/example_of_transpilation_comments.txt +167 -0
- data/foundationallib.gemspec +14 -0
- data/foundationallib.h +13999 -0
- data/platforms/README.md +17 -0
- data/platforms/header_and_separate_compilation_unit/Makefile +18 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.c +13014 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.h +316 -0
- data/platforms/header_and_separate_compilation_unit/foundationallib_noninline.o +0 -0
- data/platforms/header_and_separate_compilation_unit/non_inline_example +0 -0
- data/platforms/header_and_separate_compilation_unit/non_inline_example.c +11 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/Makefile +18 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.c +13014 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.h +317 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.o +0 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example +0 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/non_inline_example.c +11 -0
- data/platforms/header_and_separate_compilation_unit_all_safe_funcs/wont_compile.c +8 -0
- data/tests/decoupled_thorough_tests +0 -0
- data/tests/decoupled_thorough_tests.c +95 -0
- data/tests/decoupled_thorough_tests.exe +0 -0
- data/tests/decoupled_thorough_tests32 +0 -0
- data/tests/deps_for_testing +9 -0
- data/tests/deps_for_testing.sh +23 -0
- data/tests/destination_file.txt +1 -0
- data/tests/ex_ample.txt +1 -0
- data/tests/existing_file.txt +127 -0
- data/tests/lib_and_tests +0 -0
- data/tests/lib_and_tests.c +15920 -0
- data/tests/lib_and_tests.exe +0 -0
- data/tests/lib_and_tests32 +0 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_append_string_to_array.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_append_string_to_array_no_initial_alloc.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_array_total_string_length.c +25 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_arraydup.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_calculate_average_in_int_array.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_calculate_sum_in_int_array.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_common_prefix_length.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_common_suffix_length.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_five_strings.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_four_strings.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_string_array.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_strings.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_concatenate_three_strings.c +43 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_count_occurrences_of_substr.c +21 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_count_occurrences_of_substr_len.c +66 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_add.c +49 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_key.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_keys.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_del_values.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_destructor.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_get.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_get_check.c +75 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_hash.c +18 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_iter.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_new_instance.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_reserve_more.c +21 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_resize.c +8 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_size.c +79 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_to_array.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dict_to_string.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_dup_format.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_ends_with.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_char_ptrs.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_chars.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_double_ptrs.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_doubles.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_float_ptrs.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_floats.c +45 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_int_ptrs.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ints.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_long_ptrs.c +27 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_longs.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_long_ptrs.c +66 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_longs.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_short_ptrs.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_shorts.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_size_t_ptrs.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_size_ts.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uchar_ptrs.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uchars.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uint_ptrs.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_uints.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_long_ptrs.c +56 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_longs.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulong_ptrs.c +38 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ulongs.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ushort_ptrs.c +30 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_array_of_ushorts.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_equal_strings.c +45 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_filter.c +59 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_filter_int.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_first_of.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_last_of.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_max_int_in_array.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_find_min_int_in_array.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_first_non_repeating_char.c +42 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_format_string.c +68 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_free_array.c +63 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_free_string_array.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_del_keys.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_del_values.c +64 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_destructor.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_get.c +27 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_get_check.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_new_instance.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_size.c +33 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_to_array.c +51 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_dict_to_string.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_del_keys.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_destructor.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_in.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_iter.c +71 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_new_instance.c +26 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_size.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_to_array.c +70 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_frozen_set_to_string.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_generate_range.c +62 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_index_of_char.c +77 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_int_to_string.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_alphanumeric.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_digit.c +67 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_lower.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_array_upper.c +28 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_numeric.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_alpha.c +43 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_digit.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_lower.c +50 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_space.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_string_upper.c +72 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_valid_integer.c +16 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_is_valid_utf8.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_join.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_last_index_of_char.c +15 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_list_comprehension.c +95 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_list_comprehension_multithreaded.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_longest_common_prefix.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_longest_common_suffix.c +61 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_map.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_map_int.c +59 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_prepend_string_to_array.c +68 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_prepend_string_to_array_no_initial_alloc.c +57 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_rand_number_from_range_inclusive_signed.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_rand_number_from_range_inclusive_unsigned.c +23 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reduce.c +49 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reduce_int.c +44 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reject_array.c +47 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all.c +73 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all_with_callback.c +46 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replace_all_with_lens.c +61 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_replicate.c +56 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_int_array.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_string.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_string_in_place.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_reverse_words.c +58 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_sample_strings.c +48 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_select_array.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_add.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_del_key.c +29 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_del_keys.c +35 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_destructor.c +31 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_hash.c +44 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_in.c +52 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_iter.c +69 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_new_instance.c +30 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_reserve_more.c +36 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_resize.c +37 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_size.c +42 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_to_array.c +41 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_set_to_string.c +81 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_shellescape.c +53 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_shuffle_strings_in_place.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_split.c +64 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_starts_with.c +39 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_str_to_double.c +32 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_array_uniq.c +60 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_array_uniq_adjacent.c +54 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_int.c +55 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_json.c +98 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_lowercase.c +73 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_title_case.c +80 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_string_to_uppercase.c +78 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_strip.c +84 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/src/test_trim_chars.c +85 -0
- data/tests/more/experimental/third_test_suite/non_production_ready_test_suite/test_every_relevant_function_in_a_separate_thorough_program/work_in_progress_code/testall.sh +15 -0
- data/tests/run_test_suite.sh +117 -0
- data/tests/source_file.txt +1 -0
- data/tests/test_log.txt +1047 -0
- data/tools/FUTURE +18 -0
- data/tools/HEADERS.h +316 -0
- data/tools/HEADERS_ONLY_FUNCTIONS.h +284 -0
- data/tools/HEADERS_WITH_PREFIX.h +33 -0
- data/tools/RSUB_LICENSE.txt +25 -0
- data/tools/benchmark_libc.c +263 -0
- data/tools/deprecated/GENERATE_CUSTOM_FOUNDATIONALLIB.sh.old +67 -0
- data/tools/deps_for_testing.sh +23 -0
- data/tools/documentation_generate +17 -0
- data/tools/foundationallib.h +13999 -0
- data/tools/funcs_c +15858 -0
- data/tools/funcs_c_with_tests.c +15920 -0
- data/tools/gen_video_new +444 -0
- data/tools/gen_video_new_times +41 -0
- data/tools/generate_promo_video_for_library.rb +19 -0
- data/tools/index.html +147 -0
- data/tools/lib.html +20 -0
- data/tools/lib2.html +22 -0
- data/tools/lib3.html +22 -0
- data/tools/lynx.rb +145 -0
- data/tools/make_image_of_docs +741 -0
- data/tools/pic.png +0 -0
- data/tools/pic2.png +0 -0
- data/tools/pic3.png +0 -0
- data/tools/play_with_string_replace_functions.c +236 -0
- data/tools/rsub +0 -0
- data/tools/rsub.c +501 -0
- data/tools/run_lib +365 -0
- data/tools/update +44 -0
- data/tools/with_tests +0 -0
- data/tools/with_tests32 +0 -0
- data/transpile_slow_scripting_into_c.rb +225 -0
- metadata +693 -0
data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.h
ADDED
@@ -0,0 +1,317 @@
|
|
1
|
+
#define FOUNDATIONAL_LIB_UNSAFE_FUNCTIONS_ENABLED 0
|
2
|
+
|
3
|
+
#ifndef _FOUNDATIONAL_LIB_HEADER_GUARD
|
4
|
+
#define _FOUNDATIONAL_LIB_HEADER_GUARD
|
5
|
+
|
6
|
+
#include <ctype.h>
|
7
|
+
#include <stdarg.h>
|
8
|
+
#include <stdio.h>
|
9
|
+
#ifdef _WIN32
|
10
|
+
#define _CRT_RAND_S
|
11
|
+
#endif
|
12
|
+
#include <stdlib.h>
|
13
|
+
|
14
|
+
#include <string.h>
|
15
|
+
|
16
|
+
#include <errno.h>
|
17
|
+
|
18
|
+
#ifndef FOUNDATIONAL_LIB_AGGRESSIVE_DIE_TYPE
|
19
|
+
/**
|
20
|
+
* @brief Type of the aggressive die variable.
|
21
|
+
*
|
22
|
+
* This macro defines the type of the aggressive die variable, which
|
23
|
+
* uses 1 byte of overhead by default. It can be configured as static
|
24
|
+
* or nonstatic based on user preference.
|
25
|
+
*/
|
26
|
+
#define FOUNDATIONAL_LIB_AGGRESSIVE_DIE_TYPE static unsigned char
|
27
|
+
#endif
|
28
|
+
|
29
|
+
struct Dict;
|
30
|
+
struct FrozenDict;
|
31
|
+
struct Set;
|
32
|
+
struct FrozenSet;
|
33
|
+
char **list_files_with_pattern(const char *directory, const char *pattern, size_t *len);
|
34
|
+
char **read_file_into_array(const char *filename, const char *delim, size_t *num_lines);
|
35
|
+
char **sorted_char_ptrs(char **char_ptrs, size_t size);
|
36
|
+
char **sorted_strings(char **strings, size_t size);
|
37
|
+
char **split(const char *str, size_t *output_size, const char *delim, size_t max_times, int keep_delim_in_result);
|
38
|
+
char *backticks(const char *command, size_t *size);
|
39
|
+
char *concatenate_five_strings(const char *str1, const char *str2, const char *str3, const char *str4, const char *str5);
|
40
|
+
char *concatenate_four_strings(const char *str1, const char *str2, const char *str3, const char *str4);
|
41
|
+
char *concatenate_string_array(const char **strings, size_t num_strings);
|
42
|
+
char *concatenate_strings(const char *str1, const char *str2);
|
43
|
+
char *concatenate_three_strings(const char *str1, const char *str2, const char *str3);
|
44
|
+
char *dict_to_string(struct Dict *dict, int pointer_or_string) /* 0 = pointer, 1 = string */;
|
45
|
+
char *dup_format(const char *format, ...);
|
46
|
+
char *frozen_dict_to_string(struct FrozenDict *dict, int pointer_or_string) /* 0 = pointer, 1 = string */;
|
47
|
+
char *frozen_set_to_string(struct FrozenSet *frozen_set);
|
48
|
+
char *int_to_string(long long int number);
|
49
|
+
char *join(const char **array, size_t count, const char *delimiter);
|
50
|
+
char *longest_common_prefix(const char **strings, size_t count);
|
51
|
+
char *longest_common_suffix(const char **strings, size_t count);
|
52
|
+
char *read_file_into_string(const char *filename, size_t *size);
|
53
|
+
char *reduce_filesystem_files_as_strings(const char *directory, const char *out_file, char *(*reduce_function)(char *value1, ...));
|
54
|
+
char *replace_all(const char *source, const char *find, const char *replace);
|
55
|
+
char *replace_all_with_callback(const char *str, const char *old_substring, char *(*callback)(const char *, void *), void *data_for_callback);
|
56
|
+
char *replace_count(const char *source, const char *find, const char *replace, const size_t matches_max);
|
57
|
+
char *replace_first(const char *source, const char *find, const char *replace);
|
58
|
+
char *reverse_string(const char *str);
|
59
|
+
char *set_to_string(struct Set *set);
|
60
|
+
char *shellescape(const char *input);
|
61
|
+
char *sorted_chars(char *chars, size_t size);
|
62
|
+
char *string_to_json(const char *input_string);
|
63
|
+
char *string_to_lowercase(char *string);
|
64
|
+
char *string_to_title_case(const char *str);
|
65
|
+
char *string_to_uppercase(char *string);
|
66
|
+
char *strip(const char *str);
|
67
|
+
char *uint_to_string(size_t number);
|
68
|
+
const char *sample_strings(const char **strings, size_t size) /* Does not dynamically allocate memory. */;
|
69
|
+
double **sorted_double_ptrs(double **double_ptrs, size_t size);
|
70
|
+
double *sorted_doubles(double *doubles, size_t size);
|
71
|
+
double average_of_int_array(const int *array, size_t size);
|
72
|
+
float **sorted_float_ptrs(float **float_ptrs, size_t size);
|
73
|
+
float *sorted_floats(float *floats, size_t size);
|
74
|
+
int **sorted_int_ptrs(int **int_ptrs, size_t size);
|
75
|
+
int *sorted_ints(int *ints, size_t size);
|
76
|
+
int append_data_to_array(void **array, size_t *array_size, size_t *array_current_alloc_size, void *data, size_t data_size);
|
77
|
+
int append_data_to_array_no_initial_alloc(void **array, size_t *array_size, size_t *array_current_alloc_size, void *data, size_t data_size);
|
78
|
+
int append_string_to_array(char ***array, size_t *array_size, size_t *array_current_alloc_size, const char *string);
|
79
|
+
int append_string_to_array_no_initial_alloc(char ***array, size_t *array_size, size_t *array_current_alloc_size, const char *string);
|
80
|
+
int append_string_to_file(const char *filename, const char *content);
|
81
|
+
int append_string_to_string(char **string, size_t *string_length, size_t *string_alloc_size, const char *string_to_get_appended, size_t string_to_get_appended_length);
|
82
|
+
int copy_file(const char *source_filename, const char *destination_filename);
|
83
|
+
int dict_add(struct Dict *dict, const char *key, void *value);
|
84
|
+
int dict_reserve_more(struct Dict *dict, size_t number_of_new_elements_max_one_is_expecting);
|
85
|
+
int dict_resize(struct Dict *dict);
|
86
|
+
int dict_to_array(struct Dict *dict, char ***keys, void ***values, size_t *size_of_keys_and_values);
|
87
|
+
int download_website(const char *website, char **string, size_t *size, size_t *str_alloc_size, size_t byte_max_cutoff, const char *user_agent);
|
88
|
+
int download_websites(const char **websites_to_download, size_t num_websites, char ***outputs, size_t **lens, size_t byte_limit, int aggressive_stop_on_error);
|
89
|
+
int file_exists(const char *filename);
|
90
|
+
int file_is_directory(const char *filename);
|
91
|
+
int file_is_executable(const char *filename);
|
92
|
+
int file_is_readable(const char *filename);
|
93
|
+
int file_is_regular(const char *filename);
|
94
|
+
int file_is_writable(const char *filename);
|
95
|
+
int filter_filesystem_files_as_strings(const char *directory, int (*filter_function)(const char *filename));
|
96
|
+
int filter_ints(int *source, size_t source_size, int *destination, int (*condition)(int));
|
97
|
+
int find_max_int_in_array(const int *array, size_t size);
|
98
|
+
int find_min_int_in_array(const int *array, size_t size);
|
99
|
+
int frozen_set_in(struct FrozenSet *set, const char *key);
|
100
|
+
int frozen_set_to_array(struct FrozenSet *set, char ***keys, size_t *size_of_keys);
|
101
|
+
int get_file_size(const char *filename, size_t *size);
|
102
|
+
int ints_are_sorted_ascending(const int *array, size_t size);
|
103
|
+
int ints_are_sorted_descending(const int *array, size_t size);
|
104
|
+
int is_array_digit(const char **array, size_t size);
|
105
|
+
int is_array_lower(const char **array, size_t size);
|
106
|
+
int is_array_upper(const char **array, size_t size);
|
107
|
+
int is_string_alpha(const char *string);
|
108
|
+
int is_string_alphanumeric(const char *str);
|
109
|
+
int is_string_digit(const char *string);
|
110
|
+
int is_string_lower(const char *string);
|
111
|
+
int is_string_numeric(const char *str);
|
112
|
+
int is_string_printable(const char *string);
|
113
|
+
int is_string_space(const char *string);
|
114
|
+
int is_string_upper(const char *string);
|
115
|
+
int is_string_valid_integer(const char *str);
|
116
|
+
int is_valid_utf8(const char *str, size_t len);
|
117
|
+
int map_filesystem_files_as_strings(const char *directory, char *(*map_function)(const char *file_string_data, size_t string_size));
|
118
|
+
int memory_has_subchunk(void *memory, size_t memory_length, void *subchunk, size_t subchunk_length);
|
119
|
+
int prepend_string_to_array(char ***array, size_t *array_size, size_t *array_current_alloc_size, char *string);
|
120
|
+
int prepend_string_to_array_no_initial_alloc(char ***array, size_t *array_size, size_t *array_current_alloc_size, char *string);
|
121
|
+
int read_files_into_array(const char **files_to_open, size_t num_files, char ***outputs, size_t **lens, int aggressive_stop_on_error);
|
122
|
+
int reduce_ints(int *array, size_t size, int (*operation)(int, int));
|
123
|
+
int remove_file(const char *filename);
|
124
|
+
int replace_all_with_lens(const char *source, size_t source_len, const char *find, size_t find_len, const char *replace, size_t replace_len, char **output, size_t *new_len, int *should_free_after_use, size_t matches_max, size_t *num_matches);
|
125
|
+
int replace_memory(void *source, size_t source_len, void *find, size_t find_len, void *replace, size_t replace_len, void **output, size_t *output_length_without_nullt, int *should_free_after_use, size_t matches_max /* 0 for unlimited replacement */, size_t *num_matches_found, int should_nullt);
|
126
|
+
int set_add(struct Set *set, const char *key);
|
127
|
+
int set_in(struct Set *set, const char *key);
|
128
|
+
int set_reserve_more(struct Set *set, size_t number_of_new_elements_max_one_is_expecting);
|
129
|
+
int set_resize(struct Set *set);
|
130
|
+
int set_to_array(struct Set *set, char ***keys, size_t *size_of_keys);
|
131
|
+
int shuffle_strings_in_place(char **strings, size_t size);
|
132
|
+
int string_array_uniq(const char **array, size_t size, char ***output, size_t *output_size);
|
133
|
+
int string_array_uniq_adjacent(const char **first_array, size_t size, char ***new_array, size_t *new_size);
|
134
|
+
int string_has_substr(const char *string, size_t string_length, const char *substring, size_t substring_length);
|
135
|
+
int string_to_int(const char *str);
|
136
|
+
int sum_of_int_array(const int *array, size_t size);
|
137
|
+
int write_file(const char *filename, const char *content);
|
138
|
+
int write_to_file_with_mode(const char *filename, const char *content, size_t content_length, const char *mode);
|
139
|
+
long **sorted_long_ptrs(long **long_ptrs, size_t size);
|
140
|
+
long *sorted_longs(long *longs, size_t size);
|
141
|
+
long long **sorted_long_long_ptrs(long long **long_long_ptrs, size_t size);
|
142
|
+
long long *sorted_long_longs(long long *long_longs, size_t size);
|
143
|
+
long rand_number_from_range_inclusive_signed(signed long min, signed long max);
|
144
|
+
short **sorted_short_ptrs(short **short_ptrs, size_t size);
|
145
|
+
short *sorted_shorts(short *shorts, size_t size);
|
146
|
+
size_t **sorted_size_t_ptrs(size_t **size_t_ptrs, size_t size);
|
147
|
+
size_t *generate_range(size_t start, size_t end, size_t step, size_t *range_size);
|
148
|
+
size_t *sorted_size_ts(size_t *size_ts, size_t size);
|
149
|
+
size_t array_total_string_length(char **array, size_t count);
|
150
|
+
size_t common_prefix_length(const char *str1, const char *str2);
|
151
|
+
size_t common_suffix_length(const char *str1, const char *str2);
|
152
|
+
size_t count_occurrences_of_adjacent_data_in_array(const void *array_of_adjacent_values, size_t array_length, const void *memory, size_t memory_length);
|
153
|
+
size_t count_occurrences_of_data_in_array(const void **array_of_pointers, size_t array_length, const void *memory, size_t memory_length);
|
154
|
+
size_t count_occurrences_of_string_in_array(const char **array, const char *string, size_t array_length);
|
155
|
+
size_t count_occurrences_of_substr(const char *str, const char *substring);
|
156
|
+
size_t count_occurrences_of_substr_len(const char *string, size_t string_length, const char *substring, size_t substring_length);
|
157
|
+
size_t dict_hash(const char *key, size_t capacity);
|
158
|
+
size_t dict_size(struct Dict *dict);
|
159
|
+
size_t filter(void *source, size_t source_size, size_t elem_size, void *destination, size_t dest_size, int (*condition)(void *));
|
160
|
+
size_t frozen_dict_size(struct FrozenDict *dict);
|
161
|
+
size_t frozen_dict_to_array(struct FrozenDict *dict, char ***keys, void ***values, size_t *size_of_keys_and_values);
|
162
|
+
size_t frozen_set_size(struct FrozenSet *set);
|
163
|
+
size_t set_hash(const char *key, size_t capacity);
|
164
|
+
size_t set_size(struct Set *set);
|
165
|
+
ssize_t find_first_of(const char *str, const char *char_set);
|
166
|
+
ssize_t find_last_of(const char *str, const char *char_set);
|
167
|
+
struct Dict *dict_new_instance(void);
|
168
|
+
struct FrozenDict *frozen_dict_new_instance(size_t num_pairs, ...);
|
169
|
+
struct FrozenSet *frozen_set_new_instance(size_t num_args, ...);
|
170
|
+
struct Set *set_new_instance(void);
|
171
|
+
unsigned char **sorted_uchar_ptrs(unsigned char **uchar_ptrs, size_t size);
|
172
|
+
unsigned char *sorted_uchars(unsigned char *uchars, size_t size);
|
173
|
+
unsigned int **sorted_uint_ptrs(unsigned int **uint_ptrs, size_t size);
|
174
|
+
unsigned int *sorted_uints(unsigned int *uints, size_t size);
|
175
|
+
unsigned long **sorted_ulong_ptrs(unsigned long **ulong_ptrs, size_t size);
|
176
|
+
unsigned long *sorted_ulongs(unsigned long *ulongs, size_t size);
|
177
|
+
unsigned long long **sorted_ulong_long_ptrs(unsigned long long **ulong_long_ptrs, size_t size);
|
178
|
+
unsigned long long *sorted_ulong_longs(unsigned long long *ulong_longs, size_t size);
|
179
|
+
unsigned long rand_number_from_range_inclusive_unsigned(unsigned long min, unsigned long max);
|
180
|
+
unsigned short **sorted_ushort_ptrs(unsigned short **ushort_ptrs, size_t size);
|
181
|
+
unsigned short *sorted_ushorts(unsigned short *ushorts, size_t size);
|
182
|
+
void *arraydup(const void *array, size_t num_mem, size_t size);
|
183
|
+
void *dict_get(struct Dict *dict, const char *key);
|
184
|
+
void *dict_get_check(struct Dict *dict, const char *key, int *key_is_in_dict);
|
185
|
+
void *frozen_dict_get(struct FrozenDict *dict, const char *key);
|
186
|
+
void *frozen_dict_get_check(struct FrozenDict *dict, const char *key, int *key_is_in_dict);
|
187
|
+
void *list_comprehension(const void *input_array, size_t array_size, size_t elem_size, void (*transform_func)(void *value), int (*filter_func)(void *value), size_t *result_size);
|
188
|
+
void *list_comprehension_multithreaded(const void *input_array, size_t array_size, size_t elem_size, void (*transform_func)(void *value), int (*filter_func)(void *value), size_t *result_size, size_t thread_count);
|
189
|
+
void *memory_locate(const void *haystack, size_t haystack_len, const void *needle, size_t needle_len);
|
190
|
+
void *reject_array(const void *source, size_t source_size, size_t elem_size, int (*condition)(const void *), size_t *result_size);
|
191
|
+
void *replicate(const void *source, size_t source_size, size_t elem_size, size_t repetitions);
|
192
|
+
void *select_array(const void *source, size_t source_size, size_t elem_size, int (*condition)(const void *), size_t *result_size);
|
193
|
+
void dict_del_key(struct Dict *dict, const char *key);
|
194
|
+
void dict_destructor(struct Dict *dict);
|
195
|
+
void dict_iter(struct Dict *dict, void (*callback)(char *key, void *value));
|
196
|
+
void frozen_dict_destructor(struct FrozenDict *dict);
|
197
|
+
void frozen_dict_iter(struct FrozenDict *frozen_dict, void (*callback)(char *key, void *value));
|
198
|
+
void frozen_set_del_keys(char **keys);
|
199
|
+
void frozen_set_destructor(struct FrozenSet *frozen_set);
|
200
|
+
void frozen_set_iter(struct Set *set, void (*callback)(char *key));
|
201
|
+
void int_to_string_with_buffer(long long int number, char *buffer);
|
202
|
+
void map(void *array, size_t size, size_t elem_size, void (*transform)(void *));
|
203
|
+
void map_ints(int *array, size_t size, int (*transform)(int));
|
204
|
+
void print_char(const char value);
|
205
|
+
void print_char_array_to_stream(const char *array, size_t size, FILE *stream);
|
206
|
+
void print_char_to_stream(const char value, FILE *stream);
|
207
|
+
void print_double(const double value);
|
208
|
+
void print_double_array(const double *array, size_t size);
|
209
|
+
void print_double_array_to_stream(const double *array, size_t size, FILE *stream);
|
210
|
+
void print_double_ptr_array(const double **array, size_t size);
|
211
|
+
void print_double_ptr_array_to_stream(const double **array, size_t size, FILE *stream);
|
212
|
+
void print_double_to_stream(const double value, FILE *stream);
|
213
|
+
void print_float(const float value);
|
214
|
+
void print_float_array(const float *array, size_t size);
|
215
|
+
void print_float_array_to_stream(const float *array, size_t size, FILE *stream);
|
216
|
+
void print_float_ptr_array(const float **array, size_t size);
|
217
|
+
void print_float_ptr_array_to_stream(const float **array, size_t size, FILE *stream);
|
218
|
+
void print_float_to_stream(const float value, FILE *stream);
|
219
|
+
void print_int(const int value);
|
220
|
+
void print_int_array(const int *array, size_t size);
|
221
|
+
void print_int_array_to_stream(const int *array, size_t size, FILE *stream);
|
222
|
+
void print_int_ptr_array(const int **array, size_t size);
|
223
|
+
void print_int_ptr_array_to_stream(const int **array, size_t size, FILE *stream);
|
224
|
+
void print_int_to_stream(const int value, FILE *stream);
|
225
|
+
void print_long(const long value);
|
226
|
+
void print_long_array(const long *array, size_t size);
|
227
|
+
void print_long_array_to_stream(const long *array, size_t size, FILE *stream);
|
228
|
+
void print_long_long(const long long value);
|
229
|
+
void print_long_long_array(const long long *array, size_t size);
|
230
|
+
void print_long_long_array_to_stream(const long long *array, size_t size, FILE *stream);
|
231
|
+
void print_long_long_ptr_array(const long long **array, size_t size);
|
232
|
+
void print_long_long_ptr_array_to_stream(const long long **array, size_t size, FILE *stream);
|
233
|
+
void print_long_long_to_stream(const long long value, FILE *stream);
|
234
|
+
void print_long_ptr_array(const long **array, size_t size);
|
235
|
+
void print_long_ptr_array_to_stream(const long **array, size_t size, FILE *stream);
|
236
|
+
void print_long_to_stream(const long value, FILE *stream);
|
237
|
+
void print_short(const short value);
|
238
|
+
void print_short_array(const short *array, size_t size);
|
239
|
+
void print_short_array_to_stream(const short *array, size_t size, FILE *stream);
|
240
|
+
void print_short_ptr_array(const short **array, size_t size);
|
241
|
+
void print_short_ptr_array_to_stream(const short **array, size_t size, FILE *stream);
|
242
|
+
void print_short_to_stream(const short value, FILE *stream);
|
243
|
+
void print_size_t(const size_t value);
|
244
|
+
void print_size_t_array(const size_t *array, size_t size);
|
245
|
+
void print_size_t_array_to_stream(const size_t *array, size_t size, FILE *stream);
|
246
|
+
void print_size_t_ptr_array(const size_t **array, size_t size);
|
247
|
+
void print_size_t_ptr_array_to_stream(const size_t **array, size_t size, FILE *stream);
|
248
|
+
void print_size_t_to_stream(const size_t value, FILE *stream);
|
249
|
+
void print_string(char *value);
|
250
|
+
void print_string_array(char **array, size_t size);
|
251
|
+
void print_string_array_array(char ***array, size_t size);
|
252
|
+
void print_string_array_array_to_stream(char ***array, size_t size, FILE *stream);
|
253
|
+
void print_string_array_to_stream(char **array, size_t size, FILE *stream);
|
254
|
+
void print_string_to_stream(char *value, FILE *stream);
|
255
|
+
void print_uchar(const unsigned char value);
|
256
|
+
void print_uchar_array_to_stream(const unsigned char *array, size_t size, FILE *stream);
|
257
|
+
void print_uchar_to_stream(const unsigned char value, FILE *stream);
|
258
|
+
void print_uint(const unsigned int value);
|
259
|
+
void print_uint_array(const unsigned long long *array, size_t size);
|
260
|
+
void print_uint_array_to_stream(const unsigned int *array, size_t size, FILE *stream);
|
261
|
+
void print_uint_ptr_array(const unsigned int **array, size_t size);
|
262
|
+
void print_uint_ptr_array_to_stream(const unsigned int **array, size_t size, FILE *stream);
|
263
|
+
void print_uint_to_stream(const unsigned int value, FILE *stream);
|
264
|
+
void print_ulong(const unsigned long value);
|
265
|
+
void print_ulong_array(const unsigned long *array, size_t size);
|
266
|
+
void print_ulong_array_to_stream(const unsigned long *array, size_t size, FILE *stream);
|
267
|
+
void print_ulong_long(const unsigned long long value);
|
268
|
+
void print_ulong_long_array(const unsigned long long *array, size_t size);
|
269
|
+
void print_ulong_long_array_to_stream(const unsigned long long *array, size_t size, FILE *stream);
|
270
|
+
void print_ulong_long_ptr_array(const unsigned long long **array, size_t size);
|
271
|
+
void print_ulong_long_ptr_array_to_stream(const unsigned long long **array, size_t size, FILE *stream);
|
272
|
+
void print_ulong_long_to_stream(const unsigned long long value, FILE *stream);
|
273
|
+
void print_ulong_ptr_array(const unsigned long **array, size_t size);
|
274
|
+
void print_ulong_ptr_array_to_stream(const unsigned long **array, size_t size, FILE *stream);
|
275
|
+
void print_ulong_to_stream(const unsigned long value, FILE *stream);
|
276
|
+
void print_ushort(const unsigned short value);
|
277
|
+
void print_ushort_array(const unsigned short *array, size_t size);
|
278
|
+
void print_ushort_array_to_stream(const unsigned short *array, size_t size, FILE *stream);
|
279
|
+
void print_ushort_ptr_array(const unsigned short **array, size_t size);
|
280
|
+
void print_ushort_ptr_array_to_stream(const unsigned short **array, size_t size, FILE *stream);
|
281
|
+
void print_ushort_to_stream(const unsigned short value, FILE *stream);
|
282
|
+
void reduce(void *array, size_t size, size_t elem_size, void *result, void (*operation)(void *, void *));
|
283
|
+
void reverse_int_array_in_place(int *array, size_t size);
|
284
|
+
void reverse_string_in_place(char *str);
|
285
|
+
void set_del_key(struct Set *set, const char *key);
|
286
|
+
void set_del_keys(char **keys);
|
287
|
+
void set_destructor(struct Set *set);
|
288
|
+
void set_iter(struct Set *set, void (*callback)(char *key));
|
289
|
+
void sort_char_ptrs(char **char_ptrs, size_t size);
|
290
|
+
void sort_chars(char *chars, size_t size);
|
291
|
+
void sort_double_ptrs(double **double_ptrs, size_t size);
|
292
|
+
void sort_doubles(double *doubles, size_t size);
|
293
|
+
void sort_float_ptrs(float **float_ptrs, size_t size);
|
294
|
+
void sort_floats(float *floats, size_t size);
|
295
|
+
void sort_int_ptrs(int **int_ptrs, size_t size);
|
296
|
+
void sort_ints(int *ints, size_t size);
|
297
|
+
void sort_long_long_ptrs(long long **long_long_ptrs, size_t size);
|
298
|
+
void sort_long_longs(long long *long_longs, size_t size);
|
299
|
+
void sort_long_ptrs(long **long_ptrs, size_t size);
|
300
|
+
void sort_longs(long *longs, size_t size);
|
301
|
+
void sort_short_ptrs(short **short_ptrs, size_t size);
|
302
|
+
void sort_shorts(short *shorts, size_t size);
|
303
|
+
void sort_size_t_ptrs(size_t **size_t_ptrs, size_t size);
|
304
|
+
void sort_size_ts(size_t *size_ts, size_t size);
|
305
|
+
void sort_strings(char **strings, size_t size);
|
306
|
+
void sort_uchar_ptrs(unsigned char **uchar_ptrs, size_t size);
|
307
|
+
void sort_uchars(unsigned char *uchars, size_t size);
|
308
|
+
void sort_uint_ptrs(unsigned int **uint_ptrs, size_t size);
|
309
|
+
void sort_uints(unsigned int *uints, size_t size);
|
310
|
+
void sort_ulong_long_ptrs(unsigned long long **ulong_long_ptrs, size_t size);
|
311
|
+
void sort_ulong_longs(unsigned long long *ulong_longs, size_t size);
|
312
|
+
void sort_ulong_ptrs(unsigned long **ulong_ptrs, size_t size);
|
313
|
+
void sort_ulongs(unsigned long *ulongs, size_t size);
|
314
|
+
void sort_ushort_ptrs(unsigned short **ushort_ptrs, size_t size);
|
315
|
+
void sort_ushorts(unsigned short *ushorts, size_t size);
|
316
|
+
void utoa(size_t unsigned_value, char *output);
|
317
|
+
#endif
|
data/platforms/header_and_separate_compilation_unit_all_safe_funcs/foundationallib_noninline.o
ADDED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,95 @@
|
|
1
|
+
#include "../foundationallib.h"
|
2
|
+
#pragma GCC diagnostic push
|
3
|
+
#pragma GCC diagnostic ignored "-Wpragmas"
|
4
|
+
#pragma GCC diagnostic ignored "-Wformat"
|
5
|
+
#pragma GCC diagnostic ignored "-Wformat-extra-args"
|
6
|
+
#include <assert.h>
|
7
|
+
|
8
|
+
#define die() \
|
9
|
+
{ \
|
10
|
+
fprintf(stderr, "Error on line %d\n", __LINE__); \
|
11
|
+
exit(1); \
|
12
|
+
}
|
13
|
+
|
14
|
+
void test_append_string_to_array()
|
15
|
+
{
|
16
|
+
puts("Test 1");
|
17
|
+
|
18
|
+
// Initialize variables for array testing
|
19
|
+
size_t array_size = 0;
|
20
|
+
size_t current_array_alloc_size = 0;
|
21
|
+
char **array = NULL;
|
22
|
+
|
23
|
+
// Test data
|
24
|
+
char *element1 = (char *)"test1";
|
25
|
+
char *element2 = (char *)"test2";
|
26
|
+
char *element3 = (char *)"test3";
|
27
|
+
|
28
|
+
// Test appending the first element
|
29
|
+
puts("First element");
|
30
|
+
if (append_string_to_array((char ***)&array, &array_size, ¤t_array_alloc_size, element1))
|
31
|
+
die();
|
32
|
+
|
33
|
+
// Assertions for the first element
|
34
|
+
assert(array != NULL);
|
35
|
+
assert(array_size == 1);
|
36
|
+
assert(strcmp(array[0], "test1") == 0);
|
37
|
+
assert(current_array_alloc_size >= sizeof(char *));
|
38
|
+
puts("First element is good.");
|
39
|
+
printf("Alloc size is %zu\n", current_array_alloc_size);
|
40
|
+
|
41
|
+
// Test appending another element
|
42
|
+
if (append_string_to_array((char ***)&array, &array_size, ¤t_array_alloc_size, element2))
|
43
|
+
die();
|
44
|
+
|
45
|
+
// Additional assertions for the second element
|
46
|
+
assert(array_size == 2);
|
47
|
+
assert(current_array_alloc_size > sizeof(char *));
|
48
|
+
assert(strcmp(array[0], "test1") == 0);
|
49
|
+
assert(strcmp(array[1], "test2") == 0);
|
50
|
+
|
51
|
+
// Test appending another element
|
52
|
+
if (append_string_to_array((char ***)&array, &array_size, ¤t_array_alloc_size, element3))
|
53
|
+
die();
|
54
|
+
|
55
|
+
// Additional assertions for the third element
|
56
|
+
assert(array_size == 3);
|
57
|
+
assert(current_array_alloc_size > sizeof(char *));
|
58
|
+
assert(strcmp(array[0], "test1") == 0);
|
59
|
+
assert(strcmp(array[1], "test2") == 0);
|
60
|
+
assert(strcmp(array[2], "test3") == 0);
|
61
|
+
|
62
|
+
// Stress test: Append a large number of elements
|
63
|
+
size_t stress_test_size = 1000 * 1000;
|
64
|
+
char stress_test_data[21];
|
65
|
+
for (size_t i = 4; i < stress_test_size + 4; ++i)
|
66
|
+
{
|
67
|
+
sprintf(stress_test_data, "test%zu", i);
|
68
|
+
if (i % 50000 == 0)
|
69
|
+
{
|
70
|
+
printf("i = %zu, size [%zu => %zu]\n", i, array_size, current_array_alloc_size);
|
71
|
+
}
|
72
|
+
if (append_string_to_array((char ***)&array, &array_size, ¤t_array_alloc_size, stress_test_data))
|
73
|
+
die();
|
74
|
+
}
|
75
|
+
|
76
|
+
// Verify the last element added in the stress test
|
77
|
+
assert(array_size == stress_test_size + 3);
|
78
|
+
assert(strcmp(array[stress_test_size + 2], stress_test_data) == 0);
|
79
|
+
|
80
|
+
// Free memory
|
81
|
+
free(array);
|
82
|
+
}
|
83
|
+
|
84
|
+
int main()
|
85
|
+
{
|
86
|
+
// Run the test functions
|
87
|
+
test_append_string_to_array();
|
88
|
+
|
89
|
+
// Print a success message if all tests passed
|
90
|
+
printf("All tests passed!\n");
|
91
|
+
|
92
|
+
return 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
#pragma GCC diagnostic pop
|
Binary file
|
Binary file
|
@@ -0,0 +1,23 @@
|
|
1
|
+
#!/bin/sh
|
2
|
+
|
3
|
+
sudo apt update && \
|
4
|
+
sudo apt install ruby-dev ruby clang-format valgrind build-essential graphviz && \
|
5
|
+
sudo gem install rouge puppeteer-ruby
|
6
|
+
exit 0
|
7
|
+
|
8
|
+
#sudo apt update && \
|
9
|
+
# sudo dnf install ruby-dev ruby clang-format valgrind build-essential graphviz && \
|
10
|
+
# sudo gem install rouge puppeteer-ruby
|
11
|
+
|
12
|
+
#If you want to run all the different scripts in this repository,
|
13
|
+
#you just need these
|
14
|
+
|
15
|
+
|
16
|
+
#ruby-dev ruby clang-format valgrind build-essential graphviz
|
17
|
+
|
18
|
+
#and gem intall rouge puppeteer-ruby
|
19
|
+
|
20
|
+
#and nothing else
|
21
|
+
|
22
|
+
#Of course, some scripts don't need all of these, but if you
|
23
|
+
# install these it makes for easy testing.
|
@@ -0,0 +1 @@
|
|
1
|
+
This is the source file content.
|
data/tests/ex_ample.txt
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Hello, File I/O!
|
@@ -0,0 +1,127 @@
|
|
1
|
+
|
2
|
+
This line is appended!
|
3
|
+
This line is appended!
|
4
|
+
This line is appended!
|
5
|
+
This line is appended!
|
6
|
+
This line is appended!
|
7
|
+
This line is appended!
|
8
|
+
This line is appended!
|
9
|
+
This line is appended!
|
10
|
+
This line is appended!
|
11
|
+
This line is appended!
|
12
|
+
This line is appended!
|
13
|
+
This line is appended!
|
14
|
+
This line is appended!
|
15
|
+
This line is appended!
|
16
|
+
This line is appended!
|
17
|
+
This line is appended!
|
18
|
+
This line is appended!
|
19
|
+
This line is appended!
|
20
|
+
This line is appended!
|
21
|
+
This line is appended!
|
22
|
+
This line is appended!
|
23
|
+
This line is appended!
|
24
|
+
This line is appended!
|
25
|
+
This line is appended!
|
26
|
+
This line is appended!
|
27
|
+
This line is appended!
|
28
|
+
This line is appended!
|
29
|
+
This line is appended!
|
30
|
+
This line is appended!
|
31
|
+
This line is appended!
|
32
|
+
This line is appended!
|
33
|
+
This line is appended!
|
34
|
+
This line is appended!
|
35
|
+
This line is appended!
|
36
|
+
This line is appended!
|
37
|
+
This line is appended!
|
38
|
+
This line is appended!
|
39
|
+
This line is appended!
|
40
|
+
This line is appended!
|
41
|
+
This line is appended!
|
42
|
+
This line is appended!
|
43
|
+
This line is appended!
|
44
|
+
This line is appended!
|
45
|
+
This line is appended!
|
46
|
+
This line is appended!
|
47
|
+
This line is appended!
|
48
|
+
This line is appended!
|
49
|
+
This line is appended!
|
50
|
+
This line is appended!
|
51
|
+
This line is appended!
|
52
|
+
This line is appended!
|
53
|
+
This line is appended!
|
54
|
+
This line is appended!
|
55
|
+
This line is appended!
|
56
|
+
This line is appended!
|
57
|
+
This line is appended!
|
58
|
+
This line is appended!
|
59
|
+
This line is appended!
|
60
|
+
This line is appended!
|
61
|
+
This line is appended!
|
62
|
+
This line is appended!
|
63
|
+
This line is appended!
|
64
|
+
This line is appended!
|
65
|
+
This line is appended!
|
66
|
+
This line is appended!
|
67
|
+
This line is appended!
|
68
|
+
This line is appended!
|
69
|
+
This line is appended!
|
70
|
+
This line is appended!
|
71
|
+
This line is appended!
|
72
|
+
This line is appended!
|
73
|
+
This line is appended!
|
74
|
+
This line is appended!
|
75
|
+
This line is appended!
|
76
|
+
This line is appended!
|
77
|
+
This line is appended!
|
78
|
+
This line is appended!
|
79
|
+
This line is appended!
|
80
|
+
This line is appended!
|
81
|
+
This line is appended!
|
82
|
+
This line is appended!
|
83
|
+
This line is appended!
|
84
|
+
This line is appended!
|
85
|
+
This line is appended!
|
86
|
+
This line is appended!
|
87
|
+
This line is appended!
|
88
|
+
This line is appended!
|
89
|
+
This line is appended!
|
90
|
+
This line is appended!
|
91
|
+
This line is appended!
|
92
|
+
This line is appended!
|
93
|
+
This line is appended!
|
94
|
+
This line is appended!
|
95
|
+
This line is appended!
|
96
|
+
This line is appended!
|
97
|
+
This line is appended!
|
98
|
+
This line is appended!
|
99
|
+
This line is appended!
|
100
|
+
This line is appended!
|
101
|
+
This line is appended!
|
102
|
+
This line is appended!
|
103
|
+
This line is appended!
|
104
|
+
This line is appended!
|
105
|
+
This line is appended!
|
106
|
+
This line is appended!
|
107
|
+
This line is appended!
|
108
|
+
This line is appended!
|
109
|
+
This line is appended!
|
110
|
+
This line is appended!
|
111
|
+
This line is appended!
|
112
|
+
This line is appended!
|
113
|
+
This line is appended!
|
114
|
+
This line is appended!
|
115
|
+
This line is appended!
|
116
|
+
This line is appended!
|
117
|
+
This line is appended!
|
118
|
+
This line is appended!
|
119
|
+
This line is appended!
|
120
|
+
This line is appended!
|
121
|
+
This line is appended!
|
122
|
+
This line is appended!
|
123
|
+
This line is appended!
|
124
|
+
This line is appended!
|
125
|
+
This line is appended!
|
126
|
+
This line is appended!
|
127
|
+
This line is appended!
|
data/tests/lib_and_tests
ADDED
Binary file
|