From d599118c4eddc4a14a37b0dd7d758a76f0271dd3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 2 Dec 2025 20:52:36 -0600 Subject: [PATCH] Refactor: Code to use { .a = b } notation for initializers and address related problems. Change the coding style for the initializers and macro initializers to follow the `{ .a = b }` format. --- level_0/f_abstruse/c/abstruse/abstruse.h | 54 ++- level_0/f_abstruse/c/abstruse/map.h | 48 +- level_0/f_account/c/account/common.h | 62 ++- level_0/f_color/c/color/common.h | 548 +++++++++++----------- level_0/f_console/c/console/common.h | 258 +++++----- level_0/f_control_group/c/control_group/common.h | 12 +- level_0/f_conversion/c/conversion/common.h | 12 +- level_0/f_directory/c/directory/listing.h | 72 ++- level_0/f_directory/c/directory/recurse_do.h | 38 +- level_0/f_directory/c/directory/status.h | 49 +- level_0/f_execute/c/execute/common.h | 12 +- level_0/f_fss/c/fss/item.h | 45 +- level_0/f_fss/c/fss/named.h | 45 +- level_0/f_fss/c/fss/nest.h | 57 ++- level_0/f_fss/c/fss/set.h | 48 +- level_0/f_fss/c/fss/set_quote.h | 52 +- level_0/f_fss/c/fss/simple_packet.h | 114 ++++- level_0/f_iki/c/iki/common.h | 106 ++++- level_0/f_limit/c/limit/set.h | 48 +- level_0/f_limit/c/limit/value.h | 38 +- level_0/f_network/c/network/common.h | 25 +- level_0/f_schedule/c/schedule/common.h | 103 ++-- level_0/f_signal/c/signal/common.h | 22 +- level_0/f_socket/c/socket/address.h | 102 +++- level_0/f_socket/c/socket/socket.h | 180 ++++--- level_0/f_string/c/string/map.h | 10 +- level_0/f_string/c/string/map_multi.h | 10 +- level_0/f_string/c/string/map_multis.h | 19 +- level_0/f_string/c/string/map_multiss.h | 19 +- level_0/f_string/c/string/maps.h | 19 +- level_0/f_string/c/string/mapss.h | 19 +- level_0/f_string/c/string/static.h | 19 +- level_0/f_string/c/string/statics.h | 19 +- level_0/f_string/c/string/staticss.h | 19 +- level_0/f_string/c/string/triple.h | 12 +- level_0/f_string/c/string/triples.h | 19 +- level_0/f_string/c/string/tripless.h | 19 +- level_0/f_thread/c/thread/attributes.h | 19 +- level_0/f_thread/c/thread/attributess.h | 19 +- level_0/f_thread/c/thread/barrier.h | 4 +- level_0/f_thread/c/thread/barrier_attribute.h | 2 - level_0/f_thread/c/thread/barrier_attributes.h | 19 +- level_0/f_thread/c/thread/barrier_attributess.h | 19 +- level_0/f_thread/c/thread/barrier_full.h | 10 +- level_0/f_thread/c/thread/barrier_fulls.h | 19 +- level_0/f_thread/c/thread/barrier_fullss.h | 19 +- level_0/f_thread/c/thread/barriers.h | 19 +- level_0/f_thread/c/thread/barrierss.h | 25 +- level_0/f_thread/c/thread/condition_attributes.h | 19 +- level_0/f_thread/c/thread/condition_attributess.h | 19 +- level_0/f_thread/c/thread/condition_full.h | 10 +- level_0/f_thread/c/thread/condition_fulls.h | 19 +- level_0/f_thread/c/thread/condition_fullss.h | 19 +- level_0/f_thread/c/thread/conditions.h | 19 +- level_0/f_thread/c/thread/conditionss.h | 19 +- level_0/f_thread/c/thread/ids.h | 19 +- level_0/f_thread/c/thread/idss.h | 19 +- level_0/f_thread/c/thread/keys.h | 19 +- level_0/f_thread/c/thread/keyss.h | 19 +- level_0/f_thread/c/thread/lock_attributes.h | 19 +- level_0/f_thread/c/thread/lock_attributess.h | 19 +- level_0/f_thread/c/thread/lock_full.h | 10 +- level_0/f_thread/c/thread/lock_fulls.h | 19 +- level_0/f_thread/c/thread/lock_fullss.h | 19 +- level_0/f_thread/c/thread/locks.h | 19 +- level_0/f_thread/c/thread/lockss.h | 19 +- level_0/f_thread/c/thread/mutex_attributes.h | 19 +- level_0/f_thread/c/thread/mutex_attributess.h | 19 +- level_0/f_thread/c/thread/mutex_full.h | 10 +- level_0/f_thread/c/thread/mutex_fulls.h | 19 +- level_0/f_thread/c/thread/mutex_fullss.h | 19 +- level_0/f_thread/c/thread/mutexs.h | 19 +- level_0/f_thread/c/thread/mutexss.h | 19 +- level_0/f_thread/c/thread/onces.h | 19 +- level_0/f_thread/c/thread/oncess.h | 19 +- level_0/f_thread/c/thread/semaphores.h | 19 +- level_0/f_thread/c/thread/semaphoress.h | 19 +- level_0/f_thread/c/thread/spins.h | 19 +- level_0/f_thread/c/thread/spinss.h | 19 +- level_0/f_type/c/type/cell.h | 48 +- level_0/f_type/c/type/file.h | 152 +++++- level_0/f_type/c/type/fll.h | 50 +- level_0/f_type/c/type/mode.h | 52 +- level_0/f_type/c/type/number.h | 468 +++++++++++++++--- level_0/f_type/c/type/pid.h | 38 +- level_0/f_type/c/type/quantity.h | 48 +- level_0/f_type/c/type/range.h | 54 ++- level_0/f_type/c/type/range_double.h | 60 ++- level_0/f_type/c/type/state.h | 38 +- level_0/f_type/c/type/status.h | 38 +- level_0/f_type/c/type/time.h | 30 +- level_0/f_utf/c/utf/map.h | 10 +- level_0/f_utf/c/utf/map_multi.h | 10 +- level_0/f_utf/c/utf/map_multis.h | 19 +- level_0/f_utf/c/utf/map_multiss.h | 19 +- level_0/f_utf/c/utf/maps.h | 19 +- level_0/f_utf/c/utf/mapss.h | 19 +- level_0/f_utf/c/utf/static.h | 19 +- level_0/f_utf/c/utf/statics.h | 19 +- level_0/f_utf/c/utf/staticss.h | 19 +- level_0/f_utf/c/utf/triple.h | 18 +- level_0/f_utf/c/utf/triples.h | 19 +- level_0/f_utf/c/utf/tripless.h | 19 +- level_1/fl_conversion/c/conversion/common.h | 10 +- level_1/fl_execute/c/execute/common.h | 40 +- level_1/fl_fss/c/fss/embedded_list.h | 12 +- level_1/fl_fss/c/fss/payload/type.h | 109 ++--- level_1/fl_print/c/print/common.h | 50 +- level_2/fll_program/c/program/common.h | 75 ++- level_3/byte_dump/c/main/common/type.h | 48 +- level_3/example/c/main/common/type.h | 31 +- level_3/fake/c/main/common/type.h | 548 +++++++++++----------- level_3/fss_identify/c/main/common/type.h | 36 +- level_3/fss_read/c/main/common/type.h | 166 +++---- level_3/fss_write/c/main/common/type.h | 64 ++- level_3/iki_read/c/main/common/type.h | 76 ++- level_3/iki_write/c/main/common/type.h | 52 +- level_3/status_code/c/main/common/type.h | 44 +- 118 files changed, 3986 insertions(+), 1749 deletions(-) diff --git a/level_0/f_abstruse/c/abstruse/abstruse.h b/level_0/f_abstruse/c/abstruse/abstruse.h index a97b797..995b158 100644 --- a/level_0/f_abstruse/c/abstruse/abstruse.h +++ b/level_0/f_abstruse/c/abstruse/abstruse.h @@ -36,10 +36,20 @@ extern "C" { f_abstruse_type_t is; } f_abstruse_t; - #define f_abstruse_t_initialize { 0, f_abstruse_type_t_initialize } + #define f_abstruse_t_initialize { \ + .type = 0, \ + .is = f_abstruse_type_t_initialize, \ + } + + #define macro_f_abstruse_t_initialize_1(type_value, is_value) { \ + .type = type_value, \ + .is = is_value, \ + } - #define macro_f_abstruse_t_initialize_1(type, is) { type, is } - #define macro_f_abstruse_t_initialize_2(type) { type, f_abstruse_type_t_initialize } + #define macro_f_abstruse_t_initialize_2(type_value) { \ + .type = type_value, \ + .is = f_abstruse_type_t_initialize, \ + } #define macro_f_abstruse_t_clear(abstruse) { \ abstruse.type = 0; \ @@ -63,10 +73,23 @@ extern "C" { f_number_unsigned_t size; } f_abstruses_t; - #define f_abstruses_t_initialize { 0, 0, 0 } + #define f_abstruses_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_abstruses_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_abstruses_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_abstruses_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_abstruses_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_abstruses_t_clear(abstruses) { \ abstruses.array = 0; \ @@ -91,10 +114,23 @@ extern "C" { f_number_unsigned_t size; } f_abstrusess_t; - #define f_abstrusess_t_initialize { 0, 0, 0 } + #define f_abstrusess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_abstrusess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_abstrusess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_abstrusess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_abstrusess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_abstrusess_t_clear(abstrusess) { \ abstrusess.array = 0; \ diff --git a/level_0/f_abstruse/c/abstruse/map.h b/level_0/f_abstruse/c/abstruse/map.h index 28115e4..3c89958 100644 --- a/level_0/f_abstruse/c/abstruse/map.h +++ b/level_0/f_abstruse/c/abstruse/map.h @@ -29,9 +29,15 @@ extern "C" { f_abstruse_t value; } f_abstruse_map_t; - #define f_abstruse_map_t_initialize { f_string_dynamic_t_initialize, f_abstruse_t_initialize } + #define f_abstruse_map_t_initialize { \ + .key = f_string_dynamic_t_initialize, \ + .value = f_abstruse_t_initialize, \ + } - #define macro_f_abstruse_map_t_initialize_1(key, value) { key, value } + #define macro_f_abstruse_map_t_initialize_1(key_value, value_value) { \ + .key = key_value, \ + .value = value_value, \ + } #define macro_f_abstruse_map_t_clear(map) { \ macro_f_string_dynamic_t_clear(map.key) \ @@ -55,10 +61,23 @@ extern "C" { f_number_unsigned_t size; } f_abstruse_maps_t; - #define f_abstruse_maps_t_initialize { 0, 0, 0 } + #define f_abstruse_maps_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_abstruse_maps_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_abstruse_maps_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_abstruse_maps_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_abstruse_maps_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_abstruse_maps_t_clear(abstruse_maps) { \ abstruse_maps.array = 0; \ @@ -83,10 +102,23 @@ extern "C" { f_number_unsigned_t size; } f_abstruse_mapss_t; - #define f_abstruse_mapss_t_initialize { 0, 0, 0 } + #define f_abstruse_mapss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_abstruse_mapss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_abstruse_mapss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_abstruse_mapss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_abstruse_mapss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_abstruse_mapss_t_clear(abstruse_mapss) { \ abstruse_mapss.array = 0; \ diff --git a/level_0/f_account/c/account/common.h b/level_0/f_account/c/account/common.h index 983e1b5..622f365 100644 --- a/level_0/f_account/c/account/common.h +++ b/level_0/f_account/c/account/common.h @@ -53,13 +53,23 @@ extern "C" { } f_account_t; #define f_account_t_initialize { \ - f_uid_t_initialize, \ - f_gid_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize \ + .id_user = f_uid_t_initialize, \ + .id_group = f_gid_t_initialize, \ + .home = f_string_dynamic_t_initialize, \ + .label = f_string_dynamic_t_initialize, \ + .name = f_string_dynamic_t_initialize, \ + .password = f_string_dynamic_t_initialize, \ + .shell = f_string_dynamic_t_initialize, \ + } + + #define macro_f_account_t_initialize_1(id_user_value, id_group_value, home_value, label_value, name_value, password_value, shell_value) { \ + .id_user = id_user_value, \ + .id_group = id_group_value, \ + .home = home_value, \ + .label = label_value, \ + .name = name_value, \ + .password = password_value, \ + .shell = shell_value, \ } #define macro_f_account_t_clear(account) { \ @@ -89,10 +99,23 @@ extern "C" { f_number_unsigned_t size; } f_accounts_t; - #define f_accounts_t_initialize { 0, 0, 0 } + #define f_accounts_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_accounts_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_accounts_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_accounts_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_accounts_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_accounts_t_clear(accounts) { \ accounts.array = 0; \ @@ -117,10 +140,23 @@ extern "C" { f_number_unsigned_t size; } f_accountss_t; - #define f_accountss_t_initialize { 0, 0, 0 } + #define f_accountss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0 \ + } + + #define macro_f_accountss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_accountss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_accountss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_accountss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_accountss_t_clear(accountss) { \ accountss.array = 0; \ diff --git a/level_0/f_color/c/color/common.h b/level_0/f_color/c/color/common.h index 9102d59..87af006 100644 --- a/level_0/f_color/c/color/common.h +++ b/level_0/f_color/c/color/common.h @@ -420,24 +420,28 @@ extern "C" { } f_color_format_t; #define f_color_format_t_initialize { \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize \ + .begin = f_string_static_t_initialize, \ + .end = f_string_static_t_initialize, \ + .medium = f_string_static_t_initialize, \ } #define f_color_format_t_initialize_linux { \ - f_color_begin_s, \ - f_color_end_s, \ - f_color_medium_s \ + .begin = f_color_begin_s, \ + .end = f_color_end_s, \ + .medium = f_color_medium_s, \ } #define f_color_format_t_initialize_xterminal { \ - f_color_begin_s, \ - f_color_end_s, \ - f_color_medium_s \ + .begin = f_color_begin_s, \ + .end = f_color_end_s, \ + .medium = f_color_medium_s, \ } - #define macro_f_color_format_t_initialize_1(begin, end, medium) { begin, end, medium } + #define macro_f_color_format_t_initialize_1(begin_value, end_value, medium_value) { \ + .begin = begin_value, \ + .end = end_value, \ + .medium = medium_value, \ + } #define macro_f_color_format_t_clear(format) { \ macro_f_string_static_t_clear(format.begin) \ @@ -550,249 +554,249 @@ extern "C" { } f_color_t; #define f_color_t_initialize { \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ + .reset = f_string_static_t_initialize, \ + .bold = f_string_static_t_initialize, \ + .underline = f_string_static_t_initialize, \ + .blink = f_string_static_t_initialize, \ + .reverse = f_string_static_t_initialize, \ + .conceal = f_string_static_t_initialize, \ + .black = f_string_static_t_initialize, \ + .red = f_string_static_t_initialize, \ + .green = f_string_static_t_initialize, \ + .yellow = f_string_static_t_initialize, \ + .blue = f_string_static_t_initialize, \ + .purple = f_string_static_t_initialize, \ + .teal = f_string_static_t_initialize, \ + .white = f_string_static_t_initialize, \ + .black_bg = f_string_static_t_initialize, \ + .red_bg = f_string_static_t_initialize, \ + .green_bg = f_string_static_t_initialize, \ + .yellow_bg = f_string_static_t_initialize, \ + .blue_bg = f_string_static_t_initialize, \ + .purple_bg = f_string_static_t_initialize, \ + .teal_bg = f_string_static_t_initialize, \ + .white_bg = f_string_static_t_initialize, \ + .bright_black = f_string_static_t_initialize, \ + .bright_red = f_string_static_t_initialize, \ + .bright_green = f_string_static_t_initialize, \ + .bright_yellow = f_string_static_t_initialize, \ + .bright_blue = f_string_static_t_initialize, \ + .bright_purple = f_string_static_t_initialize, \ + .bright_teal = f_string_static_t_initialize, \ + .bright_white = f_string_static_t_initialize, \ + .bright_black_bg = f_string_static_t_initialize, \ + .bright_red_bg = f_string_static_t_initialize, \ + .bright_green_bg = f_string_static_t_initialize, \ + .bright_yellow_bg = f_string_static_t_initialize, \ + .bright_blue_bg = f_string_static_t_initialize, \ + .bright_purple_bg = f_string_static_t_initialize, \ + .bright_teal_bg = f_string_static_t_initialize, \ + .bright_white_bg = f_string_static_t_initialize, \ } #define f_color_t_initialize_linux { \ - f_color_code_reset_s, \ - f_color_code_bold_s, \ - f_color_code_underline_s, \ - f_color_code_blink_s, \ - f_color_code_reverse_s, \ - f_color_code_conceal_s, \ - f_color_code_black_s, \ - f_color_code_red_s, \ - f_color_code_green_s, \ - f_color_code_yellow_s, \ - f_color_code_blue_s, \ - f_color_code_purple_s, \ - f_color_code_teal_s, \ - f_color_code_white_s, \ - f_color_code_black_bg_s, \ - f_color_code_red_bg_s, \ - f_color_code_green_bg_s, \ - f_color_code_yellow_bg_s, \ - f_color_code_blue_bg_s, \ - f_color_code_purple_bg_s, \ - f_color_code_teal_bg_s, \ - f_color_code_white_bg_s, \ - f_color_code_black_s, \ - f_color_code_red_s, \ - f_color_code_green_s, \ - f_color_code_yellow_s, \ - f_color_code_blue_s, \ - f_color_code_purple_s, \ - f_color_code_teal_s, \ - f_color_code_white_s, \ - f_color_code_black_bg_s, \ - f_color_code_red_bg_s, \ - f_color_code_green_bg_s, \ - f_color_code_yellow_bg_s, \ - f_color_code_blue_bg_s, \ - f_color_code_purple_bg_s, \ - f_color_code_teal_bg_s, \ - f_color_code_white_bg_s, \ + .reset = f_color_code_reset_s, \ + .bold = f_color_code_bold_s, \ + .underline = f_color_code_underline_s, \ + .blink = f_color_code_blink_s, \ + .reverse = f_color_code_reverse_s, \ + .conceal = f_color_code_conceal_s, \ + .black = f_color_code_black_s, \ + .red = f_color_code_red_s, \ + .green = f_color_code_green_s, \ + .yellow = f_color_code_yellow_s, \ + .blue = f_color_code_blue_s, \ + .purple = f_color_code_purple_s, \ + .teal = f_color_code_teal_s, \ + .white = f_color_code_white_s, \ + .black_bg = f_color_code_black_bg_s, \ + .red_bg = f_color_code_red_bg_s, \ + .green_bg = f_color_code_green_bg_s, \ + .yellow_bg = f_color_code_yellow_bg_s, \ + .blue_bg = f_color_code_blue_bg_s, \ + .purple_bg = f_color_code_purple_bg_s, \ + .teal_bg = f_color_code_teal_bg_s, \ + .white_bg = f_color_code_white_bg_s, \ + .bright_black = f_color_code_black_s, \ + .bright_red = f_color_code_red_s, \ + .bright_green = f_color_code_green_s, \ + .bright_yellow = f_color_code_yellow_s, \ + .bright_blue = f_color_code_blue_s, \ + .bright_purple = f_color_code_purple_s, \ + .bright_teal = f_color_code_teal_s, \ + .bright_white = f_color_code_white_s, \ + .bright_black_bg = f_color_code_black_bg_s, \ + .bright_red_bg = f_color_code_red_bg_s, \ + .bright_green_bg = f_color_code_green_bg_s, \ + .bright_yellow_bg = f_color_code_yellow_bg_s, \ + .bright_blue_bg = f_color_code_blue_bg_s, \ + .bright_purple_bg = f_color_code_purple_bg_s, \ + .bright_teal_bg = f_color_code_teal_bg_s, \ + .bright_white_bg = f_color_code_white_bg_s, \ } #define f_color_t_initialize_xterminal { \ - f_color_code_reset_s, \ - f_color_code_bold_s, \ - f_color_code_underline_s, \ - f_color_code_blink_s, \ - f_color_code_reverse_s, \ - f_color_code_conceal_s, \ - f_color_code_black_s, \ - f_color_code_red_s, \ - f_color_code_green_s, \ - f_color_code_yellow_s, \ - f_color_code_blue_s, \ - f_color_code_purple_s, \ - f_color_code_teal_s, \ - f_color_code_white_s, \ - f_color_code_black_bg_s, \ - f_color_code_red_bg_s, \ - f_color_code_green_bg_s, \ - f_color_code_yellow_bg_s, \ - f_color_code_blue_bg_s, \ - f_color_code_purple_bg_s, \ - f_color_code_teal_bg_s, \ - f_color_code_white_bg_s, \ - f_color_code_bright_black_s, \ - f_color_code_bright_red_s, \ - f_color_code_bright_green_s, \ - f_color_code_bright_yellow_s, \ - f_color_code_bright_blue_s, \ - f_color_code_bright_purple_s, \ - f_color_code_bright_teal_s, \ - f_color_code_bright_white_s, \ - f_color_code_bright_black_bg_s, \ - f_color_code_bright_red_bg_s, \ - f_color_code_bright_green_bg_s, \ - f_color_code_bright_yellow_bg_s, \ - f_color_code_bright_blue_bg_s, \ - f_color_code_bright_purple_bg_s, \ - f_color_code_bright_teal_bg_s, \ - f_color_code_bright_white_bg_s, \ + .reset = f_color_code_reset_s, \ + .bold = f_color_code_bold_s, \ + .underline = f_color_code_underline_s, \ + .blink = f_color_code_blink_s, \ + .reverse = f_color_code_reverse_s, \ + .conceal = f_color_code_conceal_s, \ + .black = f_color_code_black_s, \ + .red = f_color_code_red_s, \ + .green = f_color_code_green_s, \ + .yellow = f_color_code_yellow_s, \ + .blue = f_color_code_blue_s, \ + .purple = f_color_code_purple_s, \ + .teal = f_color_code_teal_s, \ + .white = f_color_code_white_s, \ + .black_bg = f_color_code_black_bg_s, \ + .red_bg = f_color_code_red_bg_s, \ + .green_bg = f_color_code_green_bg_s, \ + .yellow_bg = f_color_code_yellow_bg_s, \ + .blue_bg = f_color_code_blue_bg_s, \ + .purple_bg = f_color_code_purple_bg_s, \ + .teal_bg = f_color_code_teal_bg_s, \ + .white_bg = f_color_code_white_bg_s, \ + .bright_black = f_color_code_bright_black_s, \ + .bright_red = f_color_code_bright_red_s, \ + .bright_green = f_color_code_bright_green_s, \ + .bright_yellow = f_color_code_bright_yellow_s, \ + .bright_blue = f_color_code_bright_blue_s, \ + .bright_purple = f_color_code_bright_purple_s, \ + .bright_teal = f_color_code_bright_teal_s, \ + .bright_white = f_color_code_bright_white_s, \ + .bright_black_bg = f_color_code_bright_black_bg_s, \ + .bright_red_bg = f_color_code_bright_red_bg_s, \ + .bright_green_bg = f_color_code_bright_green_bg_s, \ + .bright_yellow_bg = f_color_code_bright_yellow_bg_s, \ + .bright_blue_bg = f_color_code_bright_blue_bg_s, \ + .bright_purple_bg = f_color_code_bright_purple_bg_s, \ + .bright_teal_bg = f_color_code_bright_teal_bg_s, \ + .bright_white_bg = f_color_code_bright_white_bg_s, \ } #define macro_f_color_t_set_none(color) { \ - color.reset = f_string_empty_s; \ - color.bold = f_string_empty_s; \ - color.underline = f_string_empty_s; \ - color.blink = f_string_empty_s; \ - color.reverse = f_string_empty_s; \ - color.conceal = f_string_empty_s; \ - color.black = f_string_empty_s; \ - color.red = f_string_empty_s; \ - color.green = f_string_empty_s; \ - color.yellow = f_string_empty_s; \ - color.blue = f_string_empty_s; \ - color.purple = f_string_empty_s; \ - color.teal = f_string_empty_s; \ - color.white = f_string_empty_s; \ - color.black_bg = f_string_empty_s; \ - color.red_bg = f_string_empty_s; \ - color.green_bg = f_string_empty_s; \ - color.yellow_bg = f_string_empty_s; \ - color.blue_bg = f_string_empty_s; \ - color.purple_bg = f_string_empty_s; \ - color.teal_bg = f_string_empty_s; \ - color.white_bg = f_string_empty_s; \ - color.bright_black = f_string_empty_s; \ - color.bright_red = f_string_empty_s; \ - color.bright_green = f_string_empty_s; \ - color.bright_yellow = f_string_empty_s; \ - color.bright_blue = f_string_empty_s; \ - color.bright_purple = f_string_empty_s; \ - color.bright_teal = f_string_empty_s; \ - color.bright_white = f_string_empty_s; \ - color.bright_black_bg = f_string_empty_s; \ - color.bright_red_bg = f_string_empty_s; \ - color.bright_green_bg = f_string_empty_s; \ + color.reset = f_string_empty_s; \ + color.bold = f_string_empty_s; \ + color.underline = f_string_empty_s; \ + color.blink = f_string_empty_s; \ + color.reverse = f_string_empty_s; \ + color.conceal = f_string_empty_s; \ + color.black = f_string_empty_s; \ + color.red = f_string_empty_s; \ + color.green = f_string_empty_s; \ + color.yellow = f_string_empty_s; \ + color.blue = f_string_empty_s; \ + color.purple = f_string_empty_s; \ + color.teal = f_string_empty_s; \ + color.white = f_string_empty_s; \ + color.black_bg = f_string_empty_s; \ + color.red_bg = f_string_empty_s; \ + color.green_bg = f_string_empty_s; \ + color.yellow_bg = f_string_empty_s; \ + color.blue_bg = f_string_empty_s; \ + color.purple_bg = f_string_empty_s; \ + color.teal_bg = f_string_empty_s; \ + color.white_bg = f_string_empty_s; \ + color.bright_black = f_string_empty_s; \ + color.bright_red = f_string_empty_s; \ + color.bright_green = f_string_empty_s; \ + color.bright_yellow = f_string_empty_s; \ + color.bright_blue = f_string_empty_s; \ + color.bright_purple = f_string_empty_s; \ + color.bright_teal = f_string_empty_s; \ + color.bright_white = f_string_empty_s; \ + color.bright_black_bg = f_string_empty_s; \ + color.bright_red_bg = f_string_empty_s; \ + color.bright_green_bg = f_string_empty_s; \ color.bright_yellow_bg = f_string_empty_s; \ - color.bright_blue_bg = f_string_empty_s; \ + color.bright_blue_bg = f_string_empty_s; \ color.bright_purple_bg = f_string_empty_s; \ - color.bright_teal_bg = f_string_empty_s; \ - color.bright_white_bg = f_string_empty_s; \ + color.bright_teal_bg = f_string_empty_s; \ + color.bright_white_bg = f_string_empty_s; \ } #define macro_f_color_t_set_linux(color) { \ - color.reset = f_color_code_reset_s; \ - color.bold = f_color_code_bold_s; \ - color.underline = f_color_code_underline_s; \ - color.blink = f_color_code_blink_s; \ - color.reverse = f_color_code_reverse_s; \ - color.conceal = f_color_code_conceal_s; \ - color.black = f_color_code_black_s; \ - color.red = f_color_code_red_s; \ - color.green = f_color_code_green_s; \ - color.yellow = f_color_code_yellow_s; \ - color.blue = f_color_code_blue_s; \ - color.purple = f_color_code_purple_s; \ - color.teal = f_color_code_teal_s; \ - color.white = f_color_code_white_s; \ - color.black_bg = f_color_code_black_bg_s; \ - color.red_bg = f_color_code_red_bg_s; \ - color.green_bg = f_color_code_green_bg_s; \ - color.yellow_bg = f_color_code_yellow_bg_s; \ - color.blue_bg = f_color_code_blue_bg_s; \ - color.purple_bg = f_color_code_purple_bg_s; \ - color.teal_bg = f_color_code_teal_bg_s; \ - color.white_bg = f_color_code_white_bg_s; \ - color.bright_black = f_color_code_black_s; \ - color.bright_red = f_color_code_red_s; \ - color.bright_green = f_color_code_green_s; \ - color.bright_yellow = f_color_code_yellow_s; \ - color.bright_blue = f_color_code_blue_s; \ - color.bright_purple = f_color_code_purple_s; \ - color.bright_teal = f_color_code_teal_s; \ - color.bright_white = f_color_code_white_s; \ - color.bright_black_bg = f_color_code_black_bg_s; \ - color.bright_red_bg = f_color_code_red_bg_s; \ - color.bright_green_bg = f_color_code_green_bg_s; \ + color.reset = f_color_code_reset_s; \ + color.bold = f_color_code_bold_s; \ + color.underline = f_color_code_underline_s; \ + color.blink = f_color_code_blink_s; \ + color.reverse = f_color_code_reverse_s; \ + color.conceal = f_color_code_conceal_s; \ + color.black = f_color_code_black_s; \ + color.red = f_color_code_red_s; \ + color.green = f_color_code_green_s; \ + color.yellow = f_color_code_yellow_s; \ + color.blue = f_color_code_blue_s; \ + color.purple = f_color_code_purple_s; \ + color.teal = f_color_code_teal_s; \ + color.white = f_color_code_white_s; \ + color.black_bg = f_color_code_black_bg_s; \ + color.red_bg = f_color_code_red_bg_s; \ + color.green_bg = f_color_code_green_bg_s; \ + color.yellow_bg = f_color_code_yellow_bg_s; \ + color.blue_bg = f_color_code_blue_bg_s; \ + color.purple_bg = f_color_code_purple_bg_s; \ + color.teal_bg = f_color_code_teal_bg_s; \ + color.white_bg = f_color_code_white_bg_s; \ + color.bright_black = f_color_code_black_s; \ + color.bright_red = f_color_code_red_s; \ + color.bright_green = f_color_code_green_s; \ + color.bright_yellow = f_color_code_yellow_s; \ + color.bright_blue = f_color_code_blue_s; \ + color.bright_purple = f_color_code_purple_s; \ + color.bright_teal = f_color_code_teal_s; \ + color.bright_white = f_color_code_white_s; \ + color.bright_black_bg = f_color_code_black_bg_s; \ + color.bright_red_bg = f_color_code_red_bg_s; \ + color.bright_green_bg = f_color_code_green_bg_s; \ color.bright_yellow_bg = f_color_code_yellow_bg_s; \ - color.bright_blue_bg = f_color_code_blue_bg_s; \ + color.bright_blue_bg = f_color_code_blue_bg_s; \ color.bright_purple_bg = f_color_code_purple_bg_s; \ - color.bright_teal_bg = f_color_code_teal_bg_s; \ - color.bright_white_bg = f_color_code_white_bg_s; \ + color.bright_teal_bg = f_color_code_teal_bg_s; \ + color.bright_white_bg = f_color_code_white_bg_s; \ } #define macro_f_color_t_set_xterminal(color) { \ - color.reset = f_color_code_reset_s; \ - color.bold = f_color_code_bold_s; \ - color.underline = f_color_code_underline_s; \ - color.blink = f_color_code_blink_s; \ - color.reverse = f_color_code_reverse_s; \ - color.conceal = f_color_code_conceal_s; \ - color.black = f_color_code_black_s; \ - color.red = f_color_code_red_s; \ - color.green = f_color_code_green_s; \ - color.yellow = f_color_code_yellow_s; \ - color.blue = f_color_code_blue_s; \ - color.purple = f_color_code_purple_s; \ - color.teal = f_color_code_teal_s; \ - color.white = f_color_code_white_s; \ - color.black_bg = f_color_code_black_bg_s; \ - color.red_bg = f_color_code_red_bg_s; \ - color.green_bg = f_color_code_green_bg_s; \ - color.yellow_bg = f_color_code_yellow_bg_s; \ - color.blue_bg = f_color_code_blue_bg_s; \ - color.purple_bg = f_color_code_purple_bg_s; \ - color.teal_bg = f_color_code_teal_bg_s; \ - color.white_bg = f_color_code_white_bg_s; \ - color.bright_black = f_color_code_bright_black_s; \ - color.bright_red = f_color_code_bright_red_s; \ - color.bright_green = f_color_code_bright_green_s; \ - color.bright_yellow = f_color_code_bright_yellow_s; \ - color.bright_blue = f_color_code_bright_blue_s; \ - color.bright_purple = f_color_code_bright_purple_s; \ - color.bright_teal = f_color_code_bright_teal_s; \ - color.bright_white = f_color_code_bright_white_s; \ - color.bright_black_bg = f_color_code_bright_black_bg_s; \ - color.bright_red_bg = f_color_code_bright_red_bg_s; \ - color.bright_green_bg = f_color_code_bright_green_bg_s; \ + color.reset = f_color_code_reset_s; \ + color.bold = f_color_code_bold_s; \ + color.underline = f_color_code_underline_s; \ + color.blink = f_color_code_blink_s; \ + color.reverse = f_color_code_reverse_s; \ + color.conceal = f_color_code_conceal_s; \ + color.black = f_color_code_black_s; \ + color.red = f_color_code_red_s; \ + color.green = f_color_code_green_s; \ + color.yellow = f_color_code_yellow_s; \ + color.blue = f_color_code_blue_s; \ + color.purple = f_color_code_purple_s; \ + color.teal = f_color_code_teal_s; \ + color.white = f_color_code_white_s; \ + color.black_bg = f_color_code_black_bg_s; \ + color.red_bg = f_color_code_red_bg_s; \ + color.green_bg = f_color_code_green_bg_s; \ + color.yellow_bg = f_color_code_yellow_bg_s; \ + color.blue_bg = f_color_code_blue_bg_s; \ + color.purple_bg = f_color_code_purple_bg_s; \ + color.teal_bg = f_color_code_teal_bg_s; \ + color.white_bg = f_color_code_white_bg_s; \ + color.bright_black = f_color_code_bright_black_s; \ + color.bright_red = f_color_code_bright_red_s; \ + color.bright_green = f_color_code_bright_green_s; \ + color.bright_yellow = f_color_code_bright_yellow_s; \ + color.bright_blue = f_color_code_bright_blue_s; \ + color.bright_purple = f_color_code_bright_purple_s; \ + color.bright_teal = f_color_code_bright_teal_s; \ + color.bright_white = f_color_code_bright_white_s; \ + color.bright_black_bg = f_color_code_bright_black_bg_s; \ + color.bright_red_bg = f_color_code_bright_red_bg_s; \ + color.bright_green_bg = f_color_code_bright_green_bg_s; \ color.bright_yellow_bg = f_color_code_bright_yellow_bg_s; \ - color.bright_blue_bg = f_color_code_bright_blue_bg_s; \ + color.bright_blue_bg = f_color_code_bright_blue_bg_s; \ color.bright_purple_bg = f_color_code_bright_purple_bg_s; \ - color.bright_teal_bg = f_color_code_bright_teal_bg_s; \ - color.bright_white_bg = f_color_code_bright_white_bg_s; \ + color.bright_teal_bg = f_color_code_bright_teal_bg_s; \ + color.bright_white_bg = f_color_code_bright_white_bg_s; \ } #endif // _di_f_color_t_ @@ -812,9 +816,15 @@ extern "C" { const f_string_static_t *after; } f_color_set_t; - #define f_color_set_t_initialize { 0, 0 } + #define f_color_set_t_initialize { \ + .before = 0, \ + .after = 0, \ + } - #define macro_f_color_set_t_initialize_1(before, after) { before, after } + #define macro_f_color_set_t_initialize_1(before_value, after_value) { \ + .before = before_value, \ + .after = after_value, \ + } #define macro_f_color_set_t_clear(set) { \ set.before = 0; \ @@ -861,29 +871,29 @@ extern "C" { } f_color_set_context_t; #define f_color_set_context_t_initialize { \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize \ + .error = f_color_set_t_initialize, \ + .important = f_color_set_t_initialize, \ + .normal = f_color_set_t_initialize, \ + .normal_reset = f_color_set_t_initialize, \ + .notable = f_color_set_t_initialize, \ + .reset = f_color_set_t_initialize, \ + .standout = f_color_set_t_initialize, \ + .success = f_color_set_t_initialize, \ + .title = f_color_set_t_initialize, \ + .warning = f_color_set_t_initialize, \ } - #define macro_f_color_set_context_t_initialize_1(error, important, normal, normal_reset, notable, reset, standout, success, title, warning) { \ - error, \ - important, \ - normal, \ - normal_reset, \ - notable, \ - reset, \ - standout, \ - success, \ - title, \ - warning \ + #define macro_f_color_set_context_t_initialize_1(error_value, important_value, normal_value, normal_reset_value, notable_value, reset_value, standout_value, success_value, title_value, warning_value) { \ + .error = error_value, \ + .important = important_value, \ + .normal = normal_value, \ + .normal_reset = normal_reset_value, \ + .notable = notable_value, \ + .reset = reset_value, \ + .standout = standout_value, \ + .success = success_value, \ + .title = title_value, \ + .warning = warning_value, \ } #define macro_f_color_set_context_t_clear(set) { \ @@ -942,20 +952,20 @@ extern "C" { } f_color_context_t; #define f_color_context_t_initialize { \ - f_color_t_initialize_linux, \ - f_color_format_t_initialize_linux, \ - f_color_mode_none_e, \ - f_color_set_context_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize \ + .list = f_color_t_initialize_linux, \ + .format = f_color_format_t_initialize_linux, \ + .mode = f_color_mode_none_e, \ + .set = f_color_set_context_t_initialize, \ + .error = f_string_dynamic_t_initialize, \ + .important = f_string_dynamic_t_initialize, \ + .normal = f_string_dynamic_t_initialize, \ + .normal_reset = f_string_dynamic_t_initialize, \ + .notable = f_string_dynamic_t_initialize, \ + .reset = f_string_dynamic_t_initialize, \ + .standout = f_string_dynamic_t_initialize, \ + .success = f_string_dynamic_t_initialize, \ + .title = f_string_dynamic_t_initialize, \ + .warning = f_string_dynamic_t_initialize, \ } #define macro_f_color_context_t_clear(context) { \ diff --git a/level_0/f_console/c/console/common.h b/level_0/f_console/c/console/common.h index 09bd298..2e606eb 100644 --- a/level_0/f_console/c/console/common.h +++ b/level_0/f_console/c/console/common.h @@ -229,9 +229,17 @@ extern "C" { const f_string_t *envp; } f_console_arguments_t; - #define f_console_arguments_t_initialize { 0, 0, 0 } + #define f_console_arguments_t_initialize { \ + .argc = 0, \ + .argv = 0, \ + .envp = 0, \ + } - #define macro_f_console_arguments_t_initialize_1(argc, argv, envp) { argc, argv, envp } + #define macro_f_console_arguments_t_initialize_1(argc_value, argv_value, envp_value) { \ + .argc = argc_value, \ + .argv = argv_value, \ + .envp = envp_value \ + } #endif // _di_f_console_arguments_t_ /** @@ -339,16 +347,29 @@ extern "C" { } f_console_parameter_state_t; #define f_console_parameter_state_t_initialize { \ - f_console_parameter_state_type_none_e, \ - 0, \ - 0, \ - F_false, \ - f_console_result_t_initialize, \ - 0, \ - f_number_unsigned_t_initialize, \ - f_number_unsigned_t_initialize, \ - f_number_unsigned_t_initialize, \ - f_number_unsigneds_t_initialize, \ + .type = f_console_parameter_state_type_none_e, \ + .depth = 0, \ + .width = 0, \ + .found = F_false, \ + .result = f_console_result_t_initialize, \ + .state = 0, \ + .at = f_number_unsigned_t_initialize, \ + .location = f_number_unsigned_t_initialize, \ + .location_sub = f_number_unsigned_t_initialize, \ + .needs = f_number_unsigneds_t_initialize, \ + } + + #define macro_f_console_parameter_state_t_clear(console_parameter_state) { \ + console_parameter_state.type = f_console_parameter_state_type_none_e, \ + console_parameter_state.depth = 0, \ + console_parameter_state.width = 0, \ + console_parameter_state.found = F_false, \ + console_parameter_state.result = f_console_result_t_initialize, \ + console_parameter_state.state = 0, \ + console_parameter_state.at = f_number_unsigned_t_initialize, \ + console_parameter_state.location = f_number_unsigned_t_initialize, \ + console_parameter_state.location_sub = f_number_unsigned_t_initialize, \ + macro_f_number_unsigneds_t_clear(console_parameter_state.needs), \ } #endif // _di_f_console_parameter_state_t_ @@ -406,116 +427,115 @@ extern "C" { } f_console_parameter_t; #define f_console_parameter_t_initialize { \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_console_flag_t_initialize, \ - f_console_result_t_initialize, \ - f_number_unsigned_t_initialize, \ - f_number_unsigned_t_initialize, \ - f_number_unsigned_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + .match_short = f_string_static_t_initialize, \ + .match_long = f_string_static_t_initialize, \ + .match_simple = f_string_static_t_initialize, \ + .values_total = f_console_flag_t_initialize, \ + .flag = f_console_result_t_initialize, \ + .result = f_number_unsigned_t_initialize, \ + .location = f_number_unsigned_t_initialize, \ + .location_sub = f_number_unsigned_t_initialize, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_1(match_short, match_long, match_simple, values_total, flag, result, location, location_sub, locations, locations_sub, values) { \ - match_short, \ - match_long, \ - match_simple, \ - values_total, \ - flag, \ - result, \ - total, \ - location, \ - location_sub, \ - locations, \ - locations_sub, \ - values, \ + #define macro_f_console_parameter_t_initialize_1(match_short_value, match_long_value, match_simple_value, values_total_value, flag_value, result_value, location_value, location_sub_value, locations_value, locations_sub_value, values_value) { \ + .match_short = match_short_value, \ + .match_long = match_long_value, \ + .match_simple = match_simple_value, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = result_value, \ + .location = location_value, \ + .location_sub = location_sub_value, \ + .locations = locations_value, \ + .locations_sub = locations_sub_value, \ + .values = values_value, \ } - #define macro_f_console_parameter_t_initialize_2(match_short, match_long, match_simple, values_total, flag) { \ - match_short, \ - match_long, \ - match_simple, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_2(match_short_value, match_long_value, match_simple_value, values_total_value, flag_value) { \ + .match_short = match_short_value, \ + .match_long = match_long_value, \ + .match_simple = match_simple_value, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_3(match_short, match_long, values_total, flag) { \ - match_short, \ - match_long, \ - f_string_empty_s, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_3(match_short_value, match_long_value, values_total_value, flag_value) { \ + .match_short = match_short_value, \ + .match_long = match_long_value, \ + .match_simple = f_string_empty_s, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_4(match_short, values_total, flag) { \ - match_short, \ - f_string_empty_s, \ - f_string_empty_s, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_4(match_short_value, values_total_value, flag_value) { \ + .match_short = match_short_value, \ + .match_long = f_string_empty_s, \ + .match_simple = f_string_empty_s, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_5(match_long, values_total, flag) { \ - f_string_empty_s, \ - match_long, \ - f_string_empty_s, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_5(match_long_value, values_total_value, flag_value) { \ + .match_short = f_string_empty_s, \ + .match_long = match_long_value, \ + .match_simple = f_string_empty_s, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_6(match_simple, values_total, flag) { \ - f_string_empty_s, \ - f_string_empty_s, \ - match_simple, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_6(match_simple_value, values_total_value, flag_value) { \ + .match_short = f_string_empty_s, \ + .match_long = f_string_empty_s, \ + .match_simple = match_simple_value, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } - #define macro_f_console_parameter_t_initialize_7(values_total, flag) { \ - f_string_empty_s, \ - f_string_empty_s, \ - f_string_empty_s, \ - values_total, \ - flag, \ - f_console_result_none_d, \ - 0, \ - 0, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ + #define macro_f_console_parameter_t_initialize_7(values_total_value, flag_value) { \ + .match_short = f_string_empty_s, \ + .match_long = f_string_empty_s, \ + .match_simple = f_string_empty_s, \ + .values_total = values_total_value, \ + .flag = flag_value, \ + .result = f_console_result_none_d, \ + .location = 0, \ + .location_sub = 0, \ + .locations = f_number_unsigneds_t_initialize, \ + .locations_sub = f_number_unsigneds_t_initialize, \ + .values = f_number_unsigneds_t_initialize, \ } #define macro_f_console_parameter_t_clear(console_parameter) { \ @@ -577,19 +597,19 @@ extern "C" { } f_console_parameters_t; #define f_console_parameters_t_initialize { \ - 0, \ - f_string_dynamics_t_initialize, \ - f_number_unsigneds_t_initialize, \ - 0, \ - 0 \ + .array = 0, \ + .arguments = f_string_dynamics_t_initialize, \ + .remaining = f_number_unsigneds_t_initialize, \ + .used = 0, \ + .on_match = 0, \ } - #define macro_f_console_parameters_t_initialize_1(parameters, used, on_match) { \ - parameters, \ - f_string_dynamics_t_initialize, \ - f_number_unsigneds_t_initialize, \ - used, \ - on_match \ + #define macro_f_console_parameters_t_initialize_1(parameters_value, used_value, on_match_value) { \ + .array = parameters_value, \ + .arguments = f_string_dynamics_t_initialize, \ + .remaining = f_number_unsigneds_t_initialize, \ + .used = used_value, \ + .on_match = on_match_value, \ } #define macro_f_console_parameters_t_clear(console_parameters) { \ diff --git a/level_0/f_control_group/c/control_group/common.h b/level_0/f_control_group/c/control_group/common.h index 7fd8692..2453585 100644 --- a/level_0/f_control_group/c/control_group/common.h +++ b/level_0/f_control_group/c/control_group/common.h @@ -64,9 +64,17 @@ extern "C" { f_string_dynamics_t groups; } f_control_group_t; - #define f_control_group_t_initialize { F_false, f_string_dynamic_t_initialize, f_string_dynamics_t_initialize } + #define f_control_group_t_initialize { \ + .as_new = F_false, \ + .path = f_string_dynamic_t_initialize, \ + .groups = f_string_dynamics_t_initialize, \ + } - #define macro_f_control_group_t_initialize_1(as_new, path, groups) { as_new, path, groups } + #define macro_f_control_group_t_initialize_1(as_new_value, path_value, groups_value) { \ + .as_new = as_new_value, \ + .path = path_value, \ + .groups = groups_value, \ + } #define macro_f_control_group_t_clear(control) { \ control.as_new = F_false; \ diff --git a/level_0/f_conversion/c/conversion/common.h b/level_0/f_conversion/c/conversion/common.h index 49d54bd..c326c96 100644 --- a/level_0/f_conversion/c/conversion/common.h +++ b/level_0/f_conversion/c/conversion/common.h @@ -92,9 +92,17 @@ extern "C" { int width; } f_conversion_data_t; - #define f_conversion_data_t_initialize { 10, 0, 1 } + #define f_conversion_data_t_initialize { \ + .base = 10, \ + .flag = 0, \ + .width = 1, \ + } - #define macro_f_conversion_data_t_initialize_1(base, flag, width) { base, flag, width } + #define macro_f_conversion_data_t_initialize_1(base_value, flag_value, width_value) { \ + .base = base_value, \ + .flag = flag_value, \ + .width = width_value, \ + } #define macro_f_conversion_data_t_clear(data) { \ data.base = 0; \ diff --git a/level_0/f_directory/c/directory/listing.h b/level_0/f_directory/c/directory/listing.h index b5ebfff..2d72876 100644 --- a/level_0/f_directory/c/directory/listing.h +++ b/level_0/f_directory/c/directory/listing.h @@ -81,25 +81,25 @@ extern "C" { } f_directory_listing_t; #define f_directory_listing_t_initialize { \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ + .block = f_string_dynamics_t_initialize, \ + .character = f_string_dynamics_t_initialize, \ + .directory = f_string_dynamics_t_initialize, \ + .regular = f_string_dynamics_t_initialize, \ + .link = f_string_dynamics_t_initialize, \ + .fifo = f_string_dynamics_t_initialize, \ + .socket = f_string_dynamics_t_initialize, \ + .unknown = f_string_dynamics_t_initialize, \ } - #define macro_f_directory_listing_t_initialize_1(block, character, directory, regular, link, fifo, socket, unknown) { \ - block, \ - character, \ - directory, \ - regular, \ - link, \ - fifo, \ - socket, \ - unknown, \ + #define macro_f_directory_listing_t_initialize_1(block_value, character_value, directory_value, regular_value, link_value, fifo_value, socket_value, unknown) { \ + .block = block_value, \ + .character = character_value, \ + .directory = directory_value, \ + .regular = regular_value, \ + .link = link_value, \ + .fifo = fifo_value, \ + .socket = socket_value, \ + .unknown = unknown_value, \ } #define macro_f_directory_listing_t_clear(directory_listing) { \ @@ -130,10 +130,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_listings_t; - #define f_directory_listings_t_initialize { 0, 0, 0 } + #define f_directory_listings_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_directory_listings_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_directory_listings_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_listings_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_listings_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_listings_t_clear(directory_listings) { \ directory_listings.array = 0; \ @@ -158,10 +171,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_listingss_t; - #define f_directory_listingss_t_initialize { 0, 0, 0 } + #define f_directory_listingss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_directory_listingss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_directory_listingss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_listingss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_listingss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_listingss_t_clear(directory_listingss) { \ directory_listingss.array = 0; \ diff --git a/level_0/f_directory/c/directory/recurse_do.h b/level_0/f_directory/c/directory/recurse_do.h index 56f158b..037385a 100644 --- a/level_0/f_directory/c/directory/recurse_do.h +++ b/level_0/f_directory/c/directory/recurse_do.h @@ -136,10 +136,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_recurse_dos_t; - #define f_directory_recurse_dos_t_initialize { 0, 0, 0 } + #define f_directory_recurse_dos_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_directory_recurse_dos_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_directory_recurse_dos_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_recurse_dos_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_recurse_dos_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_recurse_dos_t_clear(directory_recurse_dos) { \ directory_recurse_dos.array = 0; \ @@ -164,10 +177,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_recurse_doss_t; - #define f_directory_recurse_doss_t_initialize { 0, 0, 0 } + #define f_directory_recurse_doss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_directory_recurse_doss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_directory_recurse_doss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_recurse_doss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_recurse_doss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_recurse_doss_t_clear(directory_recurse_doss) { \ directory_recurse_doss.array = 0; \ diff --git a/level_0/f_directory/c/directory/status.h b/level_0/f_directory/c/directory/status.h index 43ade04..15e37ad 100644 --- a/level_0/f_directory/c/directory/status.h +++ b/level_0/f_directory/c/directory/status.h @@ -22,7 +22,6 @@ extern "C" { * The allocation macros apply to the path. * * Properties: - * - step: The allocation step. * - status: The status code. * - path: The dynamically allocated path associated with the status code. */ @@ -32,9 +31,15 @@ extern "C" { f_string_dynamic_t path; } f_directory_status_t; - #define f_directory_status_t_initialize { 0, f_string_dynamic_t_initialize } + #define f_directory_status_t_initialize { \ + .status = 0, \ + .path = f_string_dynamic_t_initialize, \ + } - #define macro_f_directory_status_t_initialize_1(status, path) { status, path } + #define macro_f_directory_status_t_initialize_1(status, path) { \ + .status = status_value, \ + .path = path_value, \ + } #define macro_f_directory_status_t_clear(directory) { \ directory.status = 0; \ @@ -58,10 +63,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_statuss_t; - #define f_directory_statuss_t_initialize { 0, 0, 0 } + #define f_directory_statuss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_directory_statuss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_directory_statuss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_statuss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_statuss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_statuss_t_clear(directory_statuss) { \ directory_statuss.array = 0; \ @@ -86,10 +104,23 @@ extern "C" { f_number_unsigned_t size; } f_directory_statusss_t; - #define f_directory_statusss_t_initialize { 0, 0, 0 } + #define f_directory_statusss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_directory_statusss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_directory_statusss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_directory_statusss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_directory_statusss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_directory_statusss_t_clear(directory_statusss) { \ directory_statusss.array = 0; \ diff --git a/level_0/f_execute/c/execute/common.h b/level_0/f_execute/c/execute/common.h index e1a20ab..c751e0e 100644 --- a/level_0/f_execute/c/execute/common.h +++ b/level_0/f_execute/c/execute/common.h @@ -157,7 +157,7 @@ extern "C" { * * Properties: * - policy: The scheduler policy. - * - priority: The scheduler priority; + * - priority: The scheduler priority. */ #ifndef _di_f_execute_scheduler_t_ typedef struct { @@ -165,9 +165,15 @@ extern "C" { int priority; } f_execute_scheduler_t; - #define f_execute_scheduler_t_initialize { 0, 0 } + #define f_execute_scheduler_t_initialize { \ + .policy = 0, \ + .priority = 0, \ + } - #define macro_f_execute_scheduler_t_initialize_1(policy, priority) { policy, priority } + #define macro_f_execute_scheduler_t_initialize_1(policy_value, priority_value) { \ + .policy = policy_value, \ + .priority = priority_value, \ + } #define f_execute_scheduler_t_clear(scheduler) { \ scheduler.policy = 0; \ diff --git a/level_0/f_fss/c/fss/item.h b/level_0/f_fss/c/fss/item.h index 3a20e77..393a036 100644 --- a/level_0/f_fss/c/fss/item.h +++ b/level_0/f_fss/c/fss/item.h @@ -42,7 +42,12 @@ extern "C" { f_number_unsigned_t parent; } f_fss_item_t; - #define f_fss_item_t_initialize { f_range_t_initialize, f_range_t_initialize, f_ranges_t_initialize, 0 } + #define f_fss_item_t_initialize { \ + .object = f_range_t_initialize, \ + .close = f_range_t_initialize, \ + .content = f_ranges_t_initialize, \ + .parent = 0, \ + } #define macro_f_fss_item_t_initialize_1(object, close, content, parent) macro_f_number_unsigneds_t_initialize_1(object, close, content, parent) @@ -95,10 +100,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_items_t; - #define f_fss_items_t_initialize { 0, 0, 0 } + #define f_fss_items_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_fss_items_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_items_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_items_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_fss_items_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_items_t_clear(fss_items) { \ fss_items.array = 0; \ @@ -123,10 +141,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_itemss_t; - #define f_fss_itemss_t_initialize { 0, 0, 0 } + #define f_fss_itemss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_itemss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_itemss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_itemss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_itemss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_itemss_t_clear(fss_itemss) { \ fss_itemss.array = 0; \ diff --git a/level_0/f_fss/c/fss/named.h b/level_0/f_fss/c/fss/named.h index fd0648a..26a6d14 100644 --- a/level_0/f_fss/c/fss/named.h +++ b/level_0/f_fss/c/fss/named.h @@ -37,7 +37,12 @@ extern "C" { f_uint8ss_t quotess; } f_fss_named_t; - #define f_fss_named_t_initialize { f_range_t_initialize, f_ranges_t_initialize, f_rangess_t_initialize, f_uint8ss_t_initialize } + #define f_fss_named_t_initialize { \ + .name = f_range_t_initialize, \ + .objects = f_ranges_t_initialize, \ + .contents = f_rangess_t_initialize, \ + .quotess = f_uint8ss_t_initialize, \ + } #define macro_f_fss_named_t_initialize_1(name, objects, contents, quotess) macro_f_number_unsigneds_t_initialize_1(name, objects, contents, quotess) #define macro_f_fss_named_t_initialize_2(name) macro_f_number_unsigneds_t_initialize_1(name, f_ranges_t_initialize, f_rangess_t_initialize, f_uint8ss_t_initialize) @@ -66,10 +71,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_nameds_t; - #define f_fss_nameds_t_initialize { 0, 0, 0 } + #define f_fss_nameds_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_fss_nameds_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_nameds_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_nameds_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_fss_nameds_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_nameds_t_clear(fss_nameds) { \ fss_nameds.array = 0; \ @@ -94,10 +112,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_namedss_t; - #define f_fss_namedss_t_initialize { 0, 0, 0 } + #define f_fss_namedss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_namedss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_namedss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_namedss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_namedss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_namedss_t_clear(fss_namedss) { \ fss_namedss.array = 0; \ diff --git a/level_0/f_fss/c/fss/nest.h b/level_0/f_fss/c/fss/nest.h index 454ca9e..b7ce0a9 100644 --- a/level_0/f_fss/c/fss/nest.h +++ b/level_0/f_fss/c/fss/nest.h @@ -36,10 +36,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_nest_t; - #define f_fss_nest_t_initialize { 0, 0, 0 } + #define f_fss_nest_t_initialize { \ + .depth = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_nest_t_initialize_1(array_value, used_value, size_value) { \ + .depth = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_nest_t_initialize_1(depth_value, used_value, size_value) { .depth = depth_value, .used = used_value, .size = size_value } - #define macro_f_fss_nest_t_initialize_2(depth_value, length_value) { .depth = depth_value, .used = length_value, .size = length_value } + #define macro_f_fss_nest_t_initialize_2(array_value, length_value) { \ + .depth = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_nest_t_clear(fss_nest) { \ fss_nest.array = 0; \ @@ -64,10 +77,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_nests_t; - #define f_fss_nests_t_initialize { 0, 0, 0 } + #define f_fss_nests_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_nests_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_nests_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_nests_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_nests_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_nests_t_clear(fss_nests) { \ fss_nests.array = 0; \ @@ -92,10 +118,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_nestss_t; - #define f_fss_nestss_t_initialize { 0, 0, 0 } + #define f_fss_nestss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_nestss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_nestss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_nestss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_nestss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_nestss_t_clear(fss_nestss) { \ fss_nestss.array = 0; \ diff --git a/level_0/f_fss/c/fss/set.h b/level_0/f_fss/c/fss/set.h index 51fd52c..607f8cb 100644 --- a/level_0/f_fss/c/fss/set.h +++ b/level_0/f_fss/c/fss/set.h @@ -32,9 +32,15 @@ extern "C" { f_rangess_t contents; } f_fss_set_t; - #define f_fss_set_t_initialize { f_ranges_t_initialize, f_rangess_t_initialize } + #define f_fss_set_t_initialize { \ + .objects = f_ranges_t_initialize, \ + .contents = f_rangess_t_initialize, \ + } - #define macro_f_fss_set_t_initialize_1(objects, contents) { objects, contents } + #define macro_f_fss_set_t_initialize_1(objects_value, contents_value) { \ + .objects = objects_value, \ + .contents = contents_value, \ + } #define macro_f_fss_set_t_clear(set) { \ macro_f_ranges_t_clear(set.objects) \ @@ -58,10 +64,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_sets_t; - #define f_fss_sets_t_initialize { 0, 0, 0 } + #define f_fss_sets_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_sets_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_sets_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_sets_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_sets_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_sets_t_clear(fss_sets) { \ fss_sets.array = 0; \ @@ -86,10 +105,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_setss_t; - #define f_fss_setss_t_initialize { 0, 0, 0 } + #define f_fss_setss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_fss_setss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_setss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_setss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_fss_setss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_setss_t_clear(fss_setss) { \ fss_setss.array = 0; \ diff --git a/level_0/f_fss/c/fss/set_quote.h b/level_0/f_fss/c/fss/set_quote.h index 7f06b16..2b2fafa 100644 --- a/level_0/f_fss/c/fss/set_quote.h +++ b/level_0/f_fss/c/fss/set_quote.h @@ -37,9 +37,19 @@ extern "C" { f_uint8ss_t contents_quote; } f_fss_set_quote_t; - #define f_fss_set_quote_t_initialize { f_ranges_t_initialize, f_rangess_t_initialize, f_uint8s_t_initialize, f_uint8ss_t_initialize } + #define f_fss_set_quote_t_initialize { \ + .objects = f_ranges_t_initialize, \ + .contents = f_rangess_t_initialize, \ + .objects_quote = f_uint8s_t_initialize, \ + .contents_quote = f_uint8ss_t_initialize, \ + } - #define macro_f_fss_set_quote_t_initialize_1(objects, contents, objects_quote, contents_quote) { objects, contents, objects_quote, contents_quote } + #define macro_f_fss_set_quote_t_initialize_1(objects_value, contents_value, objects_quote_value, contents_quote_value) { \ + .objects = objects_value, \ + .contents = contents_value, \ + .objects_quote = objects_quote_value, \ + .contents_quote = contents_quote_value, \ + } #define macro_f_fss_set_quote_t_clear(set) { \ macro_f_ranges_t_clear(set.objects) \ @@ -65,10 +75,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_set_quotes_t; - #define f_fss_set_quotes_t_initialize { 0, 0, 0 } + #define f_fss_set_quotes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_set_quotes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_set_quotes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_set_quotes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_set_quotes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_set_quotes_t_clear(fss_set_quotes) { \ fss_set_quotes.array = 0; \ @@ -93,10 +116,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_set_quotess_t; - #define f_fss_set_quotess_t_initialize { 0, 0, 0 } + #define f_fss_set_quotess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_fss_set_quotess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_set_quotess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_set_quotess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_fss_set_quotess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_set_quotess_t_clear(fss_set_quotess) { \ fss_set_quotess.array = 0; \ diff --git a/level_0/f_fss/c/fss/simple_packet.h b/level_0/f_fss/c/fss/simple_packet.h index 37205e1..5af1822 100644 --- a/level_0/f_fss/c/fss/simple_packet.h +++ b/level_0/f_fss/c/fss/simple_packet.h @@ -50,10 +50,23 @@ extern "C" { f_string_dynamic_t payload; } f_fss_simple_packet_t; - #define f_fss_simple_packet_t_initialize { 0, 0, f_string_dynamic_t_initialize } + #define f_fss_simple_packet_t_initialize { \ + .control = 0, \ + .size = 0, \ + .payload = f_string_dynamic_t_initialize, \ + } + + #define macro_f_fss_simple_packet_t_initialize_1(control_value, size_value, payload_value) { \ + .control = control_value, \ + .size = size_value, \ + .payload = payload_value, \ + } - #define macro_f_fss_simple_packet_t_initialize_1(control, size, payload) { control, size, payload } - #define macro_f_fss_simple_packet_t_initialize_2(payload) { 0, 0, payload } + #define macro_f_fss_simple_packet_t_initialize_2(payload_value) { \ + .control = 0, \ + .size = 0, \ + .payload = payload_value, \ + } #define macro_f_fss_simple_packet_t_clear(fss_simple_packet) { \ fss_simple_packet.array = 0; \ @@ -78,10 +91,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_simple_packets_t; - #define f_fss_simple_packets_t_initialize { 0, 0, 0 } + #define f_fss_simple_packets_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_simple_packets_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_simple_packets_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_simple_packets_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_simple_packets_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_simple_packets_t_clear(fss_simple_packets) { \ fss_simple_packets.array = 0; \ @@ -106,10 +132,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_simple_packetss_t; - #define f_fss_simple_packetss_t_initialize { 0, 0, 0 } + #define f_fss_simple_packetss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_simple_packetss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_simple_packetss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_simple_packetss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_simple_packetss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_simple_packetss_t_clear(fss_simple_packetss) { \ fss_simple_packetss.array = 0; \ @@ -133,10 +172,23 @@ extern "C" { f_range_t payload; } f_fss_simple_packet_range_t; - #define f_fss_simple_packet_range_t_initialize { 0, 0, f_range_t_initialize } + #define f_fss_simple_packet_range_t_initialize { \ + .control = 0, \ + .size = 0, \ + .payload = f_range_t_initialize, \ + } + + #define macro_f_fss_simple_packet_range_t_initialize_1(control_value, size_value, payload_value) { \ + .control = control_value, \ + .size = size_value, \ + .payload = payload_value, \ + } - #define macro_f_fss_simple_packet_range_t_initialize_1(control, size, payload) { control, size, payload } - #define macro_f_fss_simple_packet_range_t_initialize_2(payload) { 0, 0, payload } + #define macro_f_fss_simple_packet_range_t_initialize_2(payload_value) { \ + .control = 0, \ + .size = 0, \ + .payload = payload_value, \ + } #define macro_f_fss_simple_packet_range_t_clear(fss_simple_packet_range) { \ fss_simple_packet_range.control = 0; \ @@ -161,10 +213,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_simple_packet_ranges_t; - #define f_fss_simple_packet_ranges_t_initialize { 0, 0, 0 } + #define f_fss_simple_packet_ranges_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_simple_packet_ranges_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_simple_packet_ranges_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_simple_packet_ranges_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_simple_packet_ranges_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_simple_packet_ranges_t_clear(fss_simple_packet_ranges) { \ fss_simple_packet_ranges.array = 0; \ @@ -189,10 +254,23 @@ extern "C" { f_number_unsigned_t size; } f_fss_simple_packet_rangess_t; - #define f_fss_simple_packet_rangess_t_initialize { 0, 0, 0 } + #define f_fss_simple_packet_rangess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fss_simple_packet_rangess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fss_simple_packet_rangess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fss_simple_packet_rangess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fss_simple_packet_rangess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fss_simple_packet_rangess_t_clear(fss_simple_packet_rangess) { \ fss_simple_packet_rangess.array = 0; \ diff --git a/level_0/f_iki/c/iki/common.h b/level_0/f_iki/c/iki/common.h index dba109b..bbbf037 100644 --- a/level_0/f_iki/c/iki/common.h +++ b/level_0/f_iki/c/iki/common.h @@ -221,13 +221,18 @@ extern "C" { } f_iki_data_t; #define f_iki_data_t_initialize { \ - f_ranges_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_ranges_t_initialize, \ - f_ranges_t_initialize, \ + .content = f_ranges_t_initialize, \ + .delimits = f_number_unsigneds_t_initialize, \ + .variable = f_ranges_t_initialize, \ + .vocabulary = f_ranges_t_initialize, \ } - #define macro_f_iki_data_t_initialize_1(content, delimits, variable, vocabulary) { content, delimits, variable, vocabulary } + #define macro_f_iki_data_t_initialize_1(content_value, delimits_value, variable_value, vocabulary_value) { \ + .content = content_value, \ + .delimits = delimits_value, \ + .variable = variable_value, \ + .vocabulary = vocabulary_value, \ + } #define macro_f_iki_data_t_clear(data) { \ macro_f_ranges_t_clear(data.content) \ @@ -253,10 +258,23 @@ extern "C" { f_number_unsigned_t size; } f_iki_datas_t; - #define f_iki_datas_t_initialize { 0, 0, 0 } + #define f_iki_datas_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_iki_datas_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_iki_datas_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_iki_datas_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_iki_datas_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_iki_datas_t_clear(iki_datas) { \ iki_datas.array = 0; \ @@ -281,10 +299,23 @@ extern "C" { f_number_unsigned_t size; } f_iki_datass_t; - #define f_iki_datass_t_initialize { 0, 0, 0 } + #define f_iki_datass_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_iki_datass_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_iki_datass_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_iki_datass_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_iki_datass_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_iki_datass_t_clear(iki_datass) { \ iki_datass.array = 0; \ @@ -311,13 +342,18 @@ extern "C" { } f_iki_eki_t; #define f_iki_eki_t_initialize { \ - f_ranges_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_ranges_t_initialize, \ - f_rangess_t_initialize, \ + .content = f_ranges_t_initialize, \ + .delimits = f_number_unsigneds_t_initialize, \ + .variable = f_ranges_t_initialize, \ + .vocabularys = f_rangess_t_initialize, \ } - #define macro_f_iki_eki_t_initialize_1(content, delimits, variable, vocabularys) { content, delimits, variable, vocabularys } + #define macro_f_iki_eki_t_initialize_1(content_value, delimits_value, variable_value, vocabularys_value) { \ + .content = content_value, \ + .delimits = delimits_value, \ + .variable = variable_value, \ + .vocabularys = vocabularys_value, \ + } #define macro_f_iki_eki_t_clear(data) { \ macro_f_ranges_t_clear(data.content) \ @@ -343,10 +379,23 @@ extern "C" { f_number_unsigned_t size; } f_iki_ekis_t; - #define f_iki_ekis_t_initialize { 0, 0, 0 } + #define f_iki_ekis_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_iki_ekis_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_iki_ekis_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_iki_ekis_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_iki_ekis_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_iki_ekis_t_clear(iki_ekis) { \ iki_ekis.array = 0; \ @@ -371,10 +420,23 @@ extern "C" { f_number_unsigned_t size; } f_iki_ekiss_t; - #define f_iki_ekiss_t_initialize { 0, 0, 0 } + #define f_iki_ekiss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_iki_ekiss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_iki_ekiss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_iki_ekiss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_iki_ekiss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_iki_ekiss_t_clear(iki_ekiss) { \ iki_ekiss.array = 0; \ diff --git a/level_0/f_limit/c/limit/set.h b/level_0/f_limit/c/limit/set.h index b33be47..7160651 100644 --- a/level_0/f_limit/c/limit/set.h +++ b/level_0/f_limit/c/limit/set.h @@ -29,9 +29,15 @@ extern "C" { f_limit_value_t value; } f_limit_set_t; - #define f_limit_set_t_initialize { 0, f_limit_value_t_initialize } + #define f_limit_set_t_initialize { \ + .type = 0, \ + .value = f_limit_value_t_initialize, \ + } - #define macro_f_limit_set_t_initialize_1(type, value) { type, value } + #define macro_f_limit_set_t_initialize_1(type_value, value_value) { \ + .type = type_value, \ + .value = value_value, \ + } #define macro_f_limit_set_t_clear(set) { \ set.type = 0; \ @@ -55,10 +61,23 @@ extern "C" { f_number_unsigned_t size; } f_limit_sets_t; - #define f_limit_sets_t_initialize { 0, 0, 0 } + #define f_limit_sets_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_limit_sets_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_limit_sets_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_limit_sets_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_limit_sets_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_limit_sets_t_clear(limit_sets) { \ limit_sets.array = 0; \ @@ -83,10 +102,23 @@ extern "C" { f_number_unsigned_t size; } f_limit_setss_t; - #define f_limit_setss_t_initialize { 0, 0, 0 } + #define f_limit_setss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_limit_setss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_limit_setss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_limit_setss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_limit_setss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_limit_setss_t_clear(limit_setss) { \ limit_setss.array = 0; \ diff --git a/level_0/f_limit/c/limit/value.h b/level_0/f_limit/c/limit/value.h index ced432f..724267b 100644 --- a/level_0/f_limit/c/limit/value.h +++ b/level_0/f_limit/c/limit/value.h @@ -50,10 +50,23 @@ extern "C" { f_number_unsigned_t size; } f_limit_values_t; - #define f_limit_values_t_initialize { 0, 0, 0 } + #define f_limit_values_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_limit_values_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_limit_values_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_limit_values_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_limit_values_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_limit_values_t_clear(limit_values) { \ limit_values.array = 0; \ @@ -78,10 +91,23 @@ extern "C" { f_number_unsigned_t size; } f_limit_valuess_t; - #define f_limit_valuess_t_initialize { 0, 0, 0 } + #define f_limit_valuess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_limit_valuess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_limit_valuess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_limit_valuess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_limit_valuess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_limit_valuess_t_clear(limit_valuess) { \ limit_valuess.array = 0; \ diff --git a/level_0/f_network/c/network/common.h b/level_0/f_network/c/network/common.h index fee4487..535558a 100644 --- a/level_0/f_network/c/network/common.h +++ b/level_0/f_network/c/network/common.h @@ -50,8 +50,13 @@ extern "C" { #define f_network_family_ip_4_or_6_t_initialize { 0 } - #define macro_f_network_family_ip_4_or_6_t_initialize_1(v4) { .v4 = v4 } - #define macro_f_network_family_ip_4_or_6_t_initialize_2(v6) { .v6 = v6 } + #define macro_f_network_family_ip_4_or_6_t_initialize_1(v4_value) { \ + .v4 = v4_value, \ + } + + #define macro_f_network_family_ip_4_or_6_t_initialize_2(v6_value) { \ + .v6 = v6_value, \ + } #endif // _di_f_network_family_ip_4_or_6_t_ /** @@ -72,10 +77,20 @@ extern "C" { f_network_family_ip_4_or_6_t address; } f_network_family_ip_t; - #define f_network_family_ip_t_initialize { 0 } + #define f_network_family_ip_t_initialize { \ + .type = 0, \ + .address = f_network_family_ip_4_or_6_t_initialize, \ + } - #define macro_f_network_family_ip_t_initialize_1(v4) { f_network_family_ip_4_e, macro_f_network_family_ip_4_or_6_t_initialize_1(v4) } - #define macro_f_network_family_ip_t_initialize_2(v6) { f_network_family_ip_6_e, macro_f_network_family_ip_4_or_6_t_initialize_2(v6) } + #define macro_f_network_family_ip_t_initialize_1(v4) { \ + .type = f_network_family_ip_4_e, \ + .address = macro_f_network_family_ip_4_or_6_t_initialize_1(v4), \ + } + + #define macro_f_network_family_ip_t_initialize_2(v6) { \ + .type = f_network_family_ip_6_e, \ + .address = macro_f_network_family_ip_4_or_6_t_initialize_2(v6), \ + } #define f_network_family_ip_t_clear(family_ip) { \ family_ip.type = f_network_family_none_e; \ diff --git a/level_0/f_schedule/c/schedule/common.h b/level_0/f_schedule/c/schedule/common.h index 48a1aec..0780987 100644 --- a/level_0/f_schedule/c/schedule/common.h +++ b/level_0/f_schedule/c/schedule/common.h @@ -97,64 +97,69 @@ extern "C" { } f_schedule_attribute_t; #define f_schedule_attribute_t_initialize { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ + .size = 0, \ + .sched_policy = 0, \ + .sched_flags = 0, \ + .sched_nice = 0, \ + .sched_priority = 0, \ + .sched_runtime = 0, \ + .sched_deadline = 0, \ + .sched_period = 0, \ } - #define macro_f_schedule_attribute_t_initialize_1(size) { \ - size, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ + #define macro_f_schedule_attribute_t_initialize_1(size_value) { \ + .size = size_value, \ + .sched_policy = 0, \ + .sched_flags = 0, \ + .sched_nice = 0, \ + .sched_priority = 0, \ + .sched_runtime = 0, \ + .sched_deadline = 0, \ + .sched_period = 0, \ } - #define macro_f_schedule_attribute_t_initialize_2(size, policy, flags) { \ - size, \ - policy, \ - flags, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ + #define macro_f_schedule_attribute_t_initialize_2(size_value, policy_value, flags_value) { \ + .size = size_value, \ + .sched_policy = policy_value, \ + .sched_flags = flags_value, \ + .sched_nice = 0, \ + .sched_priority = 0, \ + .sched_runtime = 0, \ + .sched_deadline = 0, \ + .sched_period = 0, \ } - #define macro_f_schedule_attribute_t_initialize_3(size, policy, flags, nice, priority) { \ - size, \ - policy, \ - flags, \ - nice, \ - priority, \ - 0, \ - 0, \ - 0, \ + #define macro_f_schedule_attribute_t_initialize_3(size_value, policy_value, flags_value, nice_value, priority_value) { \ + .size = size_value, \ + .sched_policy = policy_value, \ + .sched_flags = flags_value, \ + .sched_nice = nice_value, \ + .sched_priority = priority_value, \ + .sched_runtime = 0, \ + .sched_deadline = 0, \ + .sched_period = 0, \ } - #define macro_f_schedule_attribute_t_initialize_4(size, policy, flags, nice, priority, runtime, deadline, period) { \ - size, \ - policy, \ - flags, \ - nice, \ - priority, \ - runtime, \ - deadline, \ - period, \ + #define macro_f_schedule_attribute_t_initialize_4(size_value, policy_value, flags_value, nice_value, priority_value, runtime_value, deadline_value, period_value) { \ + .size = size_value, \ + .sched_policy = policy_value, \ + .sched_flags = flags_value, \ + .sched_nice = nice_value, \ + .sched_priority = priority_value, \ + .sched_runtime = runtime_value, \ + .sched_deadline = deadline_value, \ + .sched_period = period_value, \ } #define macro_f_schedule_attribute_t_clear(schedule_attribute) { \ - schedule_attribute.array = 0; \ - schedule_attribute.used = 0; \ - schedule_attribute.size = 0; \ + schedule_attribute.size = 0; \ + schedule_attribute.sched_policy = 0; \ + schedule_attribute.sched_flags = 0; \ + schedule_attribute.sched_nice = 0; \ + schedule_attribute.sched_priority = 0; \ + schedule_attribute.sched_runtime = 0; \ + schedule_attribute.sched_deadline = 0; \ + schedule_attribute.sched_period = 0; \ } #endif // _di_f_schedule_attribute_t_ @@ -168,7 +173,9 @@ extern "C" { #define f_schedule_value_t_initialize { 0 } - #define macro_f_schedule_value_t_initialize_1(priority) { .sched_priority = priority } + #define macro_f_schedule_value_t_initialize_1(priority) { \ + .sched_priority = priority \ + } #endif // _di_f_schedule_value_t_ #ifdef __cplusplus diff --git a/level_0/f_signal/c/signal/common.h b/level_0/f_signal/c/signal/common.h index 78d3ede..3d16ba6 100644 --- a/level_0/f_signal/c/signal/common.h +++ b/level_0/f_signal/c/signal/common.h @@ -31,9 +31,17 @@ extern "C" { sigset_t set; } f_signal_t; - #define f_signal_t_initialize { 0, -1, { 0 } } + #define f_signal_t_initialize { \ + .flags = 0, \ + .id = -1, \ + .set = { 0 }, \ + } - #define macro_f_signal_t_initialize_1(flags, id, set) { flags, id, set } + #define macro_f_signal_t_initialize_1(flags_value, id_value, set_value) { \ + .flags = flags_value, \ + .id = id_value, \ + .set = set_value, \ + } #define macro_f_signal_t_clear(signal) { \ signal.flags = 0; \ @@ -55,9 +63,15 @@ extern "C" { sigset_t block_not; } f_signal_how_t; - #define f_signal_how_t_initialize { { 0 } , { 0 } } + #define f_signal_how_t_initialize { \ + .block = { 0 }, \ + .block_not = { 0 }, \ + } - #define macro_f_signal_how_t_initialize_1(block, block_not) { block, block_not } + #define macro_f_signal_how_t_initialize_1(block_value, block_not_value) { \ + .block = block_value, \ + .block_not = block_not_value, \ + } #define macro_f_signal_how_t_clear(signal_how) { \ signal_how.block[0] = 0; \ diff --git a/level_0/f_socket/c/socket/address.h b/level_0/f_socket/c/socket/address.h index 1dd351c..cb8719d 100644 --- a/level_0/f_socket/c/socket/address.h +++ b/level_0/f_socket/c/socket/address.h @@ -157,19 +157,57 @@ extern "C" { #define f_socket_address_t_initialize { 0 } - #define f_socket_address_initialize_generic(value_generic) { .generic = value_generic } - #define f_socket_address_initialize_inet4(value_inet4) { .inet4 = value_inet4 } - #define f_socket_address_initialize_inet6(value_inet6) { .inet6 = value_inet6 } - #define f_socket_address_initialize_local(value_local) { .local = value_local } - #define f_socket_address_initialize_arp(value_arp) { .arp = value_arp } - #define f_socket_address_initialize_at(value_at) { .at = value_at } - #define f_socket_address_initialize_ax25(value_ax25) { .ax25 = value_ax25 } - #define f_socket_address_initialize_dl(value_dl) { .dl = value_dl } - #define f_socket_address_initialize_eon(value_eon) { .local = value_eon } - #define f_socket_address_initialize_ipx(value_ipx) { .ipx = value_ipx } - #define f_socket_address_initialize_iso(value_iso) { .iso = value_iso } - #define f_socket_address_initialize_ns(value_ns) { .ns = value_ns } - #define f_socket_address_initialize_x25(value_x25) { .x25 = value_x25 } + #define f_socket_address_initialize_generic(generic_value) { \ + .generic = generic_value, \ + } + + #define f_socket_address_initialize_inet4(inet4_value) { \ + .inet4 = inet4_value, \ + } + + #define f_socket_address_initialize_inet6(inet6_value) { \ + .inet6 = inet6_value, \ + } + + #define f_socket_address_initialize_local(local_value) { \ + .local = local_value, \ + } + + #define f_socket_address_initialize_arp(arp_value) { \ + .arp = arp_value, \ + } + + #define f_socket_address_initialize_at(at_value) { \ + .at = at_value, \ + } + + #define f_socket_address_initialize_ax25(ax25_value) { \ + .ax25 = ax25_value, \ + } + + #define f_socket_address_initialize_dl(dl_value) { \ + .dl = dl_value, \ + } + + #define f_socket_address_initialize_eon(eon_value) { \ + .local = eon_value, \ + } + + #define f_socket_address_initialize_ipx(ipx_value) { \ + .ipx = ipx_value, \ + } + + #define f_socket_address_initialize_iso(iso_value) { \ + .iso = iso_value, \ + } + + #define f_socket_address_initialize_ns(ns_value) { \ + .ns = ns_value, \ + } + + #define f_socket_address_initialize_x25(x25_value) { \ + .x25 = x25_value, \ + } #endif // _di_f_socket_address_t_ /** @@ -188,10 +226,23 @@ extern "C" { f_number_unsigned_t size; } f_socket_addresss_t; - #define f_socket_addresss_t_initialize { 0, 0, 0 } + #define f_socket_addresss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_socket_addresss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_socket_addresss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_socket_addresss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_socket_addresss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_socket_addresss_t_clear(socket_addresss) { \ socket_addresss.array = 0; \ @@ -216,10 +267,23 @@ extern "C" { f_number_unsigned_t size; } f_socket_addressss_t; - #define f_socket_addressss_t_initialize { 0, 0, 0 } + #define f_socket_addressss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_socket_addressss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_socket_addressss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_socket_addressss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_socket_addressss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_socket_addressss_t_clear(socket_addressss) { \ socket_addressss.array = 0; \ diff --git a/level_0/f_socket/c/socket/socket.h b/level_0/f_socket/c/socket/socket.h index c563007..be33c85 100644 --- a/level_0/f_socket/c/socket/socket.h +++ b/level_0/f_socket/c/socket/socket.h @@ -56,87 +56,87 @@ extern "C" { } f_socket_t; #define f_socket_t_initialize { \ - -1, \ - -1, \ - 0, \ - 0, \ - 0, \ - f_socket_address_form_generic_e, \ - F_socket_default_read_size_d, \ - F_socket_default_write_size_d, \ - f_socket_address_t_initialize, \ - 0, \ - f_string_static_t_initialize \ + .id = -1, \ + .id_data = -1, \ + .domain = 0, \ + .protocol = 0, \ + .type = 0, \ + .form = f_socket_address_form_generic_e, \ + .size_read = F_socket_default_read_size_d, \ + .size_write = F_socket_default_write_size_d, \ + .address = f_socket_address_t_initialize, \ + .length = 0, \ + .name = f_string_static_t_initialize \ } - #define macro_f_socket_t_initialize_1(form, address, length) { \ - -1, \ - -1, \ - 0, \ - 0, \ - 0, \ - form, \ - F_socket_default_read_size_d, \ - F_socket_default_write_size_d, \ - address, \ - length, \ - f_string_empty_s \ + #define macro_f_socket_t_initialize_1(form_value, address_value, length_value) { \ + .id = -1, \ + .id_data = -1, \ + .domain = 0, \ + .protocol = 0, \ + .type = 0, \ + .form = form_value, \ + .size_read = F_socket_default_read_size_d, \ + .size_write = F_socket_default_write_size_d, \ + .address = address_value, \ + .length = length_value, \ + .name = f_string_empty_s, \ } - #define macro_f_socket_t_initialize_2(form, address, length, name) { \ - -1, \ - -1, \ - 0, \ - 0, \ - 0, \ - form, \ - F_socket_default_read_size_d, \ - F_socket_default_write_size_d, \ - address, \ - length, \ - name \ + #define macro_f_socket_t_initialize_2(form_value, address_value, length_value, name_value) { \ + .id = -1, \ + .id_data = -1, \ + .domain = 0, \ + .protocol = 0, \ + .type = 0, \ + .form = form_value, \ + .size_read = F_socket_default_read_size_d, \ + .size_write = F_socket_default_write_size_d, \ + .address = address_value, \ + .length = length_value, \ + .name = name_value, \ } - #define macro_f_socket_t_initialize_3(id, domain, protocol, type, form, address, length, name) { \ - id, \ - -1, \ - domain, \ - protocol, \ - type, \ - form, \ - F_socket_default_read_size_d, \ - F_socket_default_write_size_d, \ - address, \ - length, \ - name \ + #define macro_f_socket_t_initialize_3(id_value, domain_value, protocol_value, type_value, form_value, address_value, length_value, name_value) { \ + .id = id_value, \ + .id_data = -1, \ + .domain = domain_value, \ + .protocol = protocol_value, \ + .type = type_value, \ + .form = form_value, \ + .size_read = F_socket_default_read_size_d, \ + .size_write = F_socket_default_write_size_d, \ + .address = address_value, \ + .length = length_value, \ + .name = name_value, \ } - #define macro_f_socket_t_initialize_4(id, domain, protocol, type, form, size_read, size_write, address, length, name) { \ - id, \ - -1, \ - domain, \ - protocol, \ - type, \ - form, \ - size_read, \ - size_write, \ - address, \ - length, \ - name \ + #define macro_f_socket_t_initialize_4(id_value, domain_value, protocol_value, type_value, form_value, size_read_value, size_write_value, address_value, length_value, name_value) { \ + .id = id_value, \ + .id_data = -1, \ + .domain = domain_value, \ + .protocol = protocol_value, \ + .type = type_value, \ + .form = form_value, \ + .size_read = size_read, \ + .size_write = size_write, \ + .address = address_value, \ + .length = length_value, \ + .name = name_value, \ } - #define macro_f_socket_t_initialize_5(id, id_data, domain, protocol, type, form, size_read, size_write, address, length, name) { \ - id, \ - id_data, \ - domain, \ - protocol, \ - type, \ - form, \ - size_read, \ - size_write, \ - address, \ - length, \ - name \ + #define macro_f_socket_t_initialize_5(id_value, id_data_value, domain_value, protocol_value, type_value, form_value, size_read_value, size_write_value, address_value, length_value, name_value) { \ + .id = id_value, \ + .id_data = id_data_value, \ + .domain = domain_value, \ + .protocol = protocol_value, \ + .type = type_value, \ + .form = form_value, \ + .size_read = size_read, \ + .size_write = size_write, \ + .address = address_value, \ + .length = length_value, \ + .name = name_value, \ } #define macro_f_socket_t_clear(file) { \ @@ -182,10 +182,23 @@ extern "C" { f_number_unsigned_t size; } f_sockets_t; - #define f_sockets_t_initialize { 0, 0, 0 } + #define f_sockets_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_sockets_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_sockets_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_sockets_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_sockets_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_sockets_t_clear(sockets) { \ sockets.array = 0; \ @@ -210,10 +223,23 @@ extern "C" { f_number_unsigned_t size; } f_socketss_t; - #define f_socketss_t_initialize { 0, 0, 0 } + #define f_socketss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_socketss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_socketss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_socketss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_socketss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_socketss_t_clear(socketss) { \ socketss.array = 0; \ diff --git a/level_0/f_string/c/string/map.h b/level_0/f_string/c/string/map.h index 52b6c63..b3879f5 100644 --- a/level_0/f_string/c/string/map.h +++ b/level_0/f_string/c/string/map.h @@ -29,9 +29,15 @@ extern "C" { f_string_dynamic_t value; } f_string_map_t; - #define f_string_map_t_initialize { f_string_dynamic_t_initialize, f_string_dynamic_t_initialize } + #define f_string_map_t_initialize { \ + .key = f_string_dynamic_t_initialize, \ + .value = f_string_dynamic_t_initialize, \ + } - #define macro_f_string_map_t_initialize_1(key, value) { key, value } + #define macro_f_string_map_t_initialize_1(key_value, value_value) { \ + .key = key_value, \ + .value = value_value, \ + } #define macro_f_string_map_t_clear(map) { \ macro_f_string_dynamic_t_clear(map.key) \ diff --git a/level_0/f_string/c/string/map_multi.h b/level_0/f_string/c/string/map_multi.h index 3ecb2c6..7669843 100644 --- a/level_0/f_string/c/string/map_multi.h +++ b/level_0/f_string/c/string/map_multi.h @@ -29,9 +29,15 @@ extern "C" { f_string_dynamics_t value; } f_string_map_multi_t; - #define f_string_map_multi_t_initialize { f_string_dynamic_t_initialize, f_string_dynamics_t_initialize } + #define f_string_map_multi_t_initialize { \ + .key = f_string_dynamic_t_initialize, \ + .value = f_string_dynamics_t_initialize, \ + } - #define macro_f_string_map_multi_t_initialize_1(key, value) { key, value } + #define macro_f_string_map_multi_t_initialize_1(key_value, value_value) { \ + .key = key_value, \ + .value = value_value, \ + } #define macro_f_string_map_multi_t_clear(key) { \ macro_f_string_dynamic_t_clear(key.name) \ diff --git a/level_0/f_string/c/string/map_multis.h b/level_0/f_string/c/string/map_multis.h index 9a577f9..16ed03f 100644 --- a/level_0/f_string/c/string/map_multis.h +++ b/level_0/f_string/c/string/map_multis.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_map_multis_t; - #define f_string_map_multis_t_initialize f_string_statics_t_initialize + #define f_string_map_multis_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_map_multis_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_map_multis_t_initialize_1(array, size, used) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_map_multis_t_initialize_2(array, length) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_map_multis_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_map_multis_t_clear(map_multis) { \ map_multis.array = 0; \ diff --git a/level_0/f_string/c/string/map_multiss.h b/level_0/f_string/c/string/map_multiss.h index aa8c5c2..7029409 100644 --- a/level_0/f_string/c/string/map_multiss.h +++ b/level_0/f_string/c/string/map_multiss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_map_multiss_t; - #define f_string_map_multiss_t_initialize f_string_statics_t_initialize + #define f_string_map_multiss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_map_multiss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_map_multiss_t_initialize_1(array, size, used) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_map_multiss_t_initialize_2(array, length) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_map_multiss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_map_multiss_t_clear(map_multiss) { \ map_multiss.array = 0; \ diff --git a/level_0/f_string/c/string/maps.h b/level_0/f_string/c/string/maps.h index 0a30ee6..dcf116b 100644 --- a/level_0/f_string/c/string/maps.h +++ b/level_0/f_string/c/string/maps.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_maps_t; - #define f_string_maps_t_initialize f_string_statics_t_initialize + #define f_string_maps_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_maps_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_maps_t_initialize_1(array, size, used) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_maps_t_initialize_2(array, length) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_maps_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_maps_t_clear(maps) { \ maps.array = 0; \ diff --git a/level_0/f_string/c/string/mapss.h b/level_0/f_string/c/string/mapss.h index 8d36282..e91c6c6 100644 --- a/level_0/f_string/c/string/mapss.h +++ b/level_0/f_string/c/string/mapss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_mapss_t; - #define f_string_mapss_t_initialize f_string_statics_t_initialize + #define f_string_mapss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_mapss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_mapss_t_initialize_1(array, size, used) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_mapss_t_initialize_2(array, length) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_mapss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_mapss_t_clear(mapss) { \ mapss.array = 0; \ diff --git a/level_0/f_string/c/string/static.h b/level_0/f_string/c/string/static.h index a6c8437..6e590a3 100644 --- a/level_0/f_string/c/string/static.h +++ b/level_0/f_string/c/string/static.h @@ -40,10 +40,23 @@ extern "C" { f_number_unsigned_t size; } f_string_static_t; - #define f_string_static_t_initialize { 0, 0, 0 } + #define f_string_static_t_initialize { \ + .string = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_static_t_initialize_1(string_value, used_value, size_value) { \ + .string = string_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_static_t_initialize_1(string_value, used_value, size_value) { .string = string_value, .used = used_value, .size = size_value } - #define macro_f_string_static_t_initialize_2(string_value, length_value) { .string = string_value, .used = length_value, .size = length_value } + #define macro_f_string_static_t_initialize_2(string_value, length_value) { \ + .string = string_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_static_t_clear(string_static) { \ string_static.string = 0; \ diff --git a/level_0/f_string/c/string/statics.h b/level_0/f_string/c/string/statics.h index 31bd327..4c41a21 100644 --- a/level_0/f_string/c/string/statics.h +++ b/level_0/f_string/c/string/statics.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_statics_t; - #define f_string_statics_t_initialize { 0, 0, 0 } + #define f_string_statics_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_statics_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_statics_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_statics_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_statics_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_statics_t_clear(statics) { \ statics.array = 0; \ diff --git a/level_0/f_string/c/string/staticss.h b/level_0/f_string/c/string/staticss.h index 20755da..6866954 100644 --- a/level_0/f_string/c/string/staticss.h +++ b/level_0/f_string/c/string/staticss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_staticss_t; - #define f_string_staticss_t_initialize { 0, 0, 0 } + #define f_string_staticss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_staticss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_staticss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_staticss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_staticss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_staticss_t_clear(staticss) { \ staticss.array = 0; \ diff --git a/level_0/f_string/c/string/triple.h b/level_0/f_string/c/string/triple.h index a4d6e46..5a87442 100644 --- a/level_0/f_string/c/string/triple.h +++ b/level_0/f_string/c/string/triple.h @@ -31,9 +31,17 @@ extern "C" { f_string_dynamic_t c; } f_string_triple_t; - #define f_string_triple_t_initialize { f_string_dynamic_t_initialize, f_string_dynamic_t_initialize, f_string_dynamic_t_initialize } + #define f_string_triple_t_initialize { \ + .a = f_string_dynamic_t_initialize, \ + .b = f_string_dynamic_t_initialize, \ + .c = f_string_dynamic_t_initialize, \ + } - #define macro_f_string_triple_t_initialize_1(a, b, c) { a, b, c } + #define macro_f_string_triple_t_initialize_1(a_value, b_value, c_value) { \ + .a = a_value, \ + .b = b_value, \ + .c = c_value, \ + } #define macro_f_string_triple_t_clear(triple) { \ macro_f_string_dynamic_t_clear(triple.a) \ diff --git a/level_0/f_string/c/string/triples.h b/level_0/f_string/c/string/triples.h index a915a5a..7aa6314 100644 --- a/level_0/f_string/c/string/triples.h +++ b/level_0/f_string/c/string/triples.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_triples_t; - #define f_string_triples_t_initialize f_string_statics_t_initialize + #define f_string_triples_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_triples_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_triples_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_triples_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_triples_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_triples_t_clear(triples) { \ triples.array = 0; \ diff --git a/level_0/f_string/c/string/tripless.h b/level_0/f_string/c/string/tripless.h index bb2243a..db5ef75 100644 --- a/level_0/f_string/c/string/tripless.h +++ b/level_0/f_string/c/string/tripless.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_string_tripless_t; - #define f_string_tripless_t_initialize f_string_statics_t_initialize + #define f_string_tripless_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_string_tripless_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_string_tripless_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_string_tripless_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_string_tripless_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_string_tripless_t_clear(tripless) { \ tripless.array = 0; \ diff --git a/level_0/f_thread/c/thread/attributes.h b/level_0/f_thread/c/thread/attributes.h index bf546f1..991d8e3 100644 --- a/level_0/f_thread/c/thread/attributes.h +++ b/level_0/f_thread/c/thread/attributes.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_attributes_t; - #define f_thread_attributes_t_initialize { 0, 0, 0 } + #define f_thread_attributes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_attributes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_attributes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_attributes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_attributes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_attributes_t_clear(thread_attributes) { \ thread_attributes.array = 0; \ diff --git a/level_0/f_thread/c/thread/attributess.h b/level_0/f_thread/c/thread/attributess.h index 8d6873e..a1ada9c 100644 --- a/level_0/f_thread/c/thread/attributess.h +++ b/level_0/f_thread/c/thread/attributess.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_attributess_t; - #define f_thread_attributess_t_initialize { 0, 0, 0 } + #define f_thread_attributess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_attributess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_attributess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_attributess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_attributess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_attributess_t_clear(thread_attributess) { \ thread_attributess.array = 0; \ diff --git a/level_0/f_thread/c/thread/barrier.h b/level_0/f_thread/c/thread/barrier.h index 954ea5d..fa7000d 100644 --- a/level_0/f_thread/c/thread/barrier.h +++ b/level_0/f_thread/c/thread/barrier.h @@ -18,6 +18,8 @@ extern "C" { /** * A typedef representing pthread_barrier_t. + * + * This does not provide a clear macro because pthread_barrier_t requires special functions to perform a clear. */ #ifndef _di_f_thread_barrier_t_ typedef pthread_barrier_t f_thread_barrier_t; @@ -25,8 +27,6 @@ extern "C" { #define f_thread_barrier_t_initialize { 0 } #define macro_f_thread_barrier_t_initialize_1(barrier) barrier - - #define macro_f_thread_barrier_t_clear(barrier) barrier = 0; #endif // _di_f_thread_barrier_t_ /** diff --git a/level_0/f_thread/c/thread/barrier_attribute.h b/level_0/f_thread/c/thread/barrier_attribute.h index b259225..64b2fa8 100644 --- a/level_0/f_thread/c/thread/barrier_attribute.h +++ b/level_0/f_thread/c/thread/barrier_attribute.h @@ -18,8 +18,6 @@ extern "C" { /** * A typedef representing pthread_barrierattr_t. - * - * This does not provide a clear macro because pthread_cond_t requires special functions to perform a clear. */ #ifndef _di_f_thread_barrier_attribute_t_ typedef pthread_barrierattr_t f_thread_barrier_attribute_t; diff --git a/level_0/f_thread/c/thread/barrier_attributes.h b/level_0/f_thread/c/thread/barrier_attributes.h index 81e3ec8..7170c90 100644 --- a/level_0/f_thread/c/thread/barrier_attributes.h +++ b/level_0/f_thread/c/thread/barrier_attributes.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_barrier_attributes_t; - #define f_thread_barrier_attributes_t_initialize { 0, 0, 0 } + #define f_thread_barrier_attributes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_barrier_attributes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_barrier_attributes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barrier_attributes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barrier_attributes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_barrier_attributes_t_clear(thread_barrier_attributes) { \ thread_barrier_attributes.array = 0; \ diff --git a/level_0/f_thread/c/thread/barrier_attributess.h b/level_0/f_thread/c/thread/barrier_attributess.h index 32fa6a8..9623fe4 100644 --- a/level_0/f_thread/c/thread/barrier_attributess.h +++ b/level_0/f_thread/c/thread/barrier_attributess.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_barrier_attributess_t; - #define f_thread_barrier_attributess_t_initialize { 0, 0, 0 } + #define f_thread_barrier_attributess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_barrier_attributess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_barrier_attributess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barrier_attributess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barrier_attributess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_barrier_attributess_t_clear(thread_barrier_attributess) { \ thread_barrier_attributess.array = 0; \ diff --git a/level_0/f_thread/c/thread/barrier_full.h b/level_0/f_thread/c/thread/barrier_full.h index 46abbd5..5a78a6d 100644 --- a/level_0/f_thread/c/thread/barrier_full.h +++ b/level_0/f_thread/c/thread/barrier_full.h @@ -29,9 +29,15 @@ extern "C" { f_thread_barrier_attribute_t attribute; } f_thread_barrier_full_t; - #define f_thread_barrier_full_t_initialize { f_thread_barrier_t_initialize, f_thread_barrier_attribute_t_initialize } + #define f_thread_barrier_full_t_initialize { \ + .barrier = f_thread_barrier_t_initialize, \ + .attribute = f_thread_barrier_attribute_t_initialize, \ + } - #define macro_f_thread_barrier_full_t_initialize_1(barrier, attribute) { barrier, attribute } + #define macro_f_thread_barrier_full_t_initialize_1(barrier_value, attribute_value) { \ + .barrier = barrier_value, \ + .attribute = attribute_value, \ + } #define macro_f_thread_barrier_full_t_clear(thread_barrier_full) { \ macro_f_thread_barrier_attribute_t_clear(thread_barrier_full.attribute) \ diff --git a/level_0/f_thread/c/thread/barrier_fulls.h b/level_0/f_thread/c/thread/barrier_fulls.h index 0580947..5ea000b 100644 --- a/level_0/f_thread/c/thread/barrier_fulls.h +++ b/level_0/f_thread/c/thread/barrier_fulls.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_barrier_fulls_t; - #define f_thread_barrier_fulls_t_initialize { 0, 0, 0 } + #define f_thread_barrier_fulls_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_barrier_fulls_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_barrier_fulls_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barrier_fulls_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barrier_fulls_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_barrier_fulls_t_clear(thread_barrier_fulls) { \ thread_barrier_fulls.array = 0; \ diff --git a/level_0/f_thread/c/thread/barrier_fullss.h b/level_0/f_thread/c/thread/barrier_fullss.h index 0dfb573..fcf664a 100644 --- a/level_0/f_thread/c/thread/barrier_fullss.h +++ b/level_0/f_thread/c/thread/barrier_fullss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_barrier_fullss_t; - #define f_thread_barrier_fullss_t_initialize { 0, 0, 0 } + #define f_thread_barrier_fullss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_barrier_fullss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_barrier_fullss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barrier_fullss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barrier_fullss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_barrier_fullss_t_clear(thread_barrier_fullss) { \ thread_barrier_fullss.array = 0; \ diff --git a/level_0/f_thread/c/thread/barriers.h b/level_0/f_thread/c/thread/barriers.h index 524c07a..05421b7 100644 --- a/level_0/f_thread/c/thread/barriers.h +++ b/level_0/f_thread/c/thread/barriers.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_barriers_t; - #define f_thread_barriers_t_initialize { 0, 0, 0 } + #define f_thread_barriers_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_barriers_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_barriers_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barriers_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barriers_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_barriers_t_clear(thread_barriers) { \ thread_barriers.array = 0; \ diff --git a/level_0/f_thread/c/thread/barrierss.h b/level_0/f_thread/c/thread/barrierss.h index ee5d768..281940e 100644 --- a/level_0/f_thread/c/thread/barrierss.h +++ b/level_0/f_thread/c/thread/barrierss.h @@ -32,10 +32,29 @@ extern "C" { f_number_unsigned_t size; } f_thread_barrierss_t; - #define f_thread_barrierss_t_initialize { 0, 0, 0 } + #define f_thread_barrierss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_thread_barrierss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_barrierss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_barrierss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_thread_barrierss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } + + #define macro_f_thread_barrierss_t_clear(thread_barrierss) { \ + thread_barrierss.array = 0; \ + thread_barrierss.used = 0; \ + thread_barrierss.size = 0; \ + } #endif // _di_f_thread_barrierss_t_ /** diff --git a/level_0/f_thread/c/thread/condition_attributes.h b/level_0/f_thread/c/thread/condition_attributes.h index d3b5fec..4a71bdb 100644 --- a/level_0/f_thread/c/thread/condition_attributes.h +++ b/level_0/f_thread/c/thread/condition_attributes.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_condition_attributes_t; - #define f_thread_condition_attributes_t_initialize { 0, 0, 0 } + #define f_thread_condition_attributes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_condition_attributes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_condition_attributes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_condition_attributes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_condition_attributes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_condition_attributes_t_clear(thread_condition_attributes) { \ thread_condition_attributes.array = 0; \ diff --git a/level_0/f_thread/c/thread/condition_attributess.h b/level_0/f_thread/c/thread/condition_attributess.h index c3d5766..3021557 100644 --- a/level_0/f_thread/c/thread/condition_attributess.h +++ b/level_0/f_thread/c/thread/condition_attributess.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_condition_attributess_t; - #define f_thread_condition_attributess_t_initialize { 0, 0, 0 } + #define f_thread_condition_attributess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_condition_attributess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_condition_attributess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_condition_attributess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_condition_attributess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_condition_attributess_t_clear(thread_condition_attributess) { \ thread_condition_attributess.array = 0; \ diff --git a/level_0/f_thread/c/thread/condition_full.h b/level_0/f_thread/c/thread/condition_full.h index 0a0921f..62207f4 100644 --- a/level_0/f_thread/c/thread/condition_full.h +++ b/level_0/f_thread/c/thread/condition_full.h @@ -29,9 +29,15 @@ extern "C" { f_thread_condition_attribute_t attribute; } f_thread_condition_full_t; - #define f_thread_condition_full_t_initialize { f_thread_condition_t_initialize, f_thread_condition_attribute_t_initialize } + #define f_thread_condition_full_t_initialize { \ + .condition = f_thread_condition_t_initialize, \ + .attribute = f_thread_condition_attribute_t_initialize, \ + } - #define macro_f_thread_condition_full_t_initialize_1(condition, attribute) { condition, attribute } + #define macro_f_thread_condition_full_t_initialize_1(condition_value, attribute_value) { \ + .condition = condition_value, \ + .attribute = attribute_value, \ + } #define macro_f_thread_condition_full_t_clear(thread_condition_full) { \ macro_f_thread_condition_attribute_t_clear(thread_condition_full.condition_attribute) \ diff --git a/level_0/f_thread/c/thread/condition_fulls.h b/level_0/f_thread/c/thread/condition_fulls.h index 39853c2..1bb486e 100644 --- a/level_0/f_thread/c/thread/condition_fulls.h +++ b/level_0/f_thread/c/thread/condition_fulls.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_condition_fulls_t; - #define f_thread_condition_fulls_t_initialize { 0, 0, 0 } + #define f_thread_condition_fulls_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_condition_fulls_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_condition_fulls_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_condition_fulls_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_condition_fulls_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_condition_fulls_t_clear(thread_condition_fulls) { \ thread_condition_fulls.array = 0; \ diff --git a/level_0/f_thread/c/thread/condition_fullss.h b/level_0/f_thread/c/thread/condition_fullss.h index 4dae034..aad727e 100644 --- a/level_0/f_thread/c/thread/condition_fullss.h +++ b/level_0/f_thread/c/thread/condition_fullss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_condition_fullss_t; - #define f_thread_condition_fullss_t_initialize { 0, 0, 0 } + #define f_thread_condition_fullss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_condition_fullss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_condition_fullss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_condition_fullss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_condition_fullss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_condition_fullss_t_clear(thread_condition_fullss) { \ thread_condition_fullss.array = 0; \ diff --git a/level_0/f_thread/c/thread/conditions.h b/level_0/f_thread/c/thread/conditions.h index 2d265d9..5a26744 100644 --- a/level_0/f_thread/c/thread/conditions.h +++ b/level_0/f_thread/c/thread/conditions.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_conditions_t; - #define f_thread_conditions_t_initialize { 0, 0, 0 } + #define f_thread_conditions_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_conditions_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_conditions_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_conditions_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_conditions_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_conditions_t_clear(thread_conditions) { \ thread_conditions.array = 0; \ diff --git a/level_0/f_thread/c/thread/conditionss.h b/level_0/f_thread/c/thread/conditionss.h index 85f2882..a49b79d 100644 --- a/level_0/f_thread/c/thread/conditionss.h +++ b/level_0/f_thread/c/thread/conditionss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_conditionss_t; - #define f_thread_conditionss_t_initialize { 0, 0, 0 } + #define f_thread_conditionss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_conditionss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_conditionss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_conditionss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_conditionss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_conditionss_t_clear(thread_conditionss) { \ thread_conditionss.array = 0; \ diff --git a/level_0/f_thread/c/thread/ids.h b/level_0/f_thread/c/thread/ids.h index 76a2317..af6250f 100644 --- a/level_0/f_thread/c/thread/ids.h +++ b/level_0/f_thread/c/thread/ids.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_ids_t; - #define f_thread_ids_t_initialize { 0, 0, 0 } + #define f_thread_ids_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_ids_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_ids_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_ids_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_ids_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_ids_t_clear(thread_ids) { \ thread_ids.array = 0; \ diff --git a/level_0/f_thread/c/thread/idss.h b/level_0/f_thread/c/thread/idss.h index ae46e47..523e8e4 100644 --- a/level_0/f_thread/c/thread/idss.h +++ b/level_0/f_thread/c/thread/idss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_idss_t; - #define f_thread_idss_t_initialize { 0, 0, 0 } + #define f_thread_idss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_idss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_idss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_idss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_idss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_idss_t_clear(thread_idss) { \ thread_idss.array = 0; \ diff --git a/level_0/f_thread/c/thread/keys.h b/level_0/f_thread/c/thread/keys.h index 7d79262..430edd3 100644 --- a/level_0/f_thread/c/thread/keys.h +++ b/level_0/f_thread/c/thread/keys.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_keys_t; - #define f_thread_keys_t_initialize { 0, 0, 0 } + #define f_thread_keys_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_keys_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_keys_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_keys_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_keys_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_keys_t_clear(thread_keys) { \ thread_keys.array = 0; \ diff --git a/level_0/f_thread/c/thread/keyss.h b/level_0/f_thread/c/thread/keyss.h index e7a8b1b..bc40007 100644 --- a/level_0/f_thread/c/thread/keyss.h +++ b/level_0/f_thread/c/thread/keyss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_keyss_t; - #define f_thread_keyss_t_initialize { 0, 0, 0 } + #define f_thread_keyss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_keyss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_keyss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_keyss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_keyss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_keyss_t_clear(thread_keyss) { \ thread_keyss.array = 0; \ diff --git a/level_0/f_thread/c/thread/lock_attributes.h b/level_0/f_thread/c/thread/lock_attributes.h index 7b6daba..046ceee 100644 --- a/level_0/f_thread/c/thread/lock_attributes.h +++ b/level_0/f_thread/c/thread/lock_attributes.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_lock_attributes_t; - #define f_thread_lock_attributes_t_initialize { 0, 0, 0 } + #define f_thread_lock_attributes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_lock_attributes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_lock_attributes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_lock_attributes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_lock_attributes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_lock_attributes_t_clear(lock_attributes) { \ lock_attributes.array = 0; \ diff --git a/level_0/f_thread/c/thread/lock_attributess.h b/level_0/f_thread/c/thread/lock_attributess.h index 649ea5f..6b1ef04 100644 --- a/level_0/f_thread/c/thread/lock_attributess.h +++ b/level_0/f_thread/c/thread/lock_attributess.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_lock_attributess_t; - #define f_thread_lock_attributess_t_initialize { 0, 0, 0 } + #define f_thread_lock_attributess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_lock_attributess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_lock_attributess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_lock_attributess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_lock_attributess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_lock_attributess_t_clear(lock_attributess) { \ lock_attributess.array = 0; \ diff --git a/level_0/f_thread/c/thread/lock_full.h b/level_0/f_thread/c/thread/lock_full.h index f235965..f9b19ae 100644 --- a/level_0/f_thread/c/thread/lock_full.h +++ b/level_0/f_thread/c/thread/lock_full.h @@ -29,9 +29,15 @@ extern "C" { f_thread_lock_attribute_t attribute; } f_thread_lock_full_t; - #define f_thread_lock_full_t_initialize { f_thread_lock_t_initialize, f_thread_lock_attribute_t_initialize } + #define f_thread_lock_full_t_initialize { \ + .lock = f_thread_lock_t_initialize, \ + .attribute = f_thread_lock_attribute_t_initialize, \ + } - #define macro_f_thread_lock_full_t_initialize_1(lock, attribute) { lock, attribute } + #define macro_f_thread_lock_full_t_initialize_1(lock_value, attribute_value) { \ + .lock = lock_value, \ + .attribute = attribute_value, \ + } #define macro_f_thread_lock_full_t_clear(thread_lock_full) { \ macro_f_thread_lock_attribute_t_clear(thread_lock_full.attribute) \ diff --git a/level_0/f_thread/c/thread/lock_fulls.h b/level_0/f_thread/c/thread/lock_fulls.h index 27188bd..14fae5f 100644 --- a/level_0/f_thread/c/thread/lock_fulls.h +++ b/level_0/f_thread/c/thread/lock_fulls.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_lock_fulls_t; - #define f_thread_lock_fulls_t_initialize { 0, 0, 0 } + #define f_thread_lock_fulls_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_lock_fulls_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_lock_fulls_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_lock_fulls_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_lock_fulls_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_lock_fulls_t_clear(thread_lock_fulls) { \ thread_lock_fulls.array = 0; \ diff --git a/level_0/f_thread/c/thread/lock_fullss.h b/level_0/f_thread/c/thread/lock_fullss.h index 2ec8d21..60ae55b 100644 --- a/level_0/f_thread/c/thread/lock_fullss.h +++ b/level_0/f_thread/c/thread/lock_fullss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t used; } f_thread_lock_fullss_t; - #define f_thread_lock_fullss_t_initialize { 0, 0, 0 } + #define f_thread_lock_fullss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_lock_fullss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_lock_fullss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_lock_fullss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_lock_fullss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_lock_fullss_t_clear(thread_lock_fullss) { \ thread_lock_fullss.array = 0; \ diff --git a/level_0/f_thread/c/thread/locks.h b/level_0/f_thread/c/thread/locks.h index 7b9c31a..8b9fb6d 100644 --- a/level_0/f_thread/c/thread/locks.h +++ b/level_0/f_thread/c/thread/locks.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_locks_t; - #define f_thread_locks_t_initialize { 0, 0, 0 } + #define f_thread_locks_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_locks_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_locks_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_locks_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_locks_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_locks_t_clear(thread_locks) { \ thread_locks.array = 0; \ diff --git a/level_0/f_thread/c/thread/lockss.h b/level_0/f_thread/c/thread/lockss.h index 812ed6f..9d0b937 100644 --- a/level_0/f_thread/c/thread/lockss.h +++ b/level_0/f_thread/c/thread/lockss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_lockss_t; - #define f_thread_lockss_t_initialize { 0, 0, 0 } + #define f_thread_lockss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_lockss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_lockss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_lockss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_lockss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_lockss_t_clear(thread_lockss) { \ thread_lockss.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutex_attributes.h b/level_0/f_thread/c/thread/mutex_attributes.h index c3d98e1..b25ffb9 100644 --- a/level_0/f_thread/c/thread/mutex_attributes.h +++ b/level_0/f_thread/c/thread/mutex_attributes.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutex_attributes_t; - #define f_thread_mutex_attributes_t_initialize { 0, 0, 0 } + #define f_thread_mutex_attributes_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutex_attributes_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutex_attributes_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutex_attributes_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutex_attributes_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutex_attributes_t_clear(thread_mutex_attributes) { \ thread_mutex_attributes.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutex_attributess.h b/level_0/f_thread/c/thread/mutex_attributess.h index 32dea68..f52dd3d 100644 --- a/level_0/f_thread/c/thread/mutex_attributess.h +++ b/level_0/f_thread/c/thread/mutex_attributess.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutex_attributess_t; - #define f_thread_mutex_attributess_t_initialize { 0, 0, 0 } + #define f_thread_mutex_attributess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutex_attributess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutex_attributess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutex_attributess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutex_attributess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutex_attributess_t_clear(thread_mutex_attributess) { \ thread_mutex_attributess.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutex_full.h b/level_0/f_thread/c/thread/mutex_full.h index a44ffc8..a0f2a99 100644 --- a/level_0/f_thread/c/thread/mutex_full.h +++ b/level_0/f_thread/c/thread/mutex_full.h @@ -29,9 +29,15 @@ extern "C" { f_thread_mutex_attribute_t attribute; } f_thread_mutex_full_t; - #define f_thread_mutex_full_t_initialize { f_thread_mutex_t_initialize, f_thread_mutex_attribute_t_initialize } + #define f_thread_mutex_full_t_initialize { \ + .mutex = f_thread_mutex_t_initialize, \ + .attribute = f_thread_mutex_attribute_t_initialize, \ + } - #define macro_f_thread_mutex_full_t_initialize_1(mutex, attribute) { mutex, attribute } + #define macro_f_thread_mutex_full_t_initialize_1(mutex_value, attribute_value) { \ + .mutex = mutex_value, \ + .attribute = attribute_value, \ + } #define macro_f_thread_mutex_full_t_clear(thread_mutex_full) { \ macro_f_thread_mutex_attribute_t_clear(thread_mutex_full.attribute)\ diff --git a/level_0/f_thread/c/thread/mutex_fulls.h b/level_0/f_thread/c/thread/mutex_fulls.h index 533407e..22f40c3 100644 --- a/level_0/f_thread/c/thread/mutex_fulls.h +++ b/level_0/f_thread/c/thread/mutex_fulls.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutex_fulls_t; - #define f_thread_mutex_fulls_t_initialize { 0, 0, 0 } + #define f_thread_mutex_fulls_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutex_fulls_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutex_fulls_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutex_fulls_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutex_fulls_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutex_fulls_t_clear(thread_mutex_fulls) { \ thread_mutex_fulls.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutex_fullss.h b/level_0/f_thread/c/thread/mutex_fullss.h index d8e3c78..c481dfe 100644 --- a/level_0/f_thread/c/thread/mutex_fullss.h +++ b/level_0/f_thread/c/thread/mutex_fullss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutex_fullss_t; - #define f_thread_mutex_fullss_t_initialize { 0, 0, 0 } + #define f_thread_mutex_fullss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutex_fullss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutex_fullss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutex_fullss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutex_fullss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutex_fullss_t_clear(thread_mutex_fullss) { \ thread_mutex_fullss.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutexs.h b/level_0/f_thread/c/thread/mutexs.h index 6a3954f..56b26ca 100644 --- a/level_0/f_thread/c/thread/mutexs.h +++ b/level_0/f_thread/c/thread/mutexs.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutexs_t; - #define f_thread_mutexs_t_initialize { 0, 0, 0 } + #define f_thread_mutexs_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutexs_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutexs_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutexs_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutexs_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutexs_t_clear(thread_mutexs) { \ thread_mutexs.array = 0; \ diff --git a/level_0/f_thread/c/thread/mutexss.h b/level_0/f_thread/c/thread/mutexss.h index 635f850..b74991a 100644 --- a/level_0/f_thread/c/thread/mutexss.h +++ b/level_0/f_thread/c/thread/mutexss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_mutexss_t; - #define f_thread_mutexss_t_initialize { 0, 0, 0 } + #define f_thread_mutexss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_mutexss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_mutexss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_mutexss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_mutexss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_mutexss_t_clear(thread_mutexss) { \ thread_mutexss.array = 0; \ diff --git a/level_0/f_thread/c/thread/onces.h b/level_0/f_thread/c/thread/onces.h index 9ad68a3..8a00315 100644 --- a/level_0/f_thread/c/thread/onces.h +++ b/level_0/f_thread/c/thread/onces.h @@ -34,10 +34,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_onces_t; - #define f_thread_onces_t_initialize { 0, 0, 0 } + #define f_thread_onces_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_onces_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_onces_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_onces_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_onces_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_onces_t_clear(thread_onces) { \ thread_onces.array = 0; \ diff --git a/level_0/f_thread/c/thread/oncess.h b/level_0/f_thread/c/thread/oncess.h index cb3935c..6691f32 100644 --- a/level_0/f_thread/c/thread/oncess.h +++ b/level_0/f_thread/c/thread/oncess.h @@ -34,10 +34,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_oncess_t; - #define f_thread_oncess_t_initialize { 0, 0, 0 } + #define f_thread_oncess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_oncess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_oncess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_oncess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_oncess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_oncess_t_clear(thread_oncess) { \ thread_oncess.array = 0; \ diff --git a/level_0/f_thread/c/thread/semaphores.h b/level_0/f_thread/c/thread/semaphores.h index cc54e76..261dbc6 100644 --- a/level_0/f_thread/c/thread/semaphores.h +++ b/level_0/f_thread/c/thread/semaphores.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_semaphores_t; - #define f_thread_semaphores_t_initialize { 0, 0, 0 } + #define f_thread_semaphores_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_semaphores_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_semaphores_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_semaphores_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_semaphores_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_semaphores_t_clear(thread_semaphores) { \ thread_semaphores.array = 0; \ diff --git a/level_0/f_thread/c/thread/semaphoress.h b/level_0/f_thread/c/thread/semaphoress.h index ce6a1b1..d57d385 100644 --- a/level_0/f_thread/c/thread/semaphoress.h +++ b/level_0/f_thread/c/thread/semaphoress.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_semaphoress_t; - #define f_thread_semaphoress_t_initialize { 0, 0, 0 } + #define f_thread_semaphoress_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_semaphoress_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_semaphoress_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_semaphoress_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_semaphoress_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_semaphoress_t_clear(thread_semaphoress) { \ thread_semaphoress.array = 0; \ diff --git a/level_0/f_thread/c/thread/spins.h b/level_0/f_thread/c/thread/spins.h index 1b7c362..ed8eea7 100644 --- a/level_0/f_thread/c/thread/spins.h +++ b/level_0/f_thread/c/thread/spins.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_spins_t; - #define f_thread_spins_t_initialize { 0, 0, 0 } + #define f_thread_spins_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_spins_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_spins_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_spins_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_spins_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_spins_t_clear(thread_spins) { \ thread_spins.array = 0; \ diff --git a/level_0/f_thread/c/thread/spinss.h b/level_0/f_thread/c/thread/spinss.h index c2e3c7d..53379a9 100644 --- a/level_0/f_thread/c/thread/spinss.h +++ b/level_0/f_thread/c/thread/spinss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_thread_spinss_t; - #define f_thread_spinss_t_initialize { 0, 0, 0 } + #define f_thread_spinss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_thread_spinss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_thread_spinss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_thread_spinss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_thread_spinss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_thread_spinss_t_clear(thread_spinss) { \ thread_spinss.array = 0; \ diff --git a/level_0/f_type/c/type/cell.h b/level_0/f_type/c/type/cell.h index ef8f6e5..2c82a04 100644 --- a/level_0/f_type/c/type/cell.h +++ b/level_0/f_type/c/type/cell.h @@ -29,9 +29,15 @@ extern "C" { f_number_unsigned_t column; } f_cell_t; - #define f_cell_t_initialize { 0, 0 } + #define f_cell_t_initialize { \ + .row = 0, \ + .column = 0, \ + } - #define macro_f_cell_t_initialize_1(row, column) { row, column } + #define macro_f_cell_t_initialize_1(row_value, column_value) { \ + .row = row_value, \ + .column = column_value, \ + } #define macro_f_cell_t_clear(cell) { \ cell.row = 0; \ @@ -57,10 +63,23 @@ extern "C" { f_number_unsigned_t size; } f_cells_t; - #define f_cells_t_initialize { 0, 0, 0 } + #define f_cells_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_cells_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_cells_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_cells_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_cells_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_cells_t_clear(cells) { \ cells.array = 0; \ @@ -87,10 +106,23 @@ extern "C" { f_number_unsigned_t size; } f_cellss_t; - #define f_cellss_t_initialize { 0, 0, 0 } + #define f_cellss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_cellss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_cellss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_cellss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_cellss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_cellss_t_clear(cellss) { \ cellss.array = 0; \ diff --git a/level_0/f_type/c/type/file.h b/level_0/f_type/c/type/file.h index 27b72df..187b1c6 100644 --- a/level_0/f_type/c/type/file.h +++ b/level_0/f_type/c/type/file.h @@ -165,12 +165,45 @@ extern "C" { size_t size_write; } f_file_t; - #define f_file_t_initialize { 0, -1, O_RDONLY, F_file_default_size_read_d, F_file_default_size_write_d } + #define f_file_t_initialize { \ + .stream = 0, \ + .id = -1, \ + .flag = O_RDONLY, \ + .size_read = F_file_default_size_read_d, \ + .size_write = F_file_default_size_write_d, \ + } + + #define macro_f_file_t_initialize_1(stream_value, id_value, flag_value, read_size_value, write_size_value) { \ + .stream = stream_value, \ + .id = id_value, \ + .flag = flag_value, \ + .size_read = read_size_value, \ + .size_write = write_size_value, \ + } + + #define macro_f_file_t_initialize_2(stream_value, id_value, flag_value) { \ + .stream = stream_value, \ + .id = id_value, \ + .flag = flag_value, \ + .size_read = F_file_default_size_read_d, \ + .size_write = F_file_default_size_write_d, \ + } + + #define macro_f_file_t_initialize_id(id_value) { \ + .stream = 0, \ + .id = id_value, \ + .flag = O_RDONLY, \ + .size_read = F_file_default_size_read_d, \ + .size_write = F_file_default_size_write_d, \ + } - #define macro_f_file_t_initialize_1(stream, id, flag, read_size, write_size) { stream, id, flag, read_size, write_size } - #define macro_f_file_t_initialize_2(stream, id, flag) { stream, id, flag, F_file_default_size_read_d, F_file_default_size_write_d } - #define macro_f_file_t_initialize_id(id) { 0, id, O_RDONLY, F_file_default_size_read_d, F_file_default_size_write_d } - #define macro_f_file_t_initialize_stream(stream) { stream, -1, O_RDONLY, F_file_default_size_read_d, F_file_default_size_write_d } + #define macro_f_file_t_initialize_stream(stream_value) { \ + .stream = stream_value, \ + .id = -1, \ + .flag = O_RDONLY, \ + .size_read = F_file_default_size_read_d, \ + .size_write = F_file_default_size_write_d, \ + } #define macro_f_file_t_clear(file) { \ file.stream = 0; \ @@ -207,10 +240,23 @@ extern "C" { f_number_unsigned_t size; } f_files_t; - #define f_files_t_initialize { 0, 0, 0 } + #define f_files_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_files_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_files_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_files_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_files_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_files_t_clear(files) { \ files.array = 0; \ @@ -237,10 +283,23 @@ extern "C" { f_number_unsigned_t size; } f_filess_t; - #define f_filess_t_initialize { 0, 0, 0 } + #define f_filess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_filess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_filess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_filess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_filess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_filess_t_clear(filess) { \ filess.array = 0; \ @@ -299,12 +358,35 @@ extern "C" { #ifndef _di_f_poll_t_ typedef struct pollfd f_poll_t; - #define f_poll_t_initialize { .fd = -1, .events = 0, .revents = 0 } + #define f_poll_t_initialize { \ + .fd = -1, \ + .events = 0, \ + .revents = 0, \ + } + + #define macro_f_poll_t_initialize_1(fd_value, events_value, revents_value) { \ + .fd = fd_value, \ + .events = events_value, \ + .revents = revents_value, \ + } + + #define macro_f_poll_t_initialize_2(fd_value, events_value) { \ + .fd = fd_value, \ + .events = events_value, \ + .revents = 0, \ + } + + #define macro_f_poll_t_initialize_3(fd_value) { \ + .fd = fd_value, \ + .events = 0, \ + .revents = 0, \ + } - #define macro_f_poll_t_initialize_1(fd, events, revents) { fd, events, revents } - #define macro_f_poll_t_initialize_2(fd, events) { fd, events, 0 } - #define macro_f_poll_t_initialize_3(fd) { fd, 0, 0 } - #define macro_f_poll_t_initialize_4(events) { 0, events, 0 } + #define macro_f_poll_t_initialize_4(events_value) { \ + .fd = -1, \ + .events = events_value, \ + .revents = 0, \ + } #define macro_f_poll_t_clear(files) { \ files.fd = -1; \ @@ -335,10 +417,23 @@ extern "C" { f_number_unsigned_t size; } f_polls_t; - #define f_polls_t_initialize { 0, 0, 0 } + #define f_polls_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_polls_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_polls_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_polls_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_polls_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_polls_t_clear(polls) { \ polls.array = 0; \ @@ -365,10 +460,23 @@ extern "C" { f_number_unsigned_t size; } f_pollss_t; - #define f_pollss_t_initialize { 0, 0, 0 } + #define f_pollss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_pollss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_pollss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_pollss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_pollss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_pollss_t_clear(pollss) { \ pollss.array = 0; \ diff --git a/level_0/f_type/c/type/fll.h b/level_0/f_type/c/type/fll.h index 25dab93..94d8cd2 100644 --- a/level_0/f_type/c/type/fll.h +++ b/level_0/f_type/c/type/fll.h @@ -56,12 +56,16 @@ extern "C" { } f_fll_id_t; #define f_fll_id_t_initialize { \ - { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \ - 0, \ - 0, \ + .name = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, \ + .type = 0, \ + .used = 0, \ } - #define macro_f_fll_id_t_initialize_1(name, type, used) { name, type, used } + #define macro_f_fll_id_t_initialize_1(name_value, type_value, used_value) { \ + .name = name_value, \ + .type = type_value, \ + .used = used_value, \ + } #define macro_f_fll_id_t_clear(states) { \ states.name[0] = 0; \ @@ -151,10 +155,23 @@ extern "C" { f_number_unsigned_t size; } f_fll_ids_t; - #define f_fll_ids_t_initialize { 0, 0, 0 } + #define f_fll_ids_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_fll_ids_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fll_ids_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fll_ids_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_fll_ids_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fll_ids_t_clear(fll_ids) { \ fll_ids.array = 0; \ @@ -181,10 +198,23 @@ extern "C" { f_number_unsigned_t size; } f_fll_idss_t; - #define f_fll_idss_t_initialize { 0, 0, 0 } + #define f_fll_idss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_fll_idss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_fll_idss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_fll_idss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_fll_idss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_fll_idss_t_clear(fll_idss) { \ fll_idss.array = 0; \ diff --git a/level_0/f_type/c/type/mode.h b/level_0/f_type/c/type/mode.h index 5b0839e..5b059e5 100644 --- a/level_0/f_type/c/type/mode.h +++ b/level_0/f_type/c/type/mode.h @@ -42,17 +42,28 @@ extern "C" { } f_mode_t; #define f_mode_t_initialize { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ + .block = 0, \ + .character = 0, \ + .directory = 0, \ + .fifo = 0, \ + .regular = 0, \ + .link = 0, \ + .socket = 0, \ + .unknown = 0, \ } - #define macro_f_mode_t_set_default(mode) \ + #define macrro_f_mode_t_initialize_1(block_value, character_value, directory_value, fifo_value, regular_value, link_value, socket_value, unknown_value) { \ + .block = block_value, \ + .character = character_value, \ + .directory = directory_value, \ + .fifo = fifo_value, \ + .regular = regular_value, \ + .link = link_value, \ + .socket = socket_value, \ + .unknown = unknown_value, \ + } + + #define macro_f_mode_t_set_default(mode) { \ mode.block = F_file_mode_all_rw_d; \ mode.character = F_file_mode_all_rw_d; \ mode.directory = F_file_mode_all_rwx_d; \ @@ -60,9 +71,10 @@ extern "C" { mode.regular = F_file_mode_all_rw_d; \ mode.link = F_file_mode_all_rw_d; \ mode.socket = F_file_mode_all_rw_d; \ - mode.unknown = F_file_mode_all_rw_d; + mode.unknown = F_file_mode_all_rw_d; \ + } - #define macro_f_mode_t_set_default_umask(mode, mask) \ + #define macro_f_mode_t_set_default_umask(mode, mask) { \ mode.block = F_file_mode_all_rw_d & ~mask; \ mode.character = F_file_mode_all_rw_d & ~mask; \ mode.directory = F_file_mode_all_rwx_d & ~mask; \ @@ -70,9 +82,10 @@ extern "C" { mode.regular = F_file_mode_all_rw_d & ~mask; \ mode.link = F_file_mode_all_rw_d & ~mask; \ mode.socket = F_file_mode_all_rw_d & ~mask; \ - mode.unknown = F_file_mode_all_rw_d & ~mask; + mode.unknown = F_file_mode_all_rw_d & ~mask; \ + } - #define macro_f_mode_t_set_all(mode, value) \ + #define macro_f_mode_t_set_all(mode, value) { \ mode.block = value; \ mode.character = value; \ mode.directory = value; \ @@ -80,19 +93,22 @@ extern "C" { mode.regular = value; \ mode.link = value; \ mode.socket = value; \ - mode.unknown = value; + mode.unknown = value; \ + } - #define macro_f_mode_t_set_common(mode, value_directory, value_file, value_link) \ + #define macro_f_mode_t_set_common(mode, value_directory, value_file, value_link) { \ mode.directory = value_directory; \ mode.regular = value_file; \ - mode.link = value_link; + mode.link = value_link; \ + } - #define macro_f_mode_t_set_uncommon(mode, value_block, value_character, value_fifo, value_socket, value_unknown) \ + #define macro_f_mode_t_set_uncommon(mode, value_block, value_character, value_fifo, value_socket, value_unknown) { \ mode.block = value_block; \ mode.character = value_character; \ mode.fifo = value_fifo; \ mode.socket = value_socket; \ - mode.unknown = value_unknown; + mode.unknown = value_unknown; \ + } #define macro_f_mode_t_clear(mode) { \ mode.block = 0; \ diff --git a/level_0/f_type/c/type/number.h b/level_0/f_type/c/type/number.h index 286a181..cb1841e 100644 --- a/level_0/f_type/c/type/number.h +++ b/level_0/f_type/c/type/number.h @@ -197,10 +197,23 @@ extern "C" { f_number_unsigned_t size; } f_number_signeds_t; - #define f_number_signeds_t_initialize { 0, 0, 0 } + #define f_number_signeds_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_number_signeds_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_number_signeds_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_number_signeds_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_number_signeds_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_number_signeds_t_clear(number_signeds) { \ number_signeds.array = 0; \ @@ -227,10 +240,23 @@ extern "C" { f_number_unsigned_t size; } f_number_signedss_t; - #define f_number_signedss_t_initialize { 0, 0, 0 } + #define f_number_signedss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_number_signedss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_number_signedss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_number_signedss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_number_signedss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_number_signedss_t_clear(number_signedss) { \ number_signedss.array = 0; \ @@ -257,10 +283,23 @@ extern "C" { f_number_unsigned_t size; } f_number_unsigneds_t; - #define f_number_unsigneds_t_initialize { 0, 0, 0 } + #define f_number_unsigneds_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_number_unsigneds_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_number_unsigneds_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_number_unsigneds_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_number_unsigneds_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_number_unsigneds_t_clear(number_unsigneds) { \ number_unsigneds.array = 0; \ @@ -287,10 +326,23 @@ extern "C" { f_number_unsigned_t size; } f_number_unsignedss_t; - #define f_number_unsignedss_t_initialize { 0, 0, 0 } + #define f_number_unsignedss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_number_unsignedss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_number_unsignedss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_number_unsignedss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_number_unsignedss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_number_unsignedss_t_clear(number_unsignedss) { \ number_unsignedss.array = 0; \ @@ -317,10 +369,23 @@ extern "C" { f_number_unsigned_t size; } f_int8s_t; - #define f_int8s_t_initialize { 0, 0, 0 } + #define f_int8s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int8s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int8s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int8s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int8s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int8s_t_clear(int8s) { \ int8s.array = 0; \ @@ -347,10 +412,23 @@ extern "C" { f_number_unsigned_t size; } f_int8ss_t; - #define f_int8ss_t_initialize { 0, 0, 0 } + #define f_int8ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int8ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int8ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int8ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int8ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int8ss_t_clear(int8ss) { \ int8ss.array = 0; \ @@ -377,10 +455,23 @@ extern "C" { f_number_unsigned_t size; } f_uint8s_t; - #define f_uint8s_t_initialize { 0, 0, 0 } + #define f_uint8s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_uint8s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint8s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint8s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_uint8s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint8s_t_clear(uint8s) { \ uint8s.array = 0; \ @@ -407,10 +498,23 @@ extern "C" { f_number_unsigned_t size; } f_uint8ss_t; - #define f_uint8ss_t_initialize { 0, 0, 0 } + #define f_uint8ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint8ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint8ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint8ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint8ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint8ss_t_clear(uint8ss) { \ uint8ss.array = 0; \ @@ -437,10 +541,23 @@ extern "C" { f_number_unsigned_t size; } f_int16s_t; - #define f_int16s_t_initialize { 0, 0, 0 } + #define f_int16s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int16s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int16s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int16s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int16s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int16s_t_clear(int16s) { \ int16s.array = 0; \ @@ -467,10 +584,23 @@ extern "C" { f_number_unsigned_t size; } f_int16ss_t; - #define f_int16ss_t_initialize { 0, 0, 0 } + #define f_int16ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int16ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int16ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int16ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int16ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int16ss_t_clear(int16ss) { \ int16ss.array = 0; \ @@ -497,10 +627,23 @@ extern "C" { f_number_unsigned_t size; } f_uint16s_t; - #define f_uint16s_t_initialize { 0, 0, 0 } + #define f_uint16s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint16s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint16s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint16s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint16s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint16s_t_clear(uint16s) { \ uint16s.array = 0; \ @@ -527,10 +670,23 @@ extern "C" { f_number_unsigned_t size; } f_uint16ss_t; - #define f_uint16ss_t_initialize { 0, 0, 0 } + #define f_uint16ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint16ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint16s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint16s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint16ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint16ss_t_clear(uint16ss) { \ uint16ss.array = 0; \ @@ -557,10 +713,23 @@ extern "C" { f_number_unsigned_t size; } f_int32s_t; - #define f_int32s_t_initialize { 0, 0, 0 } + #define f_int32s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_int32s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int32s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int32s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_int32s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int32s_t_clear(int32s) { \ int32s.array = 0; \ @@ -587,10 +756,23 @@ extern "C" { f_number_unsigned_t size; } f_int32ss_t; - #define f_int32ss_t_initialize { 0, 0, 0 } + #define f_int32ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int32ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int32ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int32ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int32ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int32ss_t_clear(int32ss) { \ int32ss.array = 0; \ @@ -617,10 +799,23 @@ extern "C" { f_number_unsigned_t size; } f_uint32s_t; - #define f_uint32s_t_initialize { 0, 0, 0 } + #define f_uint32s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint32s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint32s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint32s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint32s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint32s_t_clear(uint32s) { \ uint32s.array = 0; \ @@ -647,10 +842,23 @@ extern "C" { f_number_unsigned_t size; } f_uint32ss_t; - #define f_uint32ss_t_initialize { 0, 0, 0 } + #define f_uint32ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint32ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint32ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint32ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint32ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint32ss_t_clear(uint32ss) { \ uint32ss.array = 0; \ @@ -677,10 +885,23 @@ extern "C" { f_number_unsigned_t size; } f_int64s_t; - #define f_int64s_t_initialize { 0, 0, 0 } + #define f_int64s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int64s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int64s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int64s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int64s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int64s_t_clear(int64s) { \ int64s.array = 0; \ @@ -707,10 +928,23 @@ extern "C" { f_number_unsigned_t size; } f_int64ss_t; - #define f_int64ss_t_initialize { 0, 0, 0 } + #define f_int64ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int64ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int64ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int64ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int64ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int64ss_t_clear(int64ss) { \ int64ss.array = 0; \ @@ -737,10 +971,23 @@ extern "C" { f_number_unsigned_t size; } f_uint64s_t; - #define f_uint64s_t_initialize { 0, 0, 0 } + #define f_uint64s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint64s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint64s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint64s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint64s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint64s_t_clear(uint64s) { \ uint64s.array = 0; \ @@ -767,10 +1014,23 @@ extern "C" { f_number_unsigned_t size; } f_uint64ss_t; - #define f_uint64ss_t_initialize { 0, 0, 0 } + #define f_uint64ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint64ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint64ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint64ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint64ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint64ss_t_clear(int64s) { \ uint64ss.array = 0; \ @@ -797,10 +1057,23 @@ extern "C" { f_number_unsigned_t size; } f_int128s_t; - #define f_int128s_t_initialize { 0, 0, 0 } + #define f_int128s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int128s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int128s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int128s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int128s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int128s_t_clear(int128s) { \ int128s.array = 0; \ @@ -827,10 +1100,23 @@ extern "C" { f_number_unsigned_t size; } f_int128ss_t; - #define f_int128ss_t_initialize { 0, 0, 0 } + #define f_int128ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_int128ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_int128ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_int128ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_int128ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_int128ss_t_clear(int128ss) { \ int128ss.array = 0; \ @@ -857,10 +1143,23 @@ extern "C" { f_number_unsigned_t size; } f_uint128s_t; - #define f_uint128s_t_initialize { 0, 0, 0 } + #define f_uint128s_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint128s_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint128s_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint128s_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint128s_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint128s_t_clear(uint128s) { \ uint128s.array = 0; \ @@ -887,10 +1186,23 @@ extern "C" { f_number_unsigned_t size; } f_uint128ss_t; - #define f_uint128ss_t_initialize { 0, 0, 0 } + #define f_uint128ss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_uint128ss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_uint128ss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_uint128ss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_uint128ss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_uint128ss_t_clear(uint128ss) { \ uint128ss.array = 0; \ @@ -929,7 +1241,9 @@ extern "C" { #define f_id_t_initialize -1 - #define macro_f_id_t_clear(id) { id = -1; } + #define macro_f_id_t_clear(id) { \ + id = -1; \ + } /** * The f_gid_t type, see f_id_t documentation. @@ -939,7 +1253,9 @@ extern "C" { #define f_gid_t_initialize -1 - #define macro_f_gid_t_clear(id) { id = -1; } + #define macro_f_gid_t_clear(id) { \ + id = -1; \ + } #endif // _di_f_gid_t_ /** @@ -950,7 +1266,9 @@ extern "C" { #define f_uid_t_initialize -1 - #define macro_f_uid_t_clear(id) { id = -1; } + #define macro_f_uid_t_clear(id) { \ + id = -1; \ + } #endif // _di_f_uid_t_ #endif // _di_f_id_t_ diff --git a/level_0/f_type/c/type/pid.h b/level_0/f_type/c/type/pid.h index d888f0b..c772c8b 100644 --- a/level_0/f_type/c/type/pid.h +++ b/level_0/f_type/c/type/pid.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_pids_t; - #define f_pids_t_initialize { 0, 0, 0 } + #define f_pids_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_pids_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_pids_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_pids_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_pids_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_pids_t_clear(pids) { \ pids.array = 0; \ @@ -60,10 +73,23 @@ extern "C" { f_number_unsigned_t size; } f_pidss_t; - #define f_pidss_t_initialize { 0, 0, 0 } + #define f_pidss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_pidss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_pidss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_pidss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_pidss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_pidss_t_clear(pidss) { \ pidss.array = 0; \ diff --git a/level_0/f_type/c/type/quantity.h b/level_0/f_type/c/type/quantity.h index 43e6bf0..8f21f2e 100644 --- a/level_0/f_type/c/type/quantity.h +++ b/level_0/f_type/c/type/quantity.h @@ -35,9 +35,15 @@ extern "C" { f_number_unsigned_t total; } f_quantity_t; - #define f_quantity_t_initialize { 0, 0 } + #define f_quantity_t_initialize { \ + .start = 0, \ + .total = 0, \ + } - #define macro_f_quantity_t_initialize_1(start, total) { start, total } + #define macro_f_quantity_t_initialize_1(start_value, total_value) { \ + .start = start_value, \ + .total = total_value, \ + } #define macro_f_quantity_t_clear(quantity) { \ quantity.start = 0; \ @@ -61,10 +67,23 @@ extern "C" { f_number_unsigned_t size; } f_quantitys_t; - #define f_quantitys_t_initialize { 0, 0, 0 } + #define f_quantitys_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_quantitys_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_quantitys_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_quantitys_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_quantitys_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_quantitys_t_clear(quantitys) { \ quantitys.array = 0; \ @@ -89,10 +108,23 @@ extern "C" { f_number_unsigned_t size; } f_quantityss_t; - #define f_quantityss_t_initialize { 0, 0, 0 } + #define f_quantityss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } - #define macro_f_quantityss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_quantityss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_quantityss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } + + #define macro_f_quantityss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_quantityss_t_clear(quantityss) { \ quantityss.array = 0; \ diff --git a/level_0/f_type/c/type/range.h b/level_0/f_type/c/type/range.h index 662aec7..872a78d 100644 --- a/level_0/f_type/c/type/range.h +++ b/level_0/f_type/c/type/range.h @@ -33,10 +33,20 @@ extern "C" { f_number_unsigned_t stop; } f_range_t; - #define f_range_t_initialize { 1, 0 } + #define f_range_t_initialize { \ + .start = 1, \ + .stop = 0, \ + } + + #define macro_f_range_t_initialize_1(start_value, stop_value) { \ + .start = start_value, \ + .stop = stop_value, \ + } - #define macro_f_range_t_initialize_1(start, stop) { start, stop } - #define macro_f_range_t_initialize_2(length) { length ? 0 : 1, length ? length - 1 : 0 } + #define macro_f_range_t_initialize_2(length) { \ + .start = length ? 0 : 1, \ + .stop = length ? length - 1 : 0, \ + } #define macro_f_range_t_clear(range) { \ range.start = 1; \ @@ -60,10 +70,23 @@ extern "C" { f_number_unsigned_t size; } f_ranges_t; - #define f_ranges_t_initialize { 0, 0, 0 } + #define f_ranges_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_ranges_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_ranges_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_ranges_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_ranges_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_ranges_t_clear(ranges) { \ ranges.array = 0; \ @@ -88,10 +111,23 @@ extern "C" { f_number_unsigned_t size; } f_rangess_t; - #define f_rangess_t_initialize { 0, 0, 0 } + #define f_rangess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_rangess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_rangess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_rangess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_rangess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_rangess_t_clear(rangess) { \ rangess.array = 0; \ diff --git a/level_0/f_type/c/type/range_double.h b/level_0/f_type/c/type/range_double.h index fddd788..e7d6a06 100644 --- a/level_0/f_type/c/type/range_double.h +++ b/level_0/f_type/c/type/range_double.h @@ -38,10 +38,26 @@ extern "C" { f_number_unsigned_t stop_2; } f_range_double_t; - #define f_range_double_t_initialize { 1, 0, 1, 0 } + #define f_range_double_t_initialize { \ + .start_1 = 1, \ + .stop_1 = 0, \ + .start_2 = 1, \ + .stop_2 = 0, \ + } + + #define macro_f_range_double_t_initialize_1(start_1_value, stop_1_value, start_2_value, stop_2_value) { \ + .start_1 = start_1_value, \ + .stop_1 = stop_1_value, \ + .start_2 = start_2_value, \ + .stop_2 = stop_2_value, \ + } - #define macro_f_range_double_t_initialize_1(start_1, stop_1, start_2, stop_2) { start_1, stop_1, start_2, stop_2 } - #define macro_f_range_double_t_initialize_2(length_1, length_2) { length_1 ? 0 : 1, length_1 ? length_1 - 1 : 0, length_2 ? 0 : 1, length_2 ? length_2 - 1 : 0 } + #define macro_f_range_double_t_initialize_2(length_1_value, length_2_value) { \ + .start_1 = length_1_value ? 0 : 1, \ + .stop_1 = length_1_value ? length_1_value - 1 : 0, \ + .start_2 = length_2_value ? 0 : 1, \ + .stop_2 = length_2_value ? length_2_value - 1 : 0, \ + } #define macro_f_range_double_t_clear(range_double) { \ range_double.start_1 = 1; \ @@ -67,10 +83,23 @@ extern "C" { f_number_unsigned_t size; } f_range_doubles_t; - #define f_range_doubles_t_initialize { 0, 0, 0 } + #define f_range_doubles_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_range_doubles_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_range_doubles_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_range_doubles_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_range_doubles_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_range_doubles_t_clear(range_doubles) { \ range_doubles.array = 0; \ @@ -95,10 +124,23 @@ extern "C" { f_number_unsigned_t size; } f_range_doubless_t; - #define f_range_doubless_t_initialize { 0, 0, 0 } + #define f_range_doubless_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_range_doubless_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_range_doubless_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_range_doubless_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_range_doubless_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_range_doubless_t_clear(range_doubless) { \ range_doubless.array = 0; \ diff --git a/level_0/f_type/c/type/state.h b/level_0/f_type/c/type/state.h index 66d04e8..2a4de8a 100644 --- a/level_0/f_type/c/type/state.h +++ b/level_0/f_type/c/type/state.h @@ -133,10 +133,23 @@ extern "C" { f_number_unsigned_t size; } f_states_t; - #define f_states_t_initialize { 0, 0, 0 } + #define f_states_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_states_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_states_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_states_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_states_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_states_t_clear(states) { \ states.array = 0; \ @@ -163,10 +176,23 @@ extern "C" { f_number_unsigned_t size; } f_statess_t; - #define f_statess_t_initialize { 0, 0, 0 } + #define f_statess_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_statess_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_statess_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_statess_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_statess_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_states_t_clear(states) { \ states.array = 0; \ diff --git a/level_0/f_type/c/type/status.h b/level_0/f_type/c/type/status.h index b716609..39d6bf5 100644 --- a/level_0/f_type/c/type/status.h +++ b/level_0/f_type/c/type/status.h @@ -43,10 +43,23 @@ extern "C" { f_number_unsigned_t size; } f_statuss_t; - #define f_statuss_t_initialize { 0, 0, 0 } + #define f_statuss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_statuss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_statuss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_statuss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_statuss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_statuss_t_clear(statuss) { \ statuss.array = 0; \ @@ -73,10 +86,23 @@ extern "C" { f_number_unsigned_t size; } f_statusss_t; - #define f_statusss_t_initialize { 0, 0, 0 } + #define f_statusss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_statusss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_statusss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_statusss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_statusss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_statusss_t_clear(statusss) { \ statusss.array = 0; \ diff --git a/level_0/f_type/c/type/time.h b/level_0/f_type/c/type/time.h index aa38d16..fb8ae7e 100644 --- a/level_0/f_type/c/type/time.h +++ b/level_0/f_type/c/type/time.h @@ -93,9 +93,15 @@ extern "C" { f_time_t seconds_nano; } f_time_simple_t; - #define f_time_simple_t_initialize { f_time_t_initialize, f_time_t_initialize } + #define f_time_simple_t_initialize { \ + .seconds = f_time_t_initialize, \ + .seconds_nano = f_time_t_initialize, \ + } - #define macro_f_time_simple_t_initialize_1(seconds, nanoseconds) { .seconds = seconds, .seconds_nano = nanoseconds }; + #define macro_f_time_simple_t_initialize_1(seconds_value, nanoseconds_value) { \ + .seconds = seconds_value, \ + .seconds_nano = nanoseconds_value, \ + } #define macro_f_time_simple_t_clear(time_simple) { \ time_simple.seconds = 0; \ @@ -126,9 +132,15 @@ extern "C" { f_time_t time; } f_date_t; - #define f_date_t_initialize { f_number_signed_t_initialize, f_time_t_initialize } + #define f_date_t_initialize { \ + .year = f_number_signed_t_initialize, \ + .time = f_time_t_initialize, \ + } - #define macro_f_date_t_initialize_1(year, time) { .year = year, .time = time }; + #define macro_f_date_t_initialize_1(year_value, time_value) { \ + .year = year_value, \ + .time = time_value, \ + } #define macro_f_date_t_clear(date) { \ date.year = 0; \ @@ -153,9 +165,15 @@ extern "C" { f_time_simple_t time; } f_date_simple_t; - #define f_date_simple_t_initialize { f_time_t_initialize, f_time_simple_t_initialize } + #define f_date_simple_t_initialize { \ + .year = f_time_t_initialize, \ + .time = f_time_simple_t_initialize, \ + } - #define macro_f_date_simple_t_initialize_1(year, time) { .year = year, .time = time }; + #define macro_f_date_simple_t_initialize_1(year_value, time_value) { \ + .year = year_value, \ + .time = time_value, \ + } #define macro_f_date_simple_t_clear(date_simple) { \ date_simple.year = 0; \ diff --git a/level_0/f_utf/c/utf/map.h b/level_0/f_utf/c/utf/map.h index f598796..3f9b0ea 100644 --- a/level_0/f_utf/c/utf/map.h +++ b/level_0/f_utf/c/utf/map.h @@ -29,9 +29,15 @@ extern "C" { f_utf_string_dynamic_t value; } f_utf_string_map_t; - #define f_utf_string_map_t_initialize { f_utf_string_dynamic_t_initialize, f_utf_string_dynamic_t_initialize } + #define f_utf_string_map_t_initialize { \ + .key = f_utf_string_dynamic_t_initialize, \ + .value = f_utf_string_dynamic_t_initialize, \ + } - #define macro_f_utf_string_map_t_initialize_1(key, value) { key, value } + #define macro_f_utf_string_map_t_initialize_1(key_value, value_value) { \ + .key = key_value, \ + .value = value_value, \ + } #define macro_f_utf_string_map_t_clear(utf_string_map) { \ macro_f_utf_string_dynamic_t_clear(utf_string_map.key) \ diff --git a/level_0/f_utf/c/utf/map_multi.h b/level_0/f_utf/c/utf/map_multi.h index 6dde23a..36d1318 100644 --- a/level_0/f_utf/c/utf/map_multi.h +++ b/level_0/f_utf/c/utf/map_multi.h @@ -29,9 +29,15 @@ extern "C" { f_utf_string_dynamics_t value; } f_utf_string_map_multi_t; - #define f_utf_string_map_multi_t_initialize { f_utf_string_dynamic_t_initialize, f_utf_string_dynamics_t_initialize } + #define f_utf_string_map_multi_t_initialize { \ + .key = f_utf_string_dynamic_t_initialize, \ + .value = f_utf_string_dynamics_t_initialize, \ + } - #define macro_f_utf_string_map_multi_t_initialize_1(key, value) { key, value } + #define macro_f_utf_string_map_multi_t_initialize_1(key_value, value_value) { \ + .key = key_value, \ + .value = value_value, \ + } #define macro_f_utf_string_map_multi_t_clear(map) { \ macro_f_utf_string_dynamic_t_clear(map.key) \ diff --git a/level_0/f_utf/c/utf/map_multis.h b/level_0/f_utf/c/utf/map_multis.h index 624b265..6626f9e 100644 --- a/level_0/f_utf/c/utf/map_multis.h +++ b/level_0/f_utf/c/utf/map_multis.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_map_multis_t; - #define f_utf_string_map_multis_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_map_multis_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_map_multis_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_map_multis_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_map_multis_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_map_multis_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_map_multis_t_clear(utf_string_map_multis) { \ utf_string_map_multis.array = 0; \ diff --git a/level_0/f_utf/c/utf/map_multiss.h b/level_0/f_utf/c/utf/map_multiss.h index 2cea63c..4afafdd 100644 --- a/level_0/f_utf/c/utf/map_multiss.h +++ b/level_0/f_utf/c/utf/map_multiss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_map_multiss_t; - #define f_utf_string_map_multiss_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_map_multiss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_map_multiss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_map_multiss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_map_multiss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_map_multiss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_map_multiss_t_clear(utf_string_map_multiss) { \ utf_string_map_multiss.array = 0; \ diff --git a/level_0/f_utf/c/utf/maps.h b/level_0/f_utf/c/utf/maps.h index 8d206cb..c0176b3 100644 --- a/level_0/f_utf/c/utf/maps.h +++ b/level_0/f_utf/c/utf/maps.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_maps_t; - #define f_utf_string_maps_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_maps_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_maps_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_maps_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_maps_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_maps_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_maps_t_clear(utf_string_maps) { \ utf_string_maps.array = 0; \ diff --git a/level_0/f_utf/c/utf/mapss.h b/level_0/f_utf/c/utf/mapss.h index 6ec55c9..32cf4cc 100644 --- a/level_0/f_utf/c/utf/mapss.h +++ b/level_0/f_utf/c/utf/mapss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_mapss_t; - #define f_utf_string_mapss_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_mapss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_mapss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_mapss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_mapss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_mapss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_mapss_t_clear(utf_string_mapss) { \ utf_string_mapss.array = 0; \ diff --git a/level_0/f_utf/c/utf/static.h b/level_0/f_utf/c/utf/static.h index 368c6e6..5fbea82 100644 --- a/level_0/f_utf/c/utf/static.h +++ b/level_0/f_utf/c/utf/static.h @@ -37,10 +37,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_static_t; - #define f_utf_string_static_t_initialize { 0, 0, 0 } + #define f_utf_string_static_t_initialize { \ + .string = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_static_t_initialize_1(string_value, used_value, size_value) { \ + .string = string_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_static_t_initialize_1(string_value, used_value, size_value) { .string = string_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_static_t_initialize_2(string_value, length_value) { .string = string_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_static_t_initialize_2(string_value, length_value) { \ + .string = string_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_static_t_clear(utf_string_static) { \ utf_string_static.string = 0; \ diff --git a/level_0/f_utf/c/utf/statics.h b/level_0/f_utf/c/utf/statics.h index f6823db..e3069a6 100644 --- a/level_0/f_utf/c/utf/statics.h +++ b/level_0/f_utf/c/utf/statics.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_statics_t; - #define f_utf_string_statics_t_initialize { 0, 0, 0 } + #define f_utf_string_statics_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_statics_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_statics_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_statics_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_statics_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_statics_t_clear(statics) { \ statics.array = 0; \ diff --git a/level_0/f_utf/c/utf/staticss.h b/level_0/f_utf/c/utf/staticss.h index 3b46e80..32bc991 100644 --- a/level_0/f_utf/c/utf/staticss.h +++ b/level_0/f_utf/c/utf/staticss.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_staticss_t; - #define f_utf_string_staticss_t_initialize { 0, 0, 0 } + #define f_utf_string_staticss_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_staticss_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_staticss_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_staticss_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_staticss_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_staticss_t_clear(staticss) { \ staticss.array = 0; \ diff --git a/level_0/f_utf/c/utf/triple.h b/level_0/f_utf/c/utf/triple.h index 8ac7e96..2fbd2d8 100644 --- a/level_0/f_utf/c/utf/triple.h +++ b/level_0/f_utf/c/utf/triple.h @@ -31,14 +31,22 @@ extern "C" { f_utf_string_dynamic_t c; } f_utf_string_triple_t; - #define f_utf_string_triple_t_initialize { f_utf_string_dynamic_t_initialize, f_utf_string_dynamic_t_initialize, f_utf_string_dynamic_t_initialize } + #define f_utf_string_triple_t_initialize { \ + .a = f_utf_string_dynamic_t_initialize, \ + .b = f_utf_string_dynamic_t_initialize, \ + .c = f_utf_string_dynamic_t_initialize, \ + } - #define macro_f_utf_string_triple_t_initialize_1(a, b, c) { a, b, c } + #define macro_f_utf_string_triple_t_initialize_1(a_value, b_value, c_value) { \ + .a = a_value, \ + .b = b_value, \ + .c = c_value, \ + } #define macro_f_utf_string_triple_t_clear(triple) { \ - macrro_f_utf_string_dynamic_t_clear(triple.a) \ - macrro_f_utf_string_dynamic_t_clear(triple.b) \ - macrro_f_utf_string_dynamic_t_clear(triple.c) \ + macro_f_utf_string_dynamic_t_clear(triple.a) \ + macro_f_utf_string_dynamic_t_clear(triple.b) \ + macro_f_utf_string_dynamic_t_clear(triple.c) \ } #endif // _di_f_utf_string_triple_t_ diff --git a/level_0/f_utf/c/utf/triples.h b/level_0/f_utf/c/utf/triples.h index 3a046a8..9ca6722 100644 --- a/level_0/f_utf/c/utf/triples.h +++ b/level_0/f_utf/c/utf/triples.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_triples_t; - #define f_utf_string_triples_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_triples_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_triples_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_triples_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_triples_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_triples_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_triples_t_clear(utf_string_triples) { \ utf_string_triples.array = 0; \ diff --git a/level_0/f_utf/c/utf/tripless.h b/level_0/f_utf/c/utf/tripless.h index 8b19866..39ee830 100644 --- a/level_0/f_utf/c/utf/tripless.h +++ b/level_0/f_utf/c/utf/tripless.h @@ -32,10 +32,23 @@ extern "C" { f_number_unsigned_t size; } f_utf_string_tripless_t; - #define f_utf_string_tripless_t_initialize f_utf_string_statics_t_initialize + #define f_utf_string_tripless_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } + + #define macro_f_utf_string_tripless_t_initialize_1(array_value, used_value, size_value) { \ + .array = array_value, \ + .used = used_value, \ + .size = size_value, \ + } - #define macro_f_utf_string_tripless_t_initialize_1(array_value, used_value, size_value) { .array = array_value, .used = used_value, .size = size_value } - #define macro_f_utf_string_tripless_t_initialize_2(array_value, length_value) { .array = array_value, .used = length_value, .size = length_value } + #define macro_f_utf_string_tripless_t_initialize_2(array_value, length_value) { \ + .array = array_value, \ + .used = length_value, \ + .size = length_value, \ + } #define macro_f_utf_string_tripless_t_clear(utf_string_tripless) { \ utf_string_tripless.array = 0; \ diff --git a/level_1/fl_conversion/c/conversion/common.h b/level_1/fl_conversion/c/conversion/common.h index 7097c34..9afbbe0 100644 --- a/level_1/fl_conversion/c/conversion/common.h +++ b/level_1/fl_conversion/c/conversion/common.h @@ -29,9 +29,15 @@ extern "C" { uint16_t flag; } fl_conversion_data_t; - #define fl_conversion_data_t_initialize { 10, 0 } + #define fl_conversion_data_t_initialize { \ + .base = 10, \ + .flag = 0, \ + } - #define macro_fl_conversion_data_t_initialize_1(base, flag) { base, flag } + #define macro_fl_conversion_data_t_initialize_1(base_value, flag_value) { \ + .base = base_value, \ + .flag = flag_value, \ + } #define macro_fl_conversion_data_t_clear(conversion_data) { \ conversion_data.base = 0; \ diff --git a/level_1/fl_execute/c/execute/common.h b/level_1/fl_execute/c/execute/common.h index de4e0a9..642c7fc 100644 --- a/level_1/fl_execute/c/execute/common.h +++ b/level_1/fl_execute/c/execute/common.h @@ -36,9 +36,21 @@ extern "C" { const f_string_static_t *data; } fl_execute_parameter_t; - #define fl_execute_parameter_t_initialize { 0, 0, 0, 0, 0 } + #define fl_execute_parameter_t_initialize { \ + .option = 0, \ + .wait = 0, \ + .environment = 0, \ + .signals = 0, \ + .data = 0, \ + } - #define macro_fl_execute_parameter_t_initialize_1(option, wait, environment, signals, data) { option, wait, environment, signals, data } + #define macro_fl_execute_parameter_t_initialize_1(option_value, wait_value, environment_value, signals_value, data_value) { \ + .option = option_value, \ + .wait = wait_value, \ + .environment = environment_value, \ + .signals = signals_value, \ + .data = data_value, \ + } #define macro_fl_execute_parameter_t_clear(execute_parameter) { \ execute_parameter.option = 0; \ @@ -102,9 +114,29 @@ extern "C" { f_execute_scheduler_t *scheduler; } fl_execute_as_t; - #define fl_execute_as_t_initialize { 0, 0, 0, 0, 0, 0, 0, 0, 0 } + #define fl_execute_as_t_initialize { \ + .nice = 0, \ + .id_user = 0, \ + .id_group = 0, \ + .affinity = 0, \ + .capability = 0, \ + .control_group = 0, \ + .id_groups = 0, \ + .limits = 0, \ + .scheduler = 0, \ + } - #define macro_fl_execute_as_t_initialize_1(nice, id_user, id_group, affinity, capability, control_group, id_groups, limits, scheduler) { nice, id_user, id_group, affinity, capability, control_group, id_groups, limits, scheduler } + #define macro_fl_execute_as_t_initialize_1(nice_value, id_user_value, id_group_value, affinity_value, capability_value, control_group_value, id_groups_value, limits_value, scheduler_value) { \ + .nice = nice_value, \ + .id_user = id_user_value, \ + .id_group = id_group_value, \ + .affinity = affinity_value, \ + .capability = capability_value, \ + .control_group = control_group_value, \ + .id_groups = id_groups_value, \ + .limits = limits_value, \ + .scheduler = scheduler_value, \ + } #define macro_fl_execute_as_t_clear(as) { \ as.nice = 0; \ diff --git a/level_1/fl_fss/c/fss/embedded_list.h b/level_1/fl_fss/c/fss/embedded_list.h index f687227..051b166 100644 --- a/level_1/fl_fss/c/fss/embedded_list.h +++ b/level_1/fl_fss/c/fss/embedded_list.h @@ -46,9 +46,17 @@ extern "C" { f_number_unsigneds_t *slashes; } fl_fss_data_embedded_list_t; - #define fl_fss_data_embedded_list_t_initialize { 0, 0, 0 } + #define fl_fss_data_embedded_list_t_initialize { \ + .objects = 0, \ + .positions = 0, \ + .slashes = 0, \ + } - #define macro_fl_fss_data_embedded_list_t_initialize_1(objects, positions, slashes) { objects, positions, slashes } + #define macro_fl_fss_data_embedded_list_t_initialize_1(objects_value, positions_value, slashes_value) { \ + .objects = objects_value, \ + .positions = positions_value, \ + .slashes = slashes_value, \ + } #define macro_fl_fss_data_embedded_list_t_clear(data) { \ data.objects = 0; \ diff --git a/level_1/fl_fss/c/fss/payload/type.h b/level_1/fl_fss/c/fss/payload/type.h index 2dc4a5d..03d6107 100644 --- a/level_1/fl_fss/c/fss/payload/type.h +++ b/level_1/fl_fss/c/fss/payload/type.h @@ -19,6 +19,9 @@ extern "C" { * * This is intended to be used by functions such as fl_fss_payload_header_map(). * + * Note that fl_fss_payload_header_internal_t_initialize probably should not be used because it initializes the constants "destinations" and "original" to 0. + * The macro_f_fss_payload_header_internal_t_clear() will not (can not) clear the constants "destinations" and "original". + * * Properties: * - quote: The quote being used in all cases. * - step: The current step. @@ -51,48 +54,48 @@ extern "C" { } fl_fss_payload_header_internal_t; #define fl_fss_payload_header_internal_t_initialize { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - f_range_t_initialize, \ - f_conversion_data_base_10_c, \ - f_string_static_t_initialize, \ - 0, \ - 0, \ + .quote = 0, \ + .step = 0, \ + .i = 0, \ + .j = 0, \ + .k = 0, \ + .l = 0, \ + .m = 0, \ + .range = f_range_t_initialize, \ + .conversion = f_conversion_data_base_10_c, \ + .quote_null = f_string_static_t_initialize, \ + .destinations = 0, \ + .original = 0, \ } - #define macro_fl_fss_payload_header_internal_t_initialize_1(quote, step, i, j, k, l, m, range, conversion, destinations, quote_null, original) { \ - quote, \ - step, \ - i, \ - j, \ - k, \ - l, \ - m, \ - range, \ - conversion, \ - destinations, \ - quote_null, \ - original, \ + #define macro_fl_fss_payload_header_internal_t_initialize_1(quote_value, step_value, i_value, j_value, k_value, l_value, m_value, range_value, conversion_value, destinations_value, quote_null_value, original_value) { \ + .quote = quote_value, \ + .step = step_value, \ + .i = i_value, \ + .j = j_value, \ + .k = k_value, \ + .l = l_value, \ + .m = m_value, \ + .range = range_value, \ + .conversion = conversion_value, \ + .quote_null = destinations_value, \ + .destinations = quote_null_value, \ + .original = original_value, \ } - #define macro_fl_fss_payload_header_internal_t_initialize_2(destinations, original) { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - f_range_t_initialize, \ - f_conversion_data_base_10_c, \ - f_string_static_t_initialize, \ - destinations, \ - original, \ + #define macro_fl_fss_payload_header_internal_t_initialize_2(destinations_value, original_value) { \ + .quote = 0, \ + .step = 0, \ + .i = 0, \ + .j = 0, \ + .k = 0, \ + .l = 0, \ + .m = 0, \ + .range = f_range_t_initialize, \ + .conversion = f_conversion_data_base_10_c, \ + .quote_null = f_string_static_t_initialize, \ + .destinations = destinations_value, \ + .original = original_value, \ } #define macro_f_fss_payload_header_internal_t_clear(fss_payload_header_internal) { \ @@ -129,27 +132,27 @@ extern "C" { } fl_fss_payload_header_state_t; #define fl_fss_payload_header_state_t_initialize { \ - 0, \ - f_conversion_data_base_10_c, \ - 0, \ + .flag = 0, \ + .conversion = f_conversion_data_base_10_c, \ + .cache = 0, \ } - #define macro_fl_fss_payload_header_state_t_initialize_1(flag, conversion, cache) { \ - 0, \ - conversion, \ - cache, \ + #define macro_fl_fss_payload_header_state_t_initialize_1(flag_value, conversion_value, cache_value) { \ + .flag = 0, \ + .conversion = conversion_value, \ + .cache = cache_value, \ } - #define macro_fl_fss_payload_header_state_t_initialize_2(flag, cache) { \ - flag, \ - f_conversion_data_base_10_c, \ - cache, \ + #define macro_fl_fss_payload_header_state_t_initialize_2(flag_value, cache_value) { \ + .flag = flag_value, \ + .conversion = f_conversion_data_base_10_c, \ + .cache = cache_value, \ } - #define macro_fl_fss_payload_header_state_t_initialize_3(cache) { \ - 0, \ - f_conversion_data_base_10_c, \ - cache, \ + #define macro_fl_fss_payload_header_state_t_initialize_3(cache_value) { \ + .flag = 0, \ + .conversion = f_conversion_data_base_10_c, \ + .cache = cache_value, \ } #define macro_f_fss_payload_header_state_t_clear(fss_payload_header_state) { \ diff --git a/level_1/fl_print/c/print/common.h b/level_1/fl_print/c/print/common.h index 21d8adb..317f1a0 100644 --- a/level_1/fl_print/c/print/common.h +++ b/level_1/fl_print/c/print/common.h @@ -80,35 +80,35 @@ extern "C" { } fl_print_t; #define fl_print_t_initialize { \ - macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), \ - f_console_verbosity_normal_e, \ - 0, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_color_set_t_initialize, \ - f_color_set_t_initialize, \ - 0, \ - 0, \ + .to = macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), \ + .verbosity = f_console_verbosity_normal_e, \ + .flag = 0, \ + .prefix = f_string_static_t_initialize, \ + .suffix = f_string_static_t_initialize, \ + .context = f_color_set_t_initialize, \ + .notable = f_color_set_t_initialize, \ + .set = 0, \ + .custom = 0, \ } - #define macro_fl_print_t_initialize_1(to, verbosity, flag, prefix, suffix, context, notable, set, custom) { \ - to, \ - verbosity, \ - flag, \ - prefix, \ - suffix, \ - context, \ - notable, \ - set, \ - custom, \ + #define macro_fl_print_t_initialize_1(to_value, verbosity_value, flag_value, prefix_value, suffix_value, context_value, notable_value, set_value, custom_value) { \ + .to = to_value, \ + .verbosity = verbosity_value, \ + .flag = flag_value, \ + .prefix = prefix_value, \ + .suffix = suffix_value, \ + .context = context_value, \ + .notable = notable_value, \ + .set = set_value, \ + .custom = custom_value, \ } - #define macro_fl_print_t_initialize_debug_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_debug_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) - #define macro_fl_print_t_initialize_debug_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_debug_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) - #define macro_fl_print_t_initialize_error_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_error_d, F_type_descriptor_error_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_error_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) - #define macro_fl_print_t_initialize_error_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_error_d, F_type_descriptor_error_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_error_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) - #define macro_fl_print_t_initialize_warning_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_warning_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) - #define macro_fl_print_t_initialize_warning_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_warning_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) + #define macro_fl_print_t_initialize_debug_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_debug_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) + #define macro_fl_print_t_initialize_debug_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_debug_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) + #define macro_fl_print_t_initialize_error_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_error_d, F_type_descriptor_error_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_error_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) + #define macro_fl_print_t_initialize_error_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_error_d, F_type_descriptor_error_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_error_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) + #define macro_fl_print_t_initialize_warning_1() macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_warning_s, f_string_static_t_initialize, f_color_set_t_initialize, f_color_set_t_initialize, 0, 0) + #define macro_fl_print_t_initialize_warning_2(suffix, set) macro_fl_print_t_initialize_1(macro_f_file_t_initialize_2(F_type_output_d, F_type_descriptor_output_d, F_file_flag_write_only_d), f_console_verbosity_normal_e, 0, fl_print_warning_s, suffix, f_color_set_t_initialize, f_color_set_t_initialize, set, 0) #define macro_fl_print_t_clear(print) { \ macro_f_file_t_clear(print.to) \ diff --git a/level_2/fll_program/c/program/common.h b/level_2/fll_program/c/program/common.h index 41f5855..385c873 100644 --- a/level_2/fll_program/c/program/common.h +++ b/level_2/fll_program/c/program/common.h @@ -144,45 +144,44 @@ extern "C" { f_color_context_t context; } fll_program_data_t; - #define fll_program_data_t_initialize \ - { \ - f_console_parameters_t_initialize, \ - 0, \ - 0, \ - 0, \ - 0, \ - fll_program_data_pipe_none_e, \ - 0, \ - 0, \ - f_signal_t_initialize, \ - F_okay, \ - macro_f_file_t_initialize_2(F_type_input_d, F_type_descriptor_input_d, F_file_flag_read_only_d), \ - fl_print_t_initialize, \ - fl_print_t_initialize, \ - macro_fl_print_t_initialize_error_1(), \ - macro_fl_print_t_initialize_warning_1(), \ - macro_fl_print_t_initialize_debug_1(), \ - f_color_context_t_initialize, \ - } + #define fll_program_data_t_initialize { \ + .parameters = f_console_parameters_t_initialize, \ + .environment = 0, \ + .umask = 0, \ + .pid = 0, \ + .child = 0, \ + .pipe = fll_program_data_pipe_none_e, \ + .signal_received = 0, \ + .signal_check = 0, \ + .signal = f_signal_t_initialize, \ + .signal_status = F_okay, \ + .input = macro_f_file_t_initialize_2(F_type_input_d, F_type_descriptor_input_d, F_file_flag_read_only_d), \ + .message = fl_print_t_initialize, \ + .output = fl_print_t_initialize, \ + .error = macro_fl_print_t_initialize_error_1(), \ + .warning = macro_fl_print_t_initialize_warning_1(), \ + .debug = macro_fl_print_t_initialize_debug_1(), \ + .context = f_color_context_t_initialize, \ + } - #define macro_fll_program_data_t_initialize_1(parameters, environment, umask, pid, child, pipe, signal_received, signal_check, signal, message, input, output, error, warning, debug, context) { \ - parameters, \ - environment, \ - umask, \ - pid, \ - child, \ - pipe, \ - signal_received, \ - signal_check, \ - signal, \ - F_okay, \ - message, \ - input, \ - output, \ - error, \ - warning, \ - debug, \ - context, \ + #define macro_fll_program_data_t_initialize_1(parameters_value, environment_value, umask_value, pid_value, child_value, pipe_value, signal_received_value, signal_check_value, signal_value, message_value, input_value, output_value, error_value, warning_value, debug_value, context_value) { \ + .parameters = parameters_value, \ + .environment = environment_value, \ + .umask = umask_value, \ + .pid = pid_value, \ + .child = child_value, \ + .pipe = pipe_value, \ + .signal_received = signal_received_value, \ + .signal_check = signal_check_value, \ + .signal = signal_value, \ + .signal_status = F_okay_value, \ + .input = message_value, \ + .message = input_value, \ + .output = output_value, \ + .error = error_value, \ + .warning = warning_value, \ + .debug = debug_value, \ + .context = context_value, \ } #define macro_fll_program_console_parameter_standard_initialize \ diff --git a/level_3/byte_dump/c/main/common/type.h b/level_3/byte_dump/c/main/common/type.h index a0f64f7..e82c5fd 100644 --- a/level_3/byte_dump/c/main/common/type.h +++ b/level_3/byte_dump/c/main/common/type.h @@ -36,11 +36,10 @@ extern "C" { uint64_t row; } byte_dump_cell_t; - #define byte_dump_cell_t_initialize \ - { \ - 0, \ - 0, \ - } + #define byte_dump_cell_t_initialize { \ + .column = 0, \ + .row = 0, \ + } #endif // _di_byte_dump_cell_t_ /** @@ -61,11 +60,10 @@ extern "C" { uint8_t invalid; } byte_dump_previous_t; - #define byte_dump_previous_t_initialize \ - { \ - 0, \ - 0, \ - } + #define byte_dump_previous_t_initialize { \ + .bytes = 0, \ + .invalid = 0, \ + } #endif // _di_byte_previous_cell_ /** @@ -100,17 +98,16 @@ extern "C" { f_string_dynamics_t files; } byte_dump_setting_t; - #define byte_dump_setting_t_initialize \ - { \ - byte_dump_main_flag_none_d, \ - f_state_t_initialize, \ - 0, \ - 0, \ - 8, \ - byte_dump_mode_hexidecimal_e, \ - byte_dump_presentation_normal_e, \ - f_string_dynamics_t_initialize, \ - } + #define byte_dump_setting_t_initialize { \ + .flag = byte_dump_main_flag_none_d, \ + .state = f_state_t_initialize, \ + .first = 0, \ + .last = 0, \ + .width = 8, \ + .mode = byte_dump_mode_hexidecimal_e, \ + .presentation = byte_dump_presentation_normal_e, \ + .files = f_string_dynamics_t_initialize, \ + } #endif // _di_byte_dump_setting_t_ /** @@ -126,11 +123,10 @@ extern "C" { byte_dump_setting_t setting; }; - #define byte_dump_main_t_initialize \ - { \ - fll_program_data_t_initialize, \ - byte_dump_setting_t_initialize, \ - } + #define byte_dump_main_t_initialize { \ + .program = fll_program_data_t_initialize, \ + .setting = byte_dump_setting_t_initialize, \ + } #endif // _di_byte_dump_main_t_ /** diff --git a/level_3/example/c/main/common/type.h b/level_3/example/c/main/common/type.h index e8b1080..fd954af 100644 --- a/level_3/example/c/main/common/type.h +++ b/level_3/example/c/main/common/type.h @@ -33,10 +33,9 @@ extern "C" { f_string_dynamic_t buffer; } example_cache_t; - #define example_cache_t_initialize \ - { \ - f_string_dynamic_t_initialize, \ - } + #define example_cache_t_initialize { \ + .buffer = f_string_dynamic_t_initialize, \ + } #endif // _di_example_cache_t_ /** @@ -61,13 +60,12 @@ extern "C" { const f_string_static_t *program_name_long; } example_setting_t; - #define example_setting_t_initialize \ - { \ - example_main_flag_none_d, \ - f_state_t_initialize, \ - 0, \ - 0, \ - } + #define example_setting_t_initialize { \ + .flag = example_main_flag_none_d, \ + .state = f_state_t_initialize, \ + .program_name = 0, \ + .program_name_long = 0, \ + } #endif // _di_example_setting_t_ /** @@ -83,12 +81,11 @@ extern "C" { example_cache_t cache; }; - #define example_main_t_initialize \ - { \ - fll_program_data_t_initialize, \ - example_setting_t_initialize, \ - example_cache_t_initialize, \ - } + #define example_main_t_initialize { \ + .program = fll_program_data_t_initialize, \ + .setting = example_setting_t_initialize, \ + .cache = example_cache_t_initialize, \ + } #endif // _di_example_main_t_ /** diff --git a/level_3/fake/c/main/common/type.h b/level_3/fake/c/main/common/type.h index 994ba3a..fcad9cc 100644 --- a/level_3/fake/c/main/common/type.h +++ b/level_3/fake/c/main/common/type.h @@ -49,14 +49,14 @@ extern "C" { } fake_state_process_t; #define fake_state_process_t_initialize { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - F_true, \ - F_true, \ + .block = 0, \ + .block_result = 0, \ + .condition = 0, \ + .condition_result = 0, \ + .operation = 0, \ + .operation_previous = 0, \ + .success = F_true, \ + .success_block = F_true, \ } #endif // _di_fake_state_process_t_ @@ -108,24 +108,23 @@ extern "C" { f_uint8s_t operations; } fake_setting_t; - #define fake_setting_t_initialize \ - { \ - 0, \ - f_state_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_uint8s_t_initialize, \ - } + #define fake_setting_t_initialize { \ + .flag = 0, \ + .state = f_state_t_initialize, \ + .build = f_string_dynamic_t_initialize, \ + .data = f_string_dynamic_t_initialize, \ + .documents = f_string_dynamic_t_initialize, \ + .fakefile = f_string_dynamic_t_initialize, \ + .licenses = f_string_dynamic_t_initialize, \ + .process = f_string_dynamic_t_initialize, \ + .settings = f_string_dynamic_t_initialize, \ + .sources = f_string_dynamic_t_initialize, \ + .under = f_string_dynamic_t_initialize, \ + .work = f_string_dynamic_t_initialize, \ + .defines = f_string_dynamics_t_initialize, \ + .modes = f_string_dynamics_t_initialize, \ + .operations = f_uint8s_t_initialize, \ + } #endif // _di_fake_setting_t_ /** @@ -160,19 +159,18 @@ extern "C" { f_directory_recurse_do_t cache_recurse_do; }; - #define fake_main_t_initialize \ - { \ - fll_program_data_t_initialize, \ - fake_setting_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_map_t_initialize, \ - f_iki_data_t_initialize, \ - f_directory_recurse_do_t_initialize, \ - } + #define fake_main_t_initialize { \ + .program = fll_program_data_t_initialize, \ + .setting = fake_setting_t_initialize, \ + .buffer = f_string_dynamic_t_initialize, \ + .cache_1 = f_string_dynamic_t_initialize, \ + .cache_2 = f_string_dynamic_t_initialize, \ + .cache_argument = f_string_dynamic_t_initialize, \ + .cache_arguments = f_string_dynamics_t_initialize, \ + .cache_map = f_string_map_t_initialize, \ + .cache_iki = f_iki_data_t_initialize, \ + .cache_recurse_do = f_directory_recurse_do_t_initialize, \ + } #endif // _di_fake_main_t_ /** @@ -281,50 +279,49 @@ extern "C" { fake_main_t *main; } fake_data_t; - #define fake_data_t_initialize \ - { \ - 0, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - 0, \ - } + #define fake_data_t_initialize { \ + .operation = 0, \ + .path_build = f_string_dynamic_t_initialize, \ + .path_build_documentation = f_string_dynamic_t_initialize, \ + .path_build_documents = f_string_dynamic_t_initialize, \ + .path_build_includes = f_string_dynamic_t_initialize, \ + .path_build_libraries = f_string_dynamic_t_initialize, \ + .path_build_libraries_script = f_string_dynamic_t_initialize, \ + .path_build_libraries_shared = f_string_dynamic_t_initialize, \ + .path_build_libraries_static = f_string_dynamic_t_initialize, \ + .path_build_objects = f_string_dynamic_t_initialize, \ + .path_build_objects_script = f_string_dynamic_t_initialize, \ + .path_build_objects_shared = f_string_dynamic_t_initialize, \ + .path_build_objects_static = f_string_dynamic_t_initialize, \ + .path_build_programs = f_string_dynamic_t_initialize, \ + .path_build_programs_script = f_string_dynamic_t_initialize, \ + .path_build_programs_shared = f_string_dynamic_t_initialize, \ + .path_build_programs_static = f_string_dynamic_t_initialize, \ + .path_build_settings = f_string_dynamic_t_initialize, \ + .path_build_stage = f_string_dynamic_t_initialize, \ + .path_data_build = f_string_dynamic_t_initialize, \ + .path_data_documentation = f_string_dynamic_t_initialize, \ + .path_data_settings = f_string_dynamic_t_initialize, \ + .path_documents = f_string_dynamic_t_initialize, \ + .path_licenses = f_string_dynamic_t_initialize, \ + .path_work_includes = f_string_dynamic_t_initialize, \ + .path_work_libraries = f_string_dynamic_t_initialize, \ + .path_work_libraries_script = f_string_dynamic_t_initialize, \ + .path_work_libraries_shared = f_string_dynamic_t_initialize, \ + .path_work_libraries_static = f_string_dynamic_t_initialize, \ + .path_work_programs = f_string_dynamic_t_initialize, \ + .path_work_programs_script = f_string_dynamic_t_initialize, \ + .path_work_programs_shared = f_string_dynamic_t_initialize, \ + .path_work_programs_static = f_string_dynamic_t_initialize, \ + .file_data_build_defines = f_string_dynamic_t_initialize, \ + .file_data_build_dependencies = f_string_dynamic_t_initialize, \ + .file_data_build_fakefile = f_string_dynamic_t_initialize, \ + .file_data_build_process_post = f_string_dynamic_t_initialize, \ + .file_data_build_process_pre = f_string_dynamic_t_initialize, \ + .file_data_build_settings = f_string_dynamic_t_initialize, \ + .file_documents_readme = f_string_dynamic_t_initialize, \ + .main = 0, \ + } #endif // _di_fake_data_t_ /** @@ -342,19 +339,17 @@ extern "C" { void *custom_2; } fake_local_t; - #define fake_local_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - } - - #define macro_fake_local_t_initialize_1(main, custom_1, custom_2) \ - { \ - main, \ - custom_1, \ - custom_2, \ - } + #define fake_local_t_initialize { \ + .main = 0, \ + .custom_1 = 0, \ + .custom_2 = 0, \ + } + + #define macro_fake_local_t_initialize_1(main_value, custom_1_value, custom_2_value) { \ + .main = main_value, \ + .custom_1 = custom_1_value, \ + .custom_2 = custom_2_value, \ + } #endif // _di_fake_local_t_ /** @@ -631,131 +626,131 @@ extern "C" { } fake_build_setting_t; #define fake_build_setting_t_initialize { \ - 0, \ - 0, \ - 0, \ - 0, \ - F_true, \ - F_true, \ - F_true, \ - F_true, \ - F_true, \ - F_true, \ - F_true, \ - F_true, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ + .flag = 0, \ + .language = 0, \ + .version_file = 0, \ + .version_target = 0, \ + .build_script = F_true, \ + .build_shared = F_true, \ + .build_static = F_true, \ + .has_path_standard = F_true, \ + .preserve_path_headers = F_true, \ + .search_exclusive = F_true, \ + .search_shared = F_true, \ + .search_static = F_true, \ + .build_compiler = f_string_dynamic_t_initialize, \ + .build_indexer = f_string_dynamic_t_initialize, \ + .build_language = f_string_dynamic_t_initialize, \ + .build_language_path = f_string_dynamic_t_initialize, \ + .build_name = f_string_dynamic_t_initialize, \ + .build_name_library = f_string_dynamic_t_initialize, \ + .build_name_library_shared = f_string_dynamic_t_initialize, \ + .build_name_library_static = f_string_dynamic_t_initialize, \ + .build_name_object = f_string_dynamic_t_initialize, \ + .build_name_object_program = f_string_dynamic_t_initialize, \ + .build_name_object_program_shared = f_string_dynamic_t_initialize, \ + .build_name_object_program_static = f_string_dynamic_t_initialize, \ + .build_name_object_library = f_string_dynamic_t_initialize, \ + .build_name_object_library_shared = f_string_dynamic_t_initialize, \ + .build_name_object_library_static = f_string_dynamic_t_initialize, \ + .build_name_object_shared = f_string_dynamic_t_initialize, \ + .build_name_object_static = f_string_dynamic_t_initialize, \ + .build_name_program = f_string_dynamic_t_initialize, \ + .build_name_program_shared = f_string_dynamic_t_initialize, \ + .build_name_program_static = f_string_dynamic_t_initialize, \ + .build_name_script = f_string_dynamic_t_initialize, \ + .path_headers = f_string_dynamic_t_initialize, \ + .path_language = f_string_dynamic_t_initialize, \ + .path_library_script = f_string_dynamic_t_initialize, \ + .path_library_shared = f_string_dynamic_t_initialize, \ + .path_library_static = f_string_dynamic_t_initialize, \ + .path_object_script = f_string_dynamic_t_initialize, \ + .path_object_shared = f_string_dynamic_t_initialize, \ + .path_object_static = f_string_dynamic_t_initialize, \ + .path_program_script = f_string_dynamic_t_initialize, \ + .path_program_shared = f_string_dynamic_t_initialize, \ + .path_program_static = f_string_dynamic_t_initialize, \ + .path_sources = f_string_dynamic_t_initialize, \ + .path_sources_headers = f_string_dynamic_t_initialize, \ + .path_sources_library = f_string_dynamic_t_initialize, \ + .path_sources_object = f_string_dynamic_t_initialize, \ + .path_sources_program = f_string_dynamic_t_initialize, \ + .path_sources_script = f_string_dynamic_t_initialize, \ + .process_post = f_string_dynamic_t_initialize, \ + .process_pre = f_string_dynamic_t_initialize, \ + .stage = f_string_dynamic_t_initialize, \ + .version_major = f_string_dynamic_t_initialize, \ + .version_major_prefix = f_string_dynamic_t_initialize, \ + .version_micro = f_string_dynamic_t_initialize, \ + .version_micro_prefix = f_string_dynamic_t_initialize, \ + .version_minor = f_string_dynamic_t_initialize, \ + .version_minor_prefix = f_string_dynamic_t_initialize, \ + .version_nano = f_string_dynamic_t_initialize, \ + .version_nano_prefix = f_string_dynamic_t_initialize, \ + .build_compiler_arguments = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_shared = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_static = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_library = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_library_shared = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_library_static = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_object = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_object_shared = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_object_static = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_program = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_program_shared = f_string_dynamics_t_initialize, \ + .build_compiler_arguments_program_static = f_string_dynamics_t_initialize, \ + .build_indexer_arguments = f_string_dynamics_t_initialize, \ + .build_libraries = f_string_dynamics_t_initialize, \ + .build_libraries_shared = f_string_dynamics_t_initialize, \ + .build_libraries_static = f_string_dynamics_t_initialize, \ + .build_objects_library = f_string_dynamics_t_initialize, \ + .build_objects_library_shared = f_string_dynamics_t_initialize, \ + .build_objects_library_static = f_string_dynamics_t_initialize, \ + .build_objects_program = f_string_dynamics_t_initialize, \ + .build_objects_program_shared = f_string_dynamics_t_initialize, \ + .build_objects_program_static = f_string_dynamics_t_initialize, \ + .build_sources_documentation = f_string_dynamics_t_initialize, \ + .build_sources_headers = f_string_dynamics_t_initialize, \ + .build_sources_headers_shared = f_string_dynamics_t_initialize, \ + .build_sources_headers_static = f_string_dynamics_t_initialize, \ + .build_sources_library = f_string_dynamics_t_initialize, \ + .build_sources_library_shared = f_string_dynamics_t_initialize, \ + .build_sources_library_static = f_string_dynamics_t_initialize, \ + .build_sources_object = f_string_dynamics_t_initialize, \ + .build_sources_object_shared = f_string_dynamics_t_initialize, \ + .build_sources_object_static = f_string_dynamics_t_initialize, \ + .build_sources_program = f_string_dynamics_t_initialize, \ + .build_sources_program_shared = f_string_dynamics_t_initialize, \ + .build_sources_program_static = f_string_dynamics_t_initialize, \ + .build_sources_script = f_string_dynamics_t_initialize, \ + .build_sources_setting = f_string_dynamics_t_initialize, \ + .defines = f_string_dynamics_t_initialize, \ + .defines_library = f_string_dynamics_t_initialize, \ + .defines_library_shared = f_string_dynamics_t_initialize, \ + .defines_library_static = f_string_dynamics_t_initialize, \ + .defines_object = f_string_dynamics_t_initialize, \ + .defines_object_shared = f_string_dynamics_t_initialize, \ + .defines_object_static = f_string_dynamics_t_initialize, \ + .defines_program = f_string_dynamics_t_initialize, \ + .defines_program_shared = f_string_dynamics_t_initialize, \ + .defines_program_static = f_string_dynamics_t_initialize, \ + .defines_shared = f_string_dynamics_t_initialize, \ + .defines_static = f_string_dynamics_t_initialize, \ + .environment = f_string_dynamics_t_initialize, \ + .flags = f_string_dynamics_t_initialize, \ + .flags_library = f_string_dynamics_t_initialize, \ + .flags_library_shared = f_string_dynamics_t_initialize, \ + .flags_library_static = f_string_dynamics_t_initialize, \ + .flags_object = f_string_dynamics_t_initialize, \ + .flags_object_shared = f_string_dynamics_t_initialize, \ + .flags_object_static = f_string_dynamics_t_initialize, \ + .flags_program = f_string_dynamics_t_initialize, \ + .flags_program_shared = f_string_dynamics_t_initialize, \ + .flags_program_static = f_string_dynamics_t_initialize, \ + .flags_shared = f_string_dynamics_t_initialize, \ + .flags_static = f_string_dynamics_t_initialize, \ + .modes = f_string_dynamics_t_initialize, \ + .modes_default = f_string_dynamics_t_initialize, \ } #define fake_build_setting_total_d 123 @@ -807,24 +802,24 @@ extern "C" { } fake_build_stage_t; #define fake_build_stage_t_initialize { \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ + .file_library_script = f_string_dynamic_t_initialize, \ + .file_library_shared = f_string_dynamic_t_initialize, \ + .file_library_static = f_string_dynamic_t_initialize, \ + .file_library_static_object = f_string_dynamic_t_initialize, \ + .file_object_script = f_string_dynamic_t_initialize, \ + .file_object_shared = f_string_dynamic_t_initialize, \ + .file_object_static = f_string_dynamic_t_initialize, \ + .file_objects_static = f_string_dynamic_t_initialize, \ + .file_process_post = f_string_dynamic_t_initialize, \ + .file_process_pre = f_string_dynamic_t_initialize, \ + .file_program_script = f_string_dynamic_t_initialize, \ + .file_program_shared = f_string_dynamic_t_initialize, \ + .file_program_static = f_string_dynamic_t_initialize, \ + .file_skeleton = f_string_dynamic_t_initialize, \ + .file_sources_documentation = f_string_dynamic_t_initialize, \ + .file_sources_headers = f_string_dynamic_t_initialize, \ + .file_sources_script = f_string_dynamic_t_initialize, \ + .file_sources_settings = f_string_dynamic_t_initialize, \ } #define fake_build_stage_total_d 18 @@ -844,8 +839,8 @@ extern "C" { } fake_build_data_t; #define fake_build_data_t_initialize { \ - fake_build_setting_t_initialize, \ - f_string_maps_t_initialize, \ + .setting = fake_build_setting_t_initialize, \ + .environment = f_string_maps_t_initialize, \ } #endif // _di_fake_build_data_t_ @@ -868,10 +863,10 @@ extern "C" { } fake_make_setting_t; #define fake_make_setting_t_initialize { \ - 0, \ - 0, \ - f_string_dynamic_t_initialize, \ - f_string_map_multis_t_initialize, \ + .load_build = 0, \ + .fail = 0, \ + .stage = f_string_dynamic_t_initialize, \ + .parameter = f_string_map_multis_t_initialize, \ } #endif // _di_fake_make_setting_t_ @@ -913,20 +908,20 @@ extern "C" { } fake_make_parameter_t; #define fake_make_parameter_t_initialize { \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ + .build = f_string_dynamics_t_initialize, \ + .color = f_string_dynamics_t_initialize, \ + .data = f_string_dynamics_t_initialize, \ + .define = f_string_dynamics_t_initialize, \ + .documents = f_string_dynamics_t_initialize, \ + .fakefile = f_string_dynamics_t_initialize, \ + .licenses = f_string_dynamics_t_initialize, \ + .mode = f_string_dynamics_t_initialize, \ + .process = f_string_dynamics_t_initialize, \ + .settings = f_string_dynamics_t_initialize, \ + .sources = f_string_dynamics_t_initialize, \ + .under = f_string_dynamics_t_initialize, \ + .verbosity = f_string_dynamics_t_initialize, \ + .work = f_string_dynamics_t_initialize, \ } #endif // _di_fake_make_parameter_t_ @@ -945,8 +940,8 @@ extern "C" { } fake_make_path_t; #define fake_make_path_t_initialize { \ - f_file_t_initialize, \ - f_string_dynamics_t_initialize, \ + .top = f_file_t_initialize, \ + .stack = f_string_dynamics_t_initialize, \ } #endif // _di_fake_make_path_t_ @@ -961,13 +956,8 @@ extern "C" { * - parameter_option: A set of parameters available for IKI option substitution. * - parameter_value: A set of parameters available for IKI value substitution. * - path: The path to the Fakefile. + * - error: The error printing data. * - fakefile: The loaded Fakefile. - * - buffer: A buffer used during processing. - * - cache_1: An additional buffer for caching purposes. - * - cache_2: An additional buffer for caching purposes. - * - cache_path: A buffer for path-specific caching. - * - cache_arguments: A cache for expanded arguments. - * - cache_iki: A cache for IKI data. * - id_main: Index of the "main" Section. * - main: The program and settings data. * - data: The Fake make program data. @@ -995,18 +985,18 @@ extern "C" { } fake_make_data_t; #define fake_make_data_t_initialize { \ - fake_build_setting_t_initialize, \ - fake_make_setting_t_initialize, \ - f_string_maps_t_initialize, \ - fake_make_parameter_t_initialize, \ - fake_make_parameter_t_initialize, \ - fake_make_parameter_t_initialize, \ - fake_make_path_t_initialize, \ - fl_print_t_initialize, \ - f_fss_nameds_t_initialize, \ - 0, \ - 0, \ - 0, \ + .setting_build = fake_build_setting_t_initialize, \ + .setting_make = fake_make_setting_t_initialize, \ + .environment = f_string_maps_t_initialize, \ + .parameter = fake_make_parameter_t_initialize, \ + .parameter_option = fake_make_parameter_t_initialize, \ + .parameter_value = fake_make_parameter_t_initialize, \ + .path = fake_make_path_t_initialize, \ + .error = fl_print_t_initialize, \ + .fakefile = f_fss_nameds_t_initialize, \ + .id_main = 0, \ + .main = 0, \ + .data = 0, \ } #endif // _di_fake_make_data_t_ diff --git a/level_3/fss_identify/c/main/common/type.h b/level_3/fss_identify/c/main/common/type.h index 74998ed..210d397 100644 --- a/level_3/fss_identify/c/main/common/type.h +++ b/level_3/fss_identify/c/main/common/type.h @@ -63,20 +63,19 @@ extern "C" { f_string_dynamics_t files; } fss_identify_setting_t; - #define fss_identify_setting_t_initialize \ - { \ - fss_identify_main_flag_none_d, \ - f_state_t_initialize, \ - 0, \ - 0, \ - 0, \ - f_range_t_initialize, \ - f_file_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_fll_ids_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - } + #define fss_identify_setting_t_initialize { \ + .flag = fss_identify_main_flag_none_d, \ + .state = f_state_t_initialize, \ + .current = 0, \ + .line = 0, \ + .total = 0, \ + .range = f_range_t_initialize, \ + .file = f_file_t_initialize, \ + .buffer = f_string_dynamic_t_initialize, \ + .ids = f_fll_ids_t_initialize, \ + .names = f_string_dynamics_t_initialize, \ + .files = f_string_dynamics_t_initialize, \ + } #endif // _di_fss_identify_setting_t_ /** @@ -92,11 +91,10 @@ extern "C" { fss_identify_setting_t setting; }; - #define fss_identify_main_t_initialize \ - { \ - fll_program_data_t_initialize, \ - fss_identify_setting_t_initialize, \ - } + #define fss_identify_main_t_initialize { \ + .program = fll_program_data_t_initialize, \ + .setting = fss_identify_setting_t_initialize, \ + } #endif // _di_fss_identify_main_t_ /** diff --git a/level_3/fss_read/c/main/common/type.h b/level_3/fss_read/c/main/common/type.h index 46165f8..9917af9 100644 --- a/level_3/fss_read/c/main/common/type.h +++ b/level_3/fss_read/c/main/common/type.h @@ -45,21 +45,21 @@ extern "C" { f_string_dynamic_t value_name; } fss_read_depth_t; - #define fss_read_depth_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - 0, \ - f_string_dynamic_t_initialize, \ - } - - #define macro_fss_read_depth_t_clear(structure) \ - structure.depth = 0; \ - structure.index_at = 0; \ - structure.index_name = 0; \ - structure.value_at = 0; \ - macro_f_string_dynamic_t_clear(structure.value_name) + #define fss_read_depth_t_initialize { \ + .depth = 0, \ + .index_at = 0, \ + .index_name = 0, \ + .value_at = 0, \ + .value_name = f_string_dynamic_t_initialize, \ + } + + #define macro_fss_read_depth_t_clear(read_depth) { \ + read_depth.depth = 0; \ + read_depth.index_at = 0; \ + read_depth.index_name = 0; \ + read_depth.value_at = 0; \ + macro_f_string_dynamic_t_clear(read_depth.value_name) \ + } #endif // _di_fss_read_depth_t_ /** @@ -77,7 +77,11 @@ extern "C" { f_number_unsigned_t used; } fss_read_depths_t; - #define fss_read_depths_t_initialize { 0, 0, 0 } + #define fss_read_depths_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } #endif // _di_fss_read_depths_t_ /** @@ -92,11 +96,10 @@ extern "C" { f_range_t range; } fss_read_file_t; - #define fss_read_file_t_initialize \ - { \ - f_string_static_t_initialize, \ - f_range_t_initialize, \ - } + #define fss_read_file_t_initialize { \ + .name = f_string_static_t_initialize, \ + .range = f_range_t_initialize, \ + } #endif // _di_fss_read_file_t_ /** @@ -118,7 +121,11 @@ extern "C" { f_number_unsigned_t used; } fss_read_files_t; - #define fss_read_files_t_initialize { 0, 0, 0 } + #define fss_read_files_t_initialize { \ + .array = 0, \ + .used = 0, \ + .size = 0, \ + } #endif // _di_fss_read_files_t_ /** @@ -135,7 +142,11 @@ extern "C" { f_number_unsigneds_t slashes; } fss_read_cache_t; - #define fss_read_cache_t_initialize { f_ranges_t_initialize, f_number_unsigneds_t_initialize, f_number_unsigneds_t_initialize } + #define fss_read_cache_t_initialize { \ + .objects = f_ranges_t_initialize, \ + .positions = f_number_unsigneds_t_initialize, \ + .slashes = f_number_unsigneds_t_initialize, \ + } #endif // _di_fss_read_cache_t_ /** @@ -202,29 +213,28 @@ extern "C" { fl_print_call_t print_set_end_empty; } fss_read_call_t; - #define fss_read_call_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - } + #define fss_read_call_t_initialize { \ + .process = 0, \ + .process_help = 0, \ + .process_last_line = 0, \ + .process_at = 0, \ + .process_at_line = 0, \ + .process_columns = 0, \ + .process_load = 0, \ + .process_name = 0, \ + .process_total = 0, \ + .print_at = 0, \ + .print_object = 0, \ + .print_object_end_content = 0, \ + .print_content = 0, \ + .print_content_empty = 0, \ + .print_content_ignore = 0, \ + .print_content_next = 0, \ + .print_object_end = 0, \ + .print_object_end_empty = 0, \ + .print_set_end = 0, \ + .print_set_end_empty = 0, \ + } #endif // _di_fss_read_call_t_ /** @@ -296,32 +306,31 @@ extern "C" { f_uint8ss_t quotes_content; } fss_read_setting_t; - #define fss_read_setting_t_initialize \ - { \ - fss_read_main_flag_none_d, \ - fss_read_feature_flag_none_d, \ - fss_read_delimit_mode_all_e, \ - macro_f_state_t_initialize_1(fss_read_allocation_large_d, fss_read_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ - 0, \ - 0, \ - 0, \ - f_range_t_initialize, \ - fss_read_files_t_initialize, \ - fss_read_depth_t_initialize, \ - fss_read_depths_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_ranges_t_initialize, \ - f_ranges_t_initialize, \ - f_rangess_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_number_unsigneds_t_initialize, \ - f_fss_nest_t_initialize, \ - f_ranges_t_initialize, \ - f_uint8s_t_initialize, \ - f_uint8ss_t_initialize, \ - } + #define fss_read_setting_t_initialize { \ + .feature = fss_read_main_flag_none_d, \ + .flag = fss_read_feature_flag_none_d, \ + .delimit_mode = fss_read_delimit_mode_all_e, \ + .state = macro_f_state_t_initialize_1(fss_read_allocation_large_d, fss_read_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ + .delimit_depth = 0, \ + .select = 0, \ + .line = 0, \ + .range = f_range_t_initialize, \ + .files = fss_read_files_t_initialize, \ + .depth = fss_read_depth_t_initialize, \ + .depths = fss_read_depths_t_initialize, \ + .standard = f_string_static_t_initialize, \ + .open_object = f_string_static_t_initialize, \ + .buffer = f_string_dynamic_t_initialize, \ + .closes = f_ranges_t_initialize, \ + .comments = f_ranges_t_initialize, \ + .contents = f_rangess_t_initialize, \ + .delimits_object = f_number_unsigneds_t_initialize, \ + .delimits_content = f_number_unsigneds_t_initialize, \ + .nest = f_fss_nest_t_initialize, \ + .objects = f_ranges_t_initialize, \ + .quotes_object = f_uint8s_t_initialize, \ + .quotes_content = f_uint8ss_t_initialize, \ + } #endif // _di_fss_read_setting_t_ /** @@ -343,13 +352,12 @@ extern "C" { fss_read_setting_t setting; }; - #define fss_read_main_t_initialize \ - { \ - fss_read_cache_t_initialize, \ - fss_read_call_t_initialize, \ - fll_program_data_t_initialize, \ - fss_read_setting_t_initialize, \ - } + #define fss_read_main_t_initialize { \ + .cache = fss_read_cache_t_initialize, \ + .call = fss_read_call_t_initialize, \ + .program = fll_program_data_t_initialize, \ + .setting = fss_read_setting_t_initialize, \ + } #endif // _di_fss_read_main_t_ /** diff --git a/level_3/fss_write/c/main/common/type.h b/level_3/fss_write/c/main/common/type.h index 9b7ceb4..f305981 100644 --- a/level_3/fss_write/c/main/common/type.h +++ b/level_3/fss_write/c/main/common/type.h @@ -46,15 +46,14 @@ extern "C" { fss_write_process_main_call_t process_set; } fss_write_call_t; - #define fss_write_call_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - } + #define fss_write_call_t_initialize { \ + .process_content = 0, \ + .process_help = 0, \ + .process_normal = 0, \ + .process_object = 0, \ + .process_pipe = 0, \ + .process_set = 0, \ + } #endif // _di_fss_write_call_t_ /** @@ -111,33 +110,32 @@ extern "C" { f_string_statics_t *contents; } fss_write_setting_t; - #define fss_write_setting_t_initialize \ - { \ - fss_write_main_flag_none_d, \ - macro_f_state_t_initialize_1(fss_write_allocation_large_d, fss_write_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ - f_range_t_initialize, \ - f_string_static_t_initialize, \ - f_string_static_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_rangess_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamicss_t_initialize, \ - 0, \ - 0, \ - 0, \ - 0, \ - } + #define fss_write_setting_t_initialize { \ + .flag = fss_write_main_flag_none_d, \ + .state = macro_f_state_t_initialize_1(fss_write_allocation_large_d, fss_write_allocation_small_d, F_okay, 0, 0, &fll_program_standard_signal_handle, 0, 0, 0, 0), \ + .range = f_range_t_initialize, \ + .quote = f_string_static_t_initialize, \ + .standard = f_string_static_t_initialize, \ + .block = f_string_dynamic_t_initialize, \ + .buffer = f_string_dynamic_t_initialize, \ + .prepend = f_string_dynamic_t_initialize, \ + .ignoress = f_rangess_t_initialize, \ + .objects = f_string_dynamics_t_initialize, \ + .contentss = f_string_dynamicss_t_initialize, \ + .ignores = 0, \ + .object = 0, \ + .content = 0, \ + .contents = 0, \ + } #endif // _di_fss_write_setting_t_ /** * The main program data as a single structure. * * Properties: - * - call: The callbacks. - * - program: The main program data. - * - setting: The settings data. + * - call: The callbacks. + * - program: The main program data. + * - setting: The settings data. */ #ifndef _di_fss_write_main_t_ struct fss_write_main_t_ { @@ -148,9 +146,9 @@ extern "C" { #define fss_write_main_t_initialize \ { \ - fss_write_call_t_initialize, \ - fll_program_data_t_initialize, \ - fss_write_setting_t_initialize, \ + .call = fss_write_call_t_initialize, \ + .program = fll_program_data_t_initialize, \ + .setting = fss_write_setting_t_initialize, \ } #endif // _di_fss_write_main_t_ diff --git a/level_3/iki_read/c/main/common/type.h b/level_3/iki_read/c/main/common/type.h index 29ec1f6..01de371 100644 --- a/level_3/iki_read/c/main/common/type.h +++ b/level_3/iki_read/c/main/common/type.h @@ -36,11 +36,10 @@ extern "C" { f_string_dynamic_t expand; } iki_read_cache_t; - #define iki_read_cache_t_initialize \ - { \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - } + #define iki_read_cache_t_initialize { \ + .buffer = f_string_dynamic_t_initialize, \ + .expand = f_string_dynamic_t_initialize, \ + } #endif // _di_iki_read_cache_t_ /** @@ -77,16 +76,15 @@ extern "C" { iki_read_main_call_t delete_data; } iki_read_callback_t; - #define iki_read_callback_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - } + #define iki_read_callback_t_initialize { \ + .identify_alteration = 0, \ + .print_data = 0, \ + .print_help = 0, \ + .process_buffer_ranges = 0, \ + .process_buffer_ranges_whole = 0, \ + .process_buffer_total = 0, \ + .delete_data = 0, \ + } #endif // _di_iki_read_callback_t_ /** @@ -135,22 +133,21 @@ extern "C" { f_number_unsignedss_t map_wrapss; } iki_read_setting_t; - #define iki_read_setting_t_initialize \ - { \ - iki_read_main_flag_none_d, \ - macro_f_state_t_initialize_1(iki_read_allocation_large_d, iki_read_allocation_small_d, F_okay, 0, 0, 0, 0, 0, 0, 0), \ - 0, \ - 0, \ - 0, \ - f_string_dynamics_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_maps_t_initialize, \ - f_string_triples_t_initialize, \ - f_string_triples_t_initialize, \ - f_string_triples_t_initialize, \ - f_number_unsignedss_t_initialize, \ - f_number_unsignedss_t_initialize, \ - } + #define iki_read_setting_t_initialize { \ + .flag = iki_read_main_flag_none_d, \ + .state = macro_f_state_t_initialize_1(iki_read_allocation_large_d, iki_read_allocation_small_d, F_okay, 0, 0, 0, 0, 0, 0, 0), \ + .at = 0, \ + .line = 0, \ + .select = 0, \ + .names = f_string_dynamics_t_initialize, \ + .files = f_string_dynamics_t_initialize, \ + .replace = f_string_maps_t_initialize, \ + .reassign = f_string_triples_t_initialize, \ + .substitute = f_string_triples_t_initialize, \ + .wrap = f_string_triples_t_initialize, \ + .map_replacess = f_number_unsignedss_t_initialize, \ + .map_wrapss = f_number_unsignedss_t_initialize, \ + } #endif // _di_iki_read_setting_t_ /** @@ -172,16 +169,13 @@ extern "C" { iki_read_setting_t setting; }; - #ifndef iki_read_main_t_initialize - #define iki_read_main_t_initialize \ - { \ - iki_read_cache_t_initialize, \ - iki_read_callback_t_initialize, \ - 0, \ - fll_program_data_t_initialize, \ - iki_read_setting_t_initialize, \ - } - #endif // iki_read_main_t_initialize + #define iki_read_main_t_initialize { \ + .cache = iki_read_cache_t_initialize, \ + .call = iki_read_callback_t_initialize, \ + .data = 0, \ + .program = fll_program_data_t_initialize, \ + .setting = iki_read_setting_t_initialize, \ + } #endif // _di_iki_read_main_t_ /** diff --git a/level_3/iki_write/c/main/common/type.h b/level_3/iki_write/c/main/common/type.h index 43c9032..6e59101 100644 --- a/level_3/iki_write/c/main/common/type.h +++ b/level_3/iki_write/c/main/common/type.h @@ -40,13 +40,12 @@ extern "C" { f_string_dynamics_t objects; } iki_write_cache_t; - #define iki_write_cache_t_initialize \ - { \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamic_t_initialize, \ - f_string_dynamics_t_initialize, \ - } + #define iki_write_cache_t_initialize { \ + .buffer = f_string_dynamic_t_initialize, \ + .content = f_string_dynamic_t_initialize, \ + .iki = f_string_dynamic_t_initialize, \ + .objects = f_string_dynamics_t_initialize, \ + } #endif // _di_iki_write_cache_t_ /** @@ -72,12 +71,11 @@ extern "C" { iki_write_process_objects_content_call_t process_objects_content; } iki_write_call_t; - #define iki_write_call_t_initialize \ - { \ - 0, \ - 0, \ - 0, \ - } + #define iki_write_call_t_initialize { \ + .load_objects_content_pipe = 0, \ + .print_help = 0, \ + .process_objects_content = 0, \ + } #endif // _di_iki_write_call_t_ /** @@ -106,14 +104,13 @@ extern "C" { f_string_dynamicss_t objectss; } iki_write_setting_t; - #define iki_write_setting_t_initialize \ - { \ - iki_write_main_flag_none_d, \ - f_state_t_initialize, \ - f_string_static_t_initialize, \ - f_string_dynamics_t_initialize, \ - f_string_dynamicss_t_initialize, \ - } + #define iki_write_setting_t_initialize { \ + .flag = iki_write_main_flag_none_d, \ + .state = f_state_t_initialize, \ + .quote = f_string_static_t_initialize, \ + .contents = f_string_dynamics_t_initialize, \ + .objectss = f_string_dynamicss_t_initialize, \ + } #endif // _di_iki_write_setting_t_ /** @@ -133,13 +130,12 @@ extern "C" { iki_write_setting_t setting; }; - #define iki_write_main_t_initialize \ - { \ - iki_write_cache_t_initialize, \ - iki_write_call_t_initialize, \ - fll_program_data_t_initialize, \ - iki_write_setting_t_initialize, \ - } + #define iki_write_main_t_initialize { \ + .cache = iki_write_cache_t_initialize, \ + .call = iki_write_call_t_initialize, \ + .program = fll_program_data_t_initialize, \ + .setting = iki_write_setting_t_initialize, \ + } #endif // _di_iki_write_main_t_ /** diff --git a/level_3/status_code/c/main/common/type.h b/level_3/status_code/c/main/common/type.h index bb6d0d9..fabb1ed 100644 --- a/level_3/status_code/c/main/common/type.h +++ b/level_3/status_code/c/main/common/type.h @@ -29,12 +29,13 @@ extern "C" { * This is passed to the program-specific main entry point to designate program settings. * These program settings are often processed from the program arguments (often called the command line arguments). * - * flag: Flags passed to the main function. - * state: The state data used when processing the FSS data. + * Properties: + * - flag: Flags passed to the main function. + * - state: The state data used when processing the FSS data. * - * status_string_from: A pointer to the status string function (usually either fl_status_string_from() or fll_fss_status_string_from()). - * status_string_to: A pointer to the status string function (usually either f_status_string_to() or fll_fss_status_string_to()). - * status_string_help_detail: Print additional, more detailed help, in the help page. + * - status_string_from: A pointer to the status string function (usually either fl_status_string_from() or fll_fss_status_string_from()). + * - status_string_to: A pointer to the status string function (usually either f_status_string_to() or fll_fss_status_string_to()). + * - status_string_help_detail: Print additional, more detailed help, in the help page. */ #ifndef _di_status_code_setting_t_ typedef struct { @@ -49,23 +50,23 @@ extern "C" { f_status_t (*status_string_help_detail)(fl_print_t * const print); } status_code_setting_t; - #define status_code_setting_t_initialize \ - { \ - status_code_main_flag_none_d, \ - f_state_t_initialize, \ - 0, \ - 0, \ - 0, \ - 0, \ - 0, \ - } + #define status_code_setting_t_initialize { \ + .flag = status_code_main_flag_none_d, \ + .state = f_state_t_initialize, \ + .program_name = 0, \ + .program_name_long = 0, \ + .status_string_from = 0, \ + .status_string_to = 0, \ + .status_string_help_detail = 0, \ + } #endif // _di_status_code_setting_t_ /** * The main program data as a single structure. * - * program: The main program data. - * setting: The settings data. + * Properties: + * - program: The main program data. + * - setting: The settings data. */ #ifndef _di_status_code_main_t_ struct status_code_main_t_ { @@ -73,11 +74,10 @@ extern "C" { status_code_setting_t setting; }; - #define status_code_main_t_initialize \ - { \ - fll_program_data_t_initialize, \ - status_code_setting_t_initialize, \ - } + #define status_code_main_t_initialize { \ + .program = fll_program_data_t_initialize, \ + .setting = status_code_setting_t_initialize, \ + } #endif // _di_status_code_main_t_ /** -- 1.8.3.1