From 743e4946731ab47ec65d33042ae0179ff77e801e Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 8 Dec 2022 22:56:19 -0600 Subject: [PATCH] Cleanup: Update the build disable process. Make changes to the documentation and rebuild the files based on recent changes. --- build/disable/about.txt | 15 ++++++++--- build/disable/level_0/f_conversion.h | 1 - build/disable/level_0/f_memory.h | 23 +++++++++++++++++ build/disable/level_0/f_status.h | 42 +++++++++++++++--------------- build/disable/level_0/f_status_string.h | 45 ++++++++++++++++----------------- build/disable/level_0/f_string.h | 1 + build/disable/level_0/f_type.h | 31 +++++++++++++++++++---- build/disable/level_1/fl_fss.h | 5 ++++ 8 files changed, 110 insertions(+), 53 deletions(-) diff --git a/build/disable/about.txt b/build/disable/about.txt index 8d3716a..5c3ede5 100644 --- a/build/disable/about.txt +++ b/build/disable/about.txt @@ -6,14 +6,23 @@ These files are generated like the following: # cd fll/ # cd level_0; -# for i in * ; do grep -hor '#ifndef _di_f_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_0/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_0/$i.h ; done # cd .. # cd level_1; -# for i in * ; do grep -hor '#ifndef _di_fl_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_1/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_1/$i.h ; done # cd .. # cd level_2; -# for i in * ; do grep -hor '#ifndef _di_fll_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_2/$i.h ; done +# for i in * ; do grep -hor '#ifndef _di_.*\>' $i | sed -e 's|^#ifndef |#define |g' | sort | uniq > ../build/disable/level_2/$i.h ; done + +# cd .. + +Make sure the parameter checking files do not exist. +# sed -i -e '/_di_level_0_parameter_checking_/d' -e '/_di_level_1_parameter_checking_/d' -e '/_di_level_2_parameter_checking_/d' build/disable/level_?/*.h + +There are some defines that need to be manually removed if they don't belong, such as "_di_pthread_support_" and "_di_libcap_". + +Use these files to construct a list of all defines to potentially disable based on the "dependencies" of a given project. diff --git a/build/disable/level_0/f_conversion.h b/build/disable/level_0/f_conversion.h index 9659987..9314057 100644 --- a/build/disable/level_0/f_conversion.h +++ b/build/disable/level_0/f_conversion.h @@ -16,4 +16,3 @@ #define _di_f_conversion_number_signed_to_string_ #define _di_f_conversion_number_unsigned_print_ #define _di_f_conversion_number_unsigned_to_string_ -#define _di_f_type_number_64_t_ diff --git a/build/disable/level_0/f_memory.h b/build/disable/level_0/f_memory.h index 6e3dc3a..59475ba 100644 --- a/build/disable/level_0/f_memory.h +++ b/build/disable/level_0/f_memory.h @@ -11,3 +11,26 @@ #define _di_f_memory_structure_increase_ #define _di_f_memory_structure_increase_by_ #define _di_f_memory_structure_resize_ +#define _di_macro_f_memory_structure_adjust_ +#define _di_macro_f_memory_structure_clear_ +#define _di_macro_f_memory_structure_decimate_by_ +#define _di_macro_f_memory_structure_decrease_by_ +#define _di_macro_f_memory_structure_delete_ +#define _di_macro_f_memory_structure_delete_simple_ +#define _di_macro_f_memory_structure_destroy_ +#define _di_macro_f_memory_structure_destroy_simple_ +#define _di_macro_f_memory_structure_increase_ +#define _di_macro_f_memory_structure_increase_by_ +#define _di_macro_f_memory_structure_increment_ +#define _di_macro_f_memory_structure_resize_ +#define _di_macro_f_memory_structures_adjust_ +#define _di_macro_f_memory_structures_clear_ +#define _di_macro_f_memory_structures_decimate_by_ +#define _di_macro_f_memory_structures_decrease_by_ +#define _di_macro_f_memory_structures_delete_ +#define _di_macro_f_memory_structures_delete_simple_ +#define _di_macro_f_memory_structures_destroy_ +#define _di_macro_f_memory_structures_destroy_simple_ +#define _di_macro_f_memory_structures_increase_ +#define _di_macro_f_memory_structures_increase_by_ +#define _di_macro_f_memory_structures_resize_ diff --git a/build/disable/level_0/f_status.h b/build/disable/level_0/f_status.h index 61182ae..732ee81 100644 --- a/build/disable/level_0/f_status.h +++ b/build/disable/level_0/f_status.h @@ -1,21 +1,21 @@ -#define _di_f_status_access_ -#define _di_f_status_array_ -#define _di_f_status_available_ -#define _di_f_status_basic_ -#define _di_f_status_boolean_ -#define _di_f_status_buffer_ -#define _di_f_status_busy_ -#define _di_f_status_codes_ -#define _di_f_status_compare_ -#define _di_f_status_directory_ -#define _di_f_status_end_ -#define _di_f_status_file_ -#define _di_f_status_filesystem_ -#define _di_f_status_masks_ -#define _di_f_status_network_ -#define _di_f_status_number_ -#define _di_f_status_process_ -#define _di_f_status_return_ -#define _di_f_status_signal_ -#define _di_f_status_socket_ -#define _di_f_status_terminal_ +#define _di_f_status_access_e_ +#define _di_f_status_array_e_ +#define _di_f_status_available_e_ +#define _di_f_status_basic_e_ +#define _di_f_status_boolean_e_ +#define _di_f_status_buffer_e_ +#define _di_f_status_busy_e_ +#define _di_f_status_code_e_ +#define _di_f_status_compare_e_ +#define _di_f_status_directory_e_ +#define _di_f_status_end_e_ +#define _di_f_status_file_e_ +#define _di_f_status_filesystem_e_ +#define _di_f_status_mask_d_ +#define _di_f_status_network_e_ +#define _di_f_status_number_e_ +#define _di_f_status_process_e_ +#define _di_f_status_return_e_ +#define _di_f_status_signal_e_ +#define _di_f_status_socket_e_ +#define _di_f_status_terminal_e_ diff --git a/build/disable/level_0/f_status_string.h b/build/disable/level_0/f_status_string.h index c4984fc..b7cf6d5 100644 --- a/build/disable/level_0/f_status_string.h +++ b/build/disable/level_0/f_status_string.h @@ -1,23 +1,22 @@ -#define _di_f_error_compare_ -#define _di_f_status_access_ -#define _di_f_status_array_ -#define _di_f_status_available_ -#define _di_f_status_basic_ -#define _di_f_status_boolean_ -#define _di_f_status_buffer_ -#define _di_f_status_buffers_ -#define _di_f_status_busy_ -#define _di_f_status_compare_ -#define _di_f_status_directory_ -#define _di_f_status_end_ -#define _di_f_status_file_ -#define _di_f_status_filesystem_ -#define _di_f_status_network_ -#define _di_f_status_number_ -#define _di_f_status_process_ -#define _di_f_status_return_ -#define _di_f_status_signal_ -#define _di_f_status_socket_ -#define _di_f_status_string_ -#define _di_f_status_string_to_ -#define _di_f_status_terminal_ +#define _di_f_status_access_s_ +#define _di_f_status_array_s_ +#define _di_f_status_available_s_ +#define _di_f_status_basic_s_ +#define _di_f_status_boolean_s_ +#define _di_f_status_buffer_s_ +#define _di_f_status_buffers_s_ +#define _di_f_status_busy_s_ +#define _di_f_status_compare_s_ +#define _di_f_status_directory_s_ +#define _di_f_status_end_s_ +#define _di_f_status_file_s_ +#define _di_f_status_filesystem_s_ +#define _di_f_status_network_s_ +#define _di_f_status_number_s_ +#define _di_f_status_process_s_ +#define _di_f_status_return_s_ +#define _di_f_status_signal_s_ +#define _di_f_status_socket_s_ +#define _di_f_status_string_s_ +#define _di_f_status_string_to_s_ +#define _di_f_status_terminal_s_ diff --git a/build/disable/level_0/f_string.h b/build/disable/level_0/f_string.h index e3d06c6..fd72caf 100644 --- a/build/disable/level_0/f_string.h +++ b/build/disable/level_0/f_string.h @@ -174,3 +174,4 @@ #define _di_f_string_tripless_t_ #define _di_f_string_triples_t_ #define _di_f_string_triple_t_ +#define _di_string_ascii_s_ diff --git a/build/disable/level_0/f_type.h b/build/disable/level_0/f_type.h index bdd075d..54f4c03 100644 --- a/build/disable/level_0/f_type.h +++ b/build/disable/level_0/f_type.h @@ -1,6 +1,5 @@ -#define _di_f_array_lengthss_t_ -#define _di_f_array_lengths_t_ -#define _di_f_array_t_ +#define _di_compiler_attributes_d_ +#define _di_f_array_length_t_ #define _di_f_cellss_t_ #define _di_f_cells_t_ #define _di_f_cell_t_ @@ -17,7 +16,29 @@ #define _di_f_status_t_ #define _di_f_time_spec_t_ #define _di_f_time_t_ -#define _di_f_type_input_output_ +#define _di_f_type_input_output_d_ #define _di_f_type_number_64_t_ -#define _di_f_type_sizes_ +#define _di_f_type_sizes_d_ #define _di_f_type_state_t_ +#define _di_int128ss_t_ +#define _di_int128s_t_ +#define _di_int128_t_ +#define _di_int16ss_t_ +#define _di_int16s_t_ +#define _di_int32ss_t_ +#define _di_int32s_t_ +#define _di_int64ss_t_ +#define _di_int64s_t_ +#define _di_int8ss_t_ +#define _di_int8s_t_ +#define _di_uint128ss_t_ +#define _di_uint128s_t_ +#define _di_uint128_t_ +#define _di_uint16ss_t_ +#define _di_uint16s_t_ +#define _di_uint32ss_t_ +#define _di_uint32s_t_ +#define _di_uint64ss_t_ +#define _di_uint64s_t_ +#define _di_uint8ss_t_ +#define _di_uint8s_t_ diff --git a/build/disable/level_1/fl_fss.h b/build/disable/level_1/fl_fss.h index c613f14..c2137f9 100644 --- a/build/disable/level_1/fl_fss.h +++ b/build/disable/level_1/fl_fss.h @@ -18,3 +18,8 @@ #define _di_fl_fss_extended_list_object_write_ #define _di_fl_fss_extended_object_read_ #define _di_fl_fss_extended_object_write_ +#define _di_private_macro_fl_fss_content_with_comments_return_on_overflow_ +#define _di_private_macro_fl_fss_nest_return_on_overflow_ +#define _di_private_macro_fl_fss_nest_return_on_overflow_delimited_ +#define _di_private_macro_fl_fss_object_return_on_overflow_ +#define _di_private_macro_fl_fss_object_return_on_overflow_delimited_ -- 1.8.3.1