]> Kevux Git Server - fll/commitdiff
Update: Revert back to 'char' rather than 'unsigned char'.
authorKevin Day <thekevinday@gmail.com>
Wed, 9 Mar 2022 05:10:08 +0000 (23:10 -0600)
committerKevin Day <thekevinday@gmail.com>
Wed, 9 Mar 2022 05:13:47 +0000 (23:13 -0600)
There are a lot more changes that I realized.
changing 'char' to 'unsigned char' will be for the next development release after the upcoming stable release.

Introduce the f_char_t type to allow for easier switching from 'char' to 'unsigned char'.

In all places that us 'unsigned char', just switch to 'char'.

Move the directory '..' and '.' into static strings.

123 files changed:
level_0/f_account/c/account.c
level_0/f_account/c/private-account.c
level_0/f_capability/c/capability.c
level_0/f_color/c/color.c
level_0/f_color/c/color/common.h
level_0/f_console/c/console/common.c
level_0/f_console/c/console/common.h
level_0/f_console/tests/unit/c/test-console-environment_process.c
level_0/f_conversion/c/conversion.c
level_0/f_conversion/c/conversion.h
level_0/f_conversion/c/private-conversion.c
level_0/f_conversion/c/private-conversion.h
level_0/f_conversion/tests/unit/c/test-conversion-number_signed_to_string.c
level_0/f_conversion/tests/unit/c/test-conversion-number_unsigned_to_string.c
level_0/f_directory/c/directory.c
level_0/f_directory/c/directory/common.c [new file with mode: 0644]
level_0/f_directory/c/directory/common.h
level_0/f_directory/data/build/settings
level_0/f_environment/c/environment.c
level_0/f_execute/c/execute/common.h
level_0/f_file/c/file.c
level_0/f_file/c/private-file.c
level_0/f_file/c/private-file.h
level_0/f_fss/c/fss/common.h
level_0/f_iki/c/private-iki.c
level_0/f_iki/c/private-iki.h
level_0/f_path/c/path.c
level_0/f_path/c/private-path.c
level_0/f_path/c/private-path.h
level_0/f_print/c/print.c
level_0/f_print/c/print.h
level_0/f_print/c/print/private-to.c
level_0/f_print/c/print/private-to.h
level_0/f_print/c/print/to.c
level_0/f_print/c/print/to.h
level_0/f_print/c/private-print.c
level_0/f_print/c/private-print.h
level_0/f_serialize/c/serialize.c
level_0/f_status/c/status.h
level_0/f_status_string/c/status_string.c
level_0/f_status_string/c/status_string.h
level_0/f_string/c/private-string.c
level_0/f_string/c/string/common.h
level_0/f_string/c/string/dynamic.c
level_0/f_string/c/string/dynamic.h
level_0/f_string/c/string/static.h
level_0/f_type/c/type.h
level_0/f_utf/c/utf.c
level_0/f_utf/c/utf/dynamic.c
level_0/f_utf/c/utf/dynamic.h
level_0/f_utf/c/utf/private-string.c
level_1/fl_control_group/c/control_group.c
level_1/fl_directory/c/directory.c
level_1/fl_directory/c/private-directory.c
level_1/fl_environment/c/environment.c
level_1/fl_fss/c/private-fss.c
level_1/fl_print/c/private-print.c
level_1/fl_string/c/string.c
level_1/fl_utf/c/utf.c
level_1/fl_utf/c/utf.h
level_1/fl_utf_file/c/private-utf_file.c
level_1/fl_utf_file/c/private-utf_file.h
level_1/fl_utf_file/c/utf_file.c
level_2/fll_control_group/c/control_group.c
level_2/fll_error/c/error.c
level_2/fll_error/c/error.h
level_2/fll_error/c/private-error.c
level_2/fll_error/c/private-error.h
level_2/fll_execute/c/execute.c
level_2/fll_execute/c/private-execute.c
level_2/fll_file/c/private-file.c
level_2/fll_fss/c/fss/payload.c
level_2/fll_iki/c/iki.h
level_2/fll_iki/c/private-iki.c
level_2/fll_iki/c/private-iki.h
level_2/fll_print/c/print.c
level_2/fll_print/c/print.h
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_2/fll_status_string/c/status_string.c
level_3/byte_dump/c/main.c
level_3/byte_dump/c/private-byte_dump.c
level_3/byte_dump/c/private-byte_dump.h
level_3/controller/c/control/private-control.c
level_3/fake/c/main.c
level_3/fake/c/private-build-library.c
level_3/fake/c/private-build-load.c
level_3/fake/c/private-build-object.c
level_3/fake/c/private-build-objects.c
level_3/fake/c/private-build-program.c
level_3/fake/c/private-build-skeleton.c
level_3/fake/c/private-build.c
level_3/fake/c/private-clean.c
level_3/fake/c/private-fake.c
level_3/fake/c/private-make-load_fakefile.c
level_3/fake/c/private-make-operate_process.c
level_3/fake/c/private-make-operate_process_type.c
level_3/fake/c/private-make-operate_validate.c
level_3/fake/c/private-print.c
level_3/fake/c/private-print.h
level_3/fake/c/private-skeleton.c
level_3/firewall/c/firewall.c
level_3/firewall/c/main.c
level_3/firewall/c/private-common.c
level_3/firewall/c/private-common.h
level_3/firewall/c/private-firewall.c
level_3/fss_basic_list_write/c/main.c
level_3/fss_basic_write/c/main.c
level_3/fss_embedded_list_read/c/main.c
level_3/fss_embedded_list_read/c/private-read.c
level_3/fss_embedded_list_write/c/main.c
level_3/fss_extended_list_write/c/main.c
level_3/fss_extended_write/c/main.c
level_3/fss_identify/c/main.c
level_3/fss_payload_write/c/main.c
level_3/fss_payload_write/c/private-write.c
level_3/fss_status_code/c/main.c
level_3/iki_read/c/main.c
level_3/iki_write/c/main.c
level_3/status_code/c/main.c
level_3/utf8/c/main.c
level_3/utf8/c/private-utf8_binary.c
level_3/utf8/c/private-utf8_codepoint.c

index 4236c5c569ac341b89226812036d3fc06877226f..3e4a1ae4f5fa4e591a099dff66fbce25a067e481 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getpwuid()/getpwuid_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       const int result = getpwuid_r(id, &password, buffer, length, &pointer);
 
       if (result) {
@@ -63,7 +63,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getpwuid_r(id, &password, buffer, length, &pointer);
 
@@ -116,7 +116,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getpwnam()/getpwnam_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       const int result = getpwnam_r(name.string, &password, buffer, length, &pointer);
 
       if (result) {
@@ -144,7 +144,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getpwnam_r(name.string, &password, buffer, length, &pointer);
 
@@ -189,7 +189,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getgrnam()/getgrnam_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       int result = getgrnam_r(name.string, &group_data, buffer, length, &pointer);
 
       if (result) {
@@ -219,7 +219,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getgrnam_r(name.string, &group_data, buffer, length, &pointer);
 
@@ -270,7 +270,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getpwuid()/getpwuid_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       const int result = getgrgid_r(id, &group_data, buffer, length, &pointer);
 
       if (result) {
@@ -294,10 +294,10 @@ extern "C" {
 
         const f_array_length_t name_length = strnlen(group_data.gr_name, length);
 
-        macro_f_string_dynamic_t_resize(status, (*name), name_length + 1);
+        status = f_string_dynamic_resize(name_length + 1, name);
         if (F_status_is_error(status)) return status;
 
-        memcpy(name->string, group_data.gr_name, sizeof(unsigned char) * name_length);
+        memcpy(name->string, group_data.gr_name, sizeof(f_char_t) * name_length);
 
         name->string[name_length] = 0;
         name->used = name_length;
@@ -308,7 +308,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getgrgid_r(id, &group_data, buffer, length, &pointer);
 
@@ -329,10 +329,10 @@ extern "C" {
 
     const f_array_length_t name_length = strnlen(group_data.gr_name, length);
 
-    macro_f_string_dynamic_t_resize(status, (*name), name_length + 1);
+    status = f_string_dynamic_resize(name_length + 1, name);
     if (F_status_is_error(status)) return status;
 
-    memcpy(name->string, group_data.gr_name, sizeof(unsigned char) * name_length);
+    memcpy(name->string, group_data.gr_name, sizeof(f_char_t) * name_length);
 
     name->string[name_length] = 0;
     name->used = name_length;
@@ -363,7 +363,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getpwnam()/getpwnam_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       const int result = getpwnam_r(name.string, &password, buffer, length, &pointer);
 
       if (result) {
@@ -393,7 +393,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getpwnam_r(name.string, &password, buffer, length, &pointer);
 
@@ -444,7 +444,7 @@ extern "C" {
       // Must be set to 0 to avoid problems due to the design of getpwuid()/getpwuid_r().
       errno = 0;
 
-      unsigned char buffer[length];
+      char buffer[length];
       const int result = getpwuid_r(id, &password, buffer, length, &pointer);
 
       if (result) {
@@ -468,10 +468,10 @@ extern "C" {
 
         const f_array_length_t name_length = strnlen(password.pw_name, length);
 
-        macro_f_string_dynamic_t_resize(status, (*name), name_length + 1);
+        status = f_string_dynamic_resize(name_length + 1, name);
         if (F_status_is_error(status)) return status;
 
-        memcpy(name->string, password.pw_name, sizeof(unsigned char) * name_length);
+        memcpy(name->string, password.pw_name, sizeof(f_char_t) * name_length);
 
         name->string[name_length] = 0;
         name->used = name_length;
@@ -482,7 +482,7 @@ extern "C" {
 
     length = F_account_pwd_length_fallback_second_d;
 
-    unsigned char buffer[F_account_pwd_length_fallback_second_d];
+    char buffer[F_account_pwd_length_fallback_second_d];
 
     const int result = getpwuid_r(id, &password, buffer, length, &pointer);
 
@@ -503,10 +503,10 @@ extern "C" {
 
     const f_array_length_t name_length = strnlen(password.pw_name, length);
 
-    macro_f_string_dynamic_t_resize(status, (*name), name_length + 1);
+    status = f_string_dynamic_resize(name_length + 1, name);
     if (F_status_is_error(status)) return status;
 
-    memcpy(name->string, password.pw_name, sizeof(unsigned char) * name_length);
+    memcpy(name->string, password.pw_name, sizeof(f_char_t) * name_length);
 
     name->string[name_length] = 0;
     name->used = name_length;
index 88ad94424fbf514ab330836e4f28015b42861ab6..ff65362cba225bc35e09ae7f67e0307dbdec1b6f 100644 (file)
@@ -20,7 +20,7 @@ extern "C" {
     status = f_string_dynamic_resize(string_length + 1, &account->home);
     if (F_status_is_error(status)) return status;
 
-    memcpy(account->home.string, password.pw_dir, sizeof(unsigned char) * string_length);
+    memcpy(account->home.string, password.pw_dir, sizeof(f_char_t) * string_length);
 
     account->home.string[string_length] = 0;
     account->home.used = string_length;
@@ -31,7 +31,7 @@ extern "C" {
     status = f_string_dynamic_resize(string_length + 1, &account->label);
     if (F_status_is_error(status)) return status;
 
-    memcpy(account->label.string, password.pw_gecos, sizeof(unsigned char) * string_length);
+    memcpy(account->label.string, password.pw_gecos, sizeof(f_char_t) * string_length);
 
     account->label.string[string_length] = 0;
     account->label.used = string_length;
@@ -42,7 +42,7 @@ extern "C" {
     status = f_string_dynamic_resize(string_length + 1, &account->name);
     if (F_status_is_error(status)) return status;
 
-    memcpy(account->name.string, password.pw_name, sizeof(unsigned char) * string_length);
+    memcpy(account->name.string, password.pw_name, sizeof(f_char_t) * string_length);
 
     account->name.string[string_length] = 0;
     account->name.used = string_length;
@@ -53,7 +53,7 @@ extern "C" {
     status = f_string_dynamic_resize(string_length + 1, &account->password);
     if (F_status_is_error(status)) return status;
 
-    memcpy(account->password.string, password.pw_passwd, sizeof(unsigned char) * string_length);
+    memcpy(account->password.string, password.pw_passwd, sizeof(f_char_t) * string_length);
 
     account->password.string[string_length] = 0;
     account->password.used = string_length;
@@ -64,7 +64,7 @@ extern "C" {
     status = f_string_dynamic_resize(string_length + 1, &account->shell);
     if (F_status_is_error(status)) return status;
 
-    memcpy(account->shell.string, password.pw_shell, sizeof(unsigned char) * string_length);
+    memcpy(account->shell.string, password.pw_shell, sizeof(f_char_t) * string_length);
 
     account->shell.string[string_length] = 0;
     account->shell.used = string_length;
index ac5294166263c82a4f8105cfca5ff7ef65d960a7..68d7565486e9946a00c2a191ddde3e435c731f2b 100644 (file)
@@ -1048,7 +1048,7 @@ extern "C" {
         if (!name) return F_status_set_error(F_parameter);
       #endif // _di_level_0_parameter_checking_
 
-      unsigned char *result = cap_to_name(code);
+      char *result = cap_to_name(code);
 
       if (result) {
         const f_array_length_t length = strlen(result);
@@ -1067,7 +1067,7 @@ extern "C" {
           }
         }
 
-        memcpy(name->string + name->used, result, sizeof(unsigned char) * length);
+        memcpy(name->string + name->used, result, sizeof(char) * length);
         name->used += length;
         name->string[name->used] = 0;
 
@@ -1091,7 +1091,7 @@ extern "C" {
 
       ssize_t length = 0;
 
-      unsigned char *result = cap_to_text(capability, &length);
+      char *result = cap_to_text(capability, &length);
 
       if (result) {
         if (text->used + length + 1 > text->size) {
@@ -1108,7 +1108,7 @@ extern "C" {
           }
         }
 
-        memcpy(text->string + text->used, result, sizeof(unsigned char) * length);
+        memcpy(text->string + text->used, result, sizeof(char) * length);
         text->used += length;
         text->string[text->used] = 0;
 
index f2b9e12911d792342f7acc2acd92dcf70c0b5902..d9fe72449f8c778be13001049978f634a5fafd96 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
 
     // Switch to the appropriate terminal color mode.
     {
-      unsigned char *environment = getenv(f_color_terminal_name_s.string);
+      char *environment = getenv(f_color_terminal_name_s.string);
 
       if (!environment || strncmp(environment, f_color_terminal_value_linux_s.string, f_color_terminal_value_linux_s.used) == 0) {
         macro_f_color_t_set_linux(context->list);
@@ -123,19 +123,19 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     if (format.begin.used) {
-      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(unsigned char) * format.begin.used);
+      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(f_char_t) * format.begin.used);
 
       buffer->used += format.begin.used;
     }
 
     if (color1.used) {
-      memcpy(buffer->string + buffer->used, color1.string, sizeof(unsigned char) * color1.used);
+      memcpy(buffer->string + buffer->used, color1.string, sizeof(f_char_t) * color1.used);
 
       buffer->used += color1.used;
     }
 
     if (format.end.used) {
-      memcpy(buffer->string + buffer->used, format.end.string, sizeof(unsigned char) * format.end.used);
+      memcpy(buffer->string + buffer->used, format.end.string, sizeof(f_char_t) * format.end.used);
 
       buffer->used += format.end.used;
     }
@@ -158,31 +158,31 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     if (format.begin.used) {
-      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(unsigned char) * format.begin.used);
+      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(f_char_t) * format.begin.used);
 
       buffer->used += format.begin.used;
     }
 
     if (color1.used) {
-      memcpy(buffer->string + buffer->used, color1.string, sizeof(unsigned char) * color1.used);
+      memcpy(buffer->string + buffer->used, color1.string, sizeof(f_char_t) * color1.used);
 
       buffer->used += color1.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color2.used) {
-      memcpy(buffer->string + buffer->used, color2.string, sizeof(unsigned char) * color2.used);
+      memcpy(buffer->string + buffer->used, color2.string, sizeof(f_char_t) * color2.used);
 
       buffer->used += color2.used;
     }
 
     if (format.end.used) {
-      memcpy(buffer->string + buffer->used, format.end.string, sizeof(unsigned char) * format.end.used);
+      memcpy(buffer->string + buffer->used, format.end.string, sizeof(f_char_t) * format.end.used);
 
       buffer->used += format.end.used;
     }
@@ -205,43 +205,43 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     if (format.begin.used) {
-      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(unsigned char) * format.begin.used);
+      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(f_char_t) * format.begin.used);
 
       buffer->used += format.begin.used;
     }
 
     if (color1.used) {
-      memcpy(buffer->string + buffer->used, color1.string, sizeof(unsigned char) * color1.used);
+      memcpy(buffer->string + buffer->used, color1.string, sizeof(f_char_t) * color1.used);
 
       buffer->used += color1.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color2.used) {
-      memcpy(buffer->string + buffer->used, color2.string, sizeof(unsigned char) * color2.used);
+      memcpy(buffer->string + buffer->used, color2.string, sizeof(f_char_t) * color2.used);
 
       buffer->used += color2.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color3.used) {
-      memcpy(buffer->string + buffer->used, color3.string, sizeof(unsigned char) * color3.used);
+      memcpy(buffer->string + buffer->used, color3.string, sizeof(f_char_t) * color3.used);
 
       buffer->used += color3.used;
     }
 
     if (format.end.used) {
-      memcpy(buffer->string + buffer->used, format.end.string, sizeof(unsigned char) * format.end.used);
+      memcpy(buffer->string + buffer->used, format.end.string, sizeof(f_char_t) * format.end.used);
 
       buffer->used += format.end.used;
     }
@@ -264,55 +264,55 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     if (format.begin.used) {
-      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(unsigned char) * format.begin.used);
+      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(f_char_t) * format.begin.used);
 
       buffer->used += format.begin.used;
     }
 
     if (color1.used) {
-      memcpy(buffer->string + buffer->used, color1.string, sizeof(unsigned char) * color1.used);
+      memcpy(buffer->string + buffer->used, color1.string, sizeof(f_char_t) * color1.used);
 
       buffer->used += color1.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color2.used) {
-      memcpy(buffer->string + buffer->used, color2.string, sizeof(unsigned char) * color2.used);
+      memcpy(buffer->string + buffer->used, color2.string, sizeof(f_char_t) * color2.used);
 
       buffer->used += color2.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color3.used) {
-      memcpy(buffer->string + buffer->used, color3.string, sizeof(unsigned char) * color3.used);
+      memcpy(buffer->string + buffer->used, color3.string, sizeof(f_char_t) * color3.used);
 
       buffer->used += color3.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color4.used) {
-      memcpy(buffer->string + buffer->used, color4.string, sizeof(unsigned char) * color4.used);
+      memcpy(buffer->string + buffer->used, color4.string, sizeof(f_char_t) * color4.used);
 
       buffer->used += color4.used;
     }
 
     if (format.end.used) {
-      memcpy(buffer->string + buffer->used, format.end.string, sizeof(unsigned char) * format.end.used);
+      memcpy(buffer->string + buffer->used, format.end.string, sizeof(f_char_t) * format.end.used);
 
       buffer->used += format.end.used;
     }
@@ -335,67 +335,67 @@ extern "C" {
     if (F_status_is_error(status)) return status;
 
     if (format.begin.used) {
-      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(unsigned char) * format.begin.used);
+      memcpy(buffer->string + buffer->used, format.begin.string, sizeof(f_char_t) * format.begin.used);
 
       buffer->used += format.begin.used;
     }
 
     if (color1.used) {
-      memcpy(buffer->string + buffer->used, color1.string, sizeof(unsigned char) * color1.used);
+      memcpy(buffer->string + buffer->used, color1.string, sizeof(f_char_t) * color1.used);
 
       buffer->used += color1.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color2.used) {
-      memcpy(buffer->string + buffer->used, color2.string, sizeof(unsigned char) * color2.used);
+      memcpy(buffer->string + buffer->used, color2.string, sizeof(f_char_t) * color2.used);
 
       buffer->used += color2.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color3.used) {
-      memcpy(buffer->string + buffer->used, color3.string, sizeof(unsigned char) * color3.used);
+      memcpy(buffer->string + buffer->used, color3.string, sizeof(f_char_t) * color3.used);
 
       buffer->used += color3.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color4.used) {
-      memcpy(buffer->string + buffer->used, color4.string, sizeof(unsigned char) * color4.used);
+      memcpy(buffer->string + buffer->used, color4.string, sizeof(f_char_t) * color4.used);
 
       buffer->used += color4.used;
     }
 
     if (format.medium.used) {
-      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(unsigned char) * format.medium.used);
+      memcpy(buffer->string + buffer->used, format.medium.string, sizeof(f_char_t) * format.medium.used);
 
       buffer->used += format.medium.used;
     }
 
     if (color5.used) {
-      memcpy(buffer->string + buffer->used, color5.string, sizeof(unsigned char) * color5.used);
+      memcpy(buffer->string + buffer->used, color5.string, sizeof(f_char_t) * color5.used);
 
       buffer->used += color5.used;
     }
 
     if (format.end.used) {
-      memcpy(buffer->string + buffer->used, format.end.string, sizeof(unsigned char) * format.end.used);
+      memcpy(buffer->string + buffer->used, format.end.string, sizeof(f_char_t) * format.end.used);
 
       buffer->used += format.end.used;
     }
index 0337b7da0401dbde9d611a8f6b391756ca7c515c..ef108a474be5471ec095f1faf681dea833aa8fdb 100644 (file)
@@ -37,7 +37,7 @@ extern "C" {
  *   - xterminal: X-Terminal color code set.
  */
 #ifndef _di_f_color_code_t_
-  typedef unsigned char f_color_code_t;
+  typedef f_char_t f_color_code_t;
 
   #define F_color_code_none_d      0
   #define F_color_code_linux_d     1
index e2b9a4e29eae712f0435f28570c971dbb02546f0..91fda255339c2c0d4534be4a46b8d0d0599986e0 100644 (file)
@@ -5,37 +5,37 @@ extern "C" {
 #endif
 
 #ifndef _di_f_console_standard_s_
-  const f_string_static_t f_console_standard_short_dark_s = macro_f_string_static_t_initialize(F_console_standard_short_dark_s, 0, F_console_standard_short_dark_s_length);
-  const f_string_static_t f_console_standard_short_debug_s = macro_f_string_static_t_initialize(F_console_standard_short_debug_s, 0, F_console_standard_short_debug_s_length);
-  const f_string_static_t f_console_standard_short_help_s = macro_f_string_static_t_initialize(F_console_standard_short_help_s, 0, F_console_standard_short_help_s_length);
-  const f_string_static_t f_console_standard_short_light_s = macro_f_string_static_t_initialize(F_console_standard_short_light_s, 0, F_console_standard_short_light_s_length);
-  const f_string_static_t f_console_standard_short_no_color_s = macro_f_string_static_t_initialize(F_console_standard_short_no_color_s, 0, F_console_standard_short_no_color_s_length);
-  const f_string_static_t f_console_standard_short_normal_s = macro_f_string_static_t_initialize(F_console_standard_short_normal_s, 0, F_console_standard_short_normal_s_length);
-  const f_string_static_t f_console_standard_short_quiet_s = macro_f_string_static_t_initialize(F_console_standard_short_quiet_s, 0, F_console_standard_short_quiet_s_length);
-  const f_string_static_t f_console_standard_short_status_in_s = macro_f_string_static_t_initialize(F_console_standard_short_status_in_s, 0, F_console_standard_short_status_in_s_length);
-  const f_string_static_t f_console_standard_short_status_out_s = macro_f_string_static_t_initialize(F_console_standard_short_status_out_s, 0, F_console_standard_short_status_out_s_length);
-  const f_string_static_t f_console_standard_short_verbose_s = macro_f_string_static_t_initialize(F_console_standard_short_verbose_s, 0, F_console_standard_short_verbose_s_length);
-  const f_string_static_t f_console_standard_short_version_s = macro_f_string_static_t_initialize(F_console_standard_short_version_s, 0, F_console_standard_short_version_s_length);
-
-  const f_string_static_t f_console_standard_long_dark_s = macro_f_string_static_t_initialize(F_console_standard_long_dark_s, 0, F_console_standard_long_dark_s_length);
-  const f_string_static_t f_console_standard_long_debug_s = macro_f_string_static_t_initialize(F_console_standard_long_debug_s, 0, F_console_standard_long_debug_s_length);
-  const f_string_static_t f_console_standard_long_help_s = macro_f_string_static_t_initialize(F_console_standard_long_help_s, 0, F_console_standard_long_help_s_length);
-  const f_string_static_t f_console_standard_long_light_s = macro_f_string_static_t_initialize(F_console_standard_long_light_s, 0, F_console_standard_long_light_s_length);
-  const f_string_static_t f_console_standard_long_no_color_s = macro_f_string_static_t_initialize(F_console_standard_long_no_color_s, 0, F_console_standard_long_no_color_s_length);
-  const f_string_static_t f_console_standard_long_normal_s = macro_f_string_static_t_initialize(F_console_standard_long_normal_s, 0, F_console_standard_long_normal_s_length);
-  const f_string_static_t f_console_standard_long_quiet_s = macro_f_string_static_t_initialize(F_console_standard_long_quiet_s, 0, F_console_standard_long_quiet_s_length);
-  const f_string_static_t f_console_standard_long_status_in_s = macro_f_string_static_t_initialize(F_console_standard_long_status_in_s, 0, F_console_standard_long_status_in_s_length);
-  const f_string_static_t f_console_standard_long_status_out_s = macro_f_string_static_t_initialize(F_console_standard_long_status_out_s, 0, F_console_standard_long_status_out_s_length);
-  const f_string_static_t f_console_standard_long_verbose_s = macro_f_string_static_t_initialize(F_console_standard_long_verbose_s, 0, F_console_standard_long_verbose_s_length);
-  const f_string_static_t f_console_standard_long_version_s = macro_f_string_static_t_initialize(F_console_standard_long_version_s, 0, F_console_standard_long_version_s_length);
+  const f_string_static_t f_console_standard_short_dark_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_dark_s, 0, F_console_standard_short_dark_s_length);
+  const f_string_static_t f_console_standard_short_debug_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_debug_s, 0, F_console_standard_short_debug_s_length);
+  const f_string_static_t f_console_standard_short_help_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_help_s, 0, F_console_standard_short_help_s_length);
+  const f_string_static_t f_console_standard_short_light_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_light_s, 0, F_console_standard_short_light_s_length);
+  const f_string_static_t f_console_standard_short_no_color_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_no_color_s, 0, F_console_standard_short_no_color_s_length);
+  const f_string_static_t f_console_standard_short_normal_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_normal_s, 0, F_console_standard_short_normal_s_length);
+  const f_string_static_t f_console_standard_short_quiet_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_quiet_s, 0, F_console_standard_short_quiet_s_length);
+  const f_string_static_t f_console_standard_short_status_in_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_status_in_s, 0, F_console_standard_short_status_in_s_length);
+  const f_string_static_t f_console_standard_short_status_out_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_status_out_s, 0, F_console_standard_short_status_out_s_length);
+  const f_string_static_t f_console_standard_short_verbose_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_verbose_s, 0, F_console_standard_short_verbose_s_length);
+  const f_string_static_t f_console_standard_short_version_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_short_version_s, 0, F_console_standard_short_version_s_length);
+
+  const f_string_static_t f_console_standard_long_dark_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_dark_s, 0, F_console_standard_long_dark_s_length);
+  const f_string_static_t f_console_standard_long_debug_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_debug_s, 0, F_console_standard_long_debug_s_length);
+  const f_string_static_t f_console_standard_long_help_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_help_s, 0, F_console_standard_long_help_s_length);
+  const f_string_static_t f_console_standard_long_light_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_light_s, 0, F_console_standard_long_light_s_length);
+  const f_string_static_t f_console_standard_long_no_color_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_no_color_s, 0, F_console_standard_long_no_color_s_length);
+  const f_string_static_t f_console_standard_long_normal_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_normal_s, 0, F_console_standard_long_normal_s_length);
+  const f_string_static_t f_console_standard_long_quiet_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_quiet_s, 0, F_console_standard_long_quiet_s_length);
+  const f_string_static_t f_console_standard_long_status_in_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_status_in_s, 0, F_console_standard_long_status_in_s_length);
+  const f_string_static_t f_console_standard_long_status_out_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_status_out_s, 0, F_console_standard_long_status_out_s_length);
+  const f_string_static_t f_console_standard_long_verbose_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_verbose_s, 0, F_console_standard_long_verbose_s_length);
+  const f_string_static_t f_console_standard_long_version_s = macro_f_string_static_t_initialize((f_string_t)F_console_standard_long_version_s, 0, F_console_standard_long_version_s_length);
 #endif // _di_f_console_standard_s_
 
 #ifndef _di_f_console_symbol_s_
-  const f_string_static_t f_console_symbol_short_enable_s = macro_f_string_static_t_initialize(F_console_symbol_short_enable_s, 0, F_console_symbol_short_enable_s_length);
-  const f_string_static_t f_console_symbol_short_disable_s = macro_f_string_static_t_initialize(F_console_symbol_short_disable_s, 0, F_console_symbol_short_disable_s_length);
+  const f_string_static_t f_console_symbol_short_enable_s = macro_f_string_static_t_initialize((f_string_t)F_console_symbol_short_enable_s, 0, F_console_symbol_short_enable_s_length);
+  const f_string_static_t f_console_symbol_short_disable_s = macro_f_string_static_t_initialize((f_string_t)F_console_symbol_short_disable_s, 0, F_console_symbol_short_disable_s_length);
 
-  const f_string_static_t f_console_symbol_long_enable_s = macro_f_string_static_t_initialize(F_console_symbol_long_enable_s, 0, F_console_symbol_long_enable_s_length);
-  const f_string_static_t f_console_symbol_long_disable_s = macro_f_string_static_t_initialize(F_console_symbol_long_disable_s, 0, F_console_symbol_long_disable_s_length);
+  const f_string_static_t f_console_symbol_long_enable_s = macro_f_string_static_t_initialize((f_string_t)F_console_symbol_long_enable_s, 0, F_console_symbol_long_enable_s_length);
+  const f_string_static_t f_console_symbol_long_disable_s = macro_f_string_static_t_initialize((f_string_t)F_console_symbol_long_disable_s, 0, F_console_symbol_long_disable_s_length);
 #endif // _di_f_console_symbol_s_
 
 #ifndef _di_f_console_parameters_delete_
index 63fc65055258063410b870731eabeaa0e500c9b1..75db4e76ca9975873a18bf3dbbfd284fe5073ed7 100644 (file)
@@ -262,9 +262,9 @@ extern "C" {
  */
 #ifndef _di_f_console_parameter_t_
   typedef struct {
-    const unsigned char *symbol_short;
-    const unsigned char *symbol_long;
-    const unsigned char *symbol_other;
+    const f_string_t symbol_short;
+    const f_string_t symbol_long;
+    const f_string_t symbol_other;
 
     const uint8_t values_total;
     const uint8_t type;
@@ -384,7 +384,7 @@ extern "C" {
  *
  * This is intended to only store the argc and argv and should not be treated as dynamic.
  *
- * No structure initializer is provided due to the use of constant properties.
+ * macro_f_console_arguments_t_initialize() initializes the structure.
  */
 #ifndef _di_f_console_arguments_t_
   typedef struct {
index 23f3812a76dd6f39c379976fd216a03b6f1c51ed..6931ecbcc35fe25c24c6ee8c0598838deee92ceb 100644 (file)
@@ -97,7 +97,7 @@ void test__f_console_environment_process__works(void **state) {
       {
         char buffer[maps.array[i].name.used + 1];
 
-        memcpy(buffer, maps.array[i].name.string, maps.array[i].name.used);
+        memcpy(buffer, maps.array[i].name.string, sizeof(f_char_t) * maps.array[i].name.used);
         buffer[maps.array[i].name.used] = 0;
 
         assert_string_equal(buffer, names[i]);
@@ -106,7 +106,7 @@ void test__f_console_environment_process__works(void **state) {
       {
         char buffer[maps.array[i].value.used + 1];
 
-        memcpy(buffer, maps.array[i].value.string, maps.array[i].value.used);
+        memcpy(buffer, maps.array[i].value.string, sizeof(f_char_t) * maps.array[i].value.used);
         buffer[maps.array[i].value.used] = 0;
 
         assert_string_equal(buffer, values[i]);
index 1e5f664ed95dce483d8b64480bd64bef1b12208e..e261414a1a060aff89d2619604f869971a186c7f 100644 (file)
@@ -6,7 +6,7 @@ extern "C" {
 #endif
 
 #ifndef _di_f_conversion_character_is_binary_
-  f_status_t f_conversion_character_is_binary(const unsigned char character) {
+  f_status_t f_conversion_character_is_binary(const f_char_t character) {
 
     if (character == 0x30 || character == 0x31) {
       return F_true;
@@ -17,7 +17,7 @@ extern "C" {
 #endif // _di_f_conversion_character_is_binary_
 
 #ifndef _di_f_conversion_character_is_decimal_
-  f_status_t f_conversion_character_is_decimal(const unsigned char character) {
+  f_status_t f_conversion_character_is_decimal(const f_char_t character) {
 
     if (character > 0x2f && character < 0x3a) {
       return F_true;
@@ -28,7 +28,7 @@ extern "C" {
 #endif // _di_f_conversion_character_is_decimal_
 
 #ifndef _di_f_conversion_character_is_duodecimal_
-  f_status_t f_conversion_character_is_duodecimal(const unsigned char character) {
+  f_status_t f_conversion_character_is_duodecimal(const f_char_t character) {
 
     if (character > 0x2f && character < 0x3a) {
       return F_true;
@@ -47,7 +47,7 @@ extern "C" {
 #endif // _di_f_conversion_character_is_duodecimal_
 
 #ifndef _di_f_conversion_character_is_hexidecimal_
-  f_status_t f_conversion_character_is_hexidecimal(const unsigned char character) {
+  f_status_t f_conversion_character_is_hexidecimal(const f_char_t character) {
 
     if (character > 0x2f && character < 0x3a) {
       return F_true;
@@ -66,7 +66,7 @@ extern "C" {
 #endif // _di_f_conversion_character_is_hexidecimal_
 
 #ifndef _di_f_conversion_character_is_octal_
-  f_status_t f_conversion_character_is_octal(const unsigned char character) {
+  f_status_t f_conversion_character_is_octal(const f_char_t character) {
 
     if (character > 0x2f && character < 0x38) {
       return F_true;
@@ -77,7 +77,7 @@ extern "C" {
 #endif // _di_f_conversion_character_is_octal_
 
 #ifndef _di_f_conversion_character_to_binary_
-  f_status_t f_conversion_character_to_binary(const unsigned char character, uint8_t * const number) {
+  f_status_t f_conversion_character_to_binary(const f_char_t character, uint8_t * const number) {
     #ifndef _di_level_0_parameter_checking_
       if (!number) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -95,7 +95,7 @@ extern "C" {
 #endif // _di_f_conversion_character_to_binary_
 
 #ifndef _di_f_conversion_character_to_decimal_
-  f_status_t f_conversion_character_to_decimal(const unsigned char character, uint8_t * const number) {
+  f_status_t f_conversion_character_to_decimal(const f_char_t character, uint8_t * const number) {
     #ifndef _di_level_0_parameter_checking_
       if (!number) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -111,7 +111,7 @@ extern "C" {
 #endif // _di_f_conversion_character_to_decimal_
 
 #ifndef _di_f_conversion_character_to_duodecimal_
-  f_status_t f_conversion_character_to_duodecimal(const unsigned char character, uint8_t * const number) {
+  f_status_t f_conversion_character_to_duodecimal(const f_char_t character, uint8_t * const number) {
     #ifndef _di_level_0_parameter_checking_
       if (!number) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -133,7 +133,7 @@ extern "C" {
 #endif // _di_f_conversion_character_to_duodecimal_
 
 #ifndef _di_f_conversion_character_to_hexidecimal_
-  f_status_t f_conversion_character_to_hexidecimal(const unsigned char character, uint8_t * const number) {
+  f_status_t f_conversion_character_to_hexidecimal(const f_char_t character, uint8_t * const number) {
     #ifndef _di_level_0_parameter_checking_
       if (!number) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -155,7 +155,7 @@ extern "C" {
 #endif // _di_f_conversion_character_to_hexidecimal_
 
 #ifndef _di_f_conversion_character_to_octal_
-  f_status_t f_conversion_character_to_octal(const unsigned char character, uint8_t * const number) {
+  f_status_t f_conversion_character_to_octal(const f_char_t character, uint8_t * const number) {
     #ifndef _di_level_0_parameter_checking_
       if (!number) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
index 69a8b7ee87dc82690835fb1f68c580d7ff36b5f2..3dd1f655bf2b24441baf1425d799562afb489e45 100644 (file)
@@ -47,7 +47,7 @@ extern "C" {
  *   F_false if character is not a binary.
  */
 #ifndef _di_f_conversion_character_is_binary_
-  extern f_status_t f_conversion_character_is_binary(const unsigned char character);
+  extern f_status_t f_conversion_character_is_binary(const f_char_t character);
 #endif // _di_f_conversion_character_is_binary_
 
 /**
@@ -65,7 +65,7 @@ extern "C" {
  *   F_false if character is not a decimal.
  */
 #ifndef _di_f_conversion_character_is_decimal_
-  extern f_status_t f_conversion_character_is_decimal(const unsigned char character);
+  extern f_status_t f_conversion_character_is_decimal(const f_char_t character);
 #endif // _di_f_conversion_character_is_decimal_
 
 /**
@@ -85,7 +85,7 @@ extern "C" {
  *   F_false if character is not a duodecimal.
  */
 #ifndef _di_f_conversion_character_is_duodecimal_
-  extern f_status_t f_conversion_character_is_duodecimal(const unsigned char character);
+  extern f_status_t f_conversion_character_is_duodecimal(const f_char_t character);
 #endif // _di_f_conversion_character_is_duodecimal_
 
 /**
@@ -109,7 +109,7 @@ extern "C" {
  *   F_false if character is not a hexidecimal.
  */
 #ifndef _di_f_conversion_character_is_hexidecimal_
-  extern f_status_t f_conversion_character_is_hexidecimal(const unsigned char character);
+  extern f_status_t f_conversion_character_is_hexidecimal(const f_char_t character);
 #endif // _di_f_conversion_character_is_hexidecimal_
 
 /**
@@ -127,7 +127,7 @@ extern "C" {
  *   F_false if character is not an octal.
  */
 #ifndef _di_f_conversion_character_is_octal_
-  extern f_status_t f_conversion_character_is_octal(const unsigned char character);
+  extern f_status_t f_conversion_character_is_octal(const f_char_t character);
 #endif // _di_f_conversion_character_is_octal_
 
 /**
@@ -146,7 +146,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_f_conversion_character_to_binary_
-  extern f_status_t f_conversion_character_to_binary(const unsigned char character, uint8_t * const number);
+  extern f_status_t f_conversion_character_to_binary(const f_char_t character, uint8_t * const number);
 #endif // _di_f_conversion_character_to_binary_
 
 /**
@@ -165,7 +165,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_f_conversion_character_to_decimal_
-  extern f_status_t f_conversion_character_to_decimal(const unsigned char character, uint8_t * const number);
+  extern f_status_t f_conversion_character_to_decimal(const f_char_t character, uint8_t * const number);
 #endif // _di_f_conversion_character_to_decimal_
 
 /**
@@ -184,7 +184,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_f_conversion_character_to_duodecimal_
-  extern f_status_t f_conversion_character_to_duodecimal(const unsigned char character, uint8_t * const number);
+  extern f_status_t f_conversion_character_to_duodecimal(const f_char_t character, uint8_t * const number);
 #endif // _di_f_conversion_character_to_duodecimal_
 
 /**
@@ -203,7 +203,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_f_conversion_character_to_hexidecimal_
-  extern f_status_t f_conversion_character_to_hexidecimal(const unsigned char character, uint8_t * const number);
+  extern f_status_t f_conversion_character_to_hexidecimal(const f_char_t character, uint8_t * const number);
 #endif // _di_f_conversion_character_to_hexidecimal_
 
 /**
@@ -222,7 +222,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_f_conversion_character_to_octal_
-  extern f_status_t f_conversion_character_to_octal(const unsigned char character, uint8_t * const number);
+  extern f_status_t f_conversion_character_to_octal(const f_char_t character, uint8_t * const number);
 #endif // _di_f_conversion_character_to_octal_
 
 /**
index 3cbbe05bdb60d20d7a2fbc4bdb46c5bd9e749dfb..c8e75762996771ba8a11646720c7a764a1fec270 100644 (file)
@@ -121,7 +121,7 @@ extern "C" {
     f_number_unsigned_t current = number;
     f_number_unsigned_t work = 0;
 
-    for (unsigned char c = 0; digits; --digits) {
+    for (f_char_t c = 0; digits; --digits) {
 
       work = current / power;
       current -= work * power;
@@ -188,7 +188,7 @@ extern "C" {
         return F_status_set_error(F_output);
       }
 
-      unsigned char c = 0;
+      f_char_t c = 0;
 
       switch (data.base) {
         case 2:
@@ -320,7 +320,7 @@ extern "C" {
     f_number_unsigned_t current = number;
     f_number_unsigned_t work = 0;
 
-    for (unsigned char c = 0; digits; --digits) {
+    for (f_char_t c = 0; digits; --digits) {
 
       work = current / power;
       current -= work * power;
@@ -344,7 +344,7 @@ extern "C" {
 #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_)
 
 #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_)
-  void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const unsigned char pad, int total, f_string_dynamic_t * const destination) {
+  void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const f_char_t pad, int total, f_string_dynamic_t * const destination) {
 
     for (; total; --total) {
       destination->string[destination->used++] = pad;
@@ -373,7 +373,7 @@ extern "C" {
     if (data.flag & F_conversion_data_flag_base_prepend_d) {
       destination->string[destination->used++] = f_string_ascii_0_s.string[0];
 
-      unsigned char c = 0;
+      f_char_t c = 0;
 
       switch (data.base) {
         case 2:
index 8eb99ecfb3da2a5a423122e3bbee09d8fd12d8df..77c8836e42dd7b240a272915e5c19862cf6b3fd5 100644 (file)
@@ -213,7 +213,7 @@ extern "C" {
  * @see f_conversion_number_unsigned_to_string()
  */
 #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_)
-  extern void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const unsigned char pad, int total, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
+  extern void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const f_char_t pad, int total, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_)
 
 /**
index e99047eaa9e6bb5fad94ed0c0b99c69e3ae105e3..b9d7563e7836b9a62ab115fd46ce8606e14edd26 100644 (file)
@@ -57,7 +57,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -69,7 +69,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(8, F_conversion_data_flag_base_prepend_d, 0);
@@ -81,7 +81,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(8, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -93,7 +93,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_base_prepend_d, 0);
@@ -105,7 +105,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -117,7 +117,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(12, F_conversion_data_flag_base_prepend_d, 0);
@@ -129,7 +129,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(12, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -141,7 +141,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(16, F_conversion_data_flag_base_prepend_d, 0);
@@ -153,7 +153,7 @@ void test__f_conversion_number_signed_to_string__works_for_prepend(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(16, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -181,7 +181,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, 0, 1);
@@ -193,7 +193,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_zeros_leading_d, 1);
@@ -205,7 +205,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, 0, 2);
@@ -217,7 +217,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_zeros_leading_d, 2);
@@ -229,7 +229,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_pad_d, 0);
@@ -241,7 +241,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_pad_d, 1);
@@ -253,7 +253,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d, 0);
@@ -265,7 +265,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d, 1);
@@ -277,7 +277,7 @@ void test__f_conversion_number_signed_to_string__works_for_zero(void **state) {
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d | F_conversion_data_flag_zeros_leading_d, 2);
index 77155978f71f3f23ef289b095bae05b1c8940990..bac49a637c748c4efa0b71d0723f6ceb96f9f6ef 100644 (file)
@@ -57,7 +57,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(2, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -69,7 +69,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(8, F_conversion_data_flag_base_prepend_d, 0);
@@ -81,7 +81,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(8, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -93,7 +93,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_base_prepend_d, 0);
@@ -105,7 +105,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -117,7 +117,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(12, F_conversion_data_flag_base_prepend_d, 0);
@@ -129,7 +129,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(12, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -141,7 +141,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(16, F_conversion_data_flag_base_prepend_d, 0);
@@ -153,7 +153,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_prepend(void **stat
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(16, F_conversion_data_flag_base_prepend_d | F_conversion_data_flag_base_upper_d, 0);
@@ -181,7 +181,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, 0, 1);
@@ -193,7 +193,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_zeros_leading_d, 1);
@@ -205,7 +205,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, 0, 2);
@@ -217,7 +217,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_zeros_leading_d, 2);
@@ -229,7 +229,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_pad_d, 0);
@@ -241,7 +241,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_pad_d, 1);
@@ -253,7 +253,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d, 0);
@@ -265,7 +265,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d, 1);
@@ -277,7 +277,7 @@ void test__f_conversion_number_unsigned_to_string__works_for_zero(void **state)
   }
 
   destination.used = 0;
-  memset(destination.string, 0, destination.size);
+  memset(destination.string, 0, sizeof(f_char_t) * destination.size);
 
   {
     const f_conversion_data_t data = macro_f_conversion_data_t_initialize(10, F_conversion_data_flag_sign_always_d | F_conversion_data_flag_zeros_leading_d, 2);
index 0b0af330181ab2112ff6cbc093b73c86942ed14f..915d23cbc075fd1ad28e268fd95ce032026f8995 100644 (file)
@@ -187,8 +187,8 @@ extern "C" {
       size = strnlen(listing[i]->d_name, F_directory_name_max_d);
 
       // There is no reason to include "." and ".." in the directory listing.
-      if (!strncmp(listing[i]->d_name, "..", 3) || !strncmp(listing[i]->d_name, ".", 2))  {
-        f_memory_delete(size, sizeof(unsigned char *), (void **) & listing[i]);
+      if (!strncmp(listing[i]->d_name, f_directory_back_s.string, f_directory_back_s.used + 1) || !strncmp(listing[i]->d_name, f_directory_current_s.string, f_directory_current_s.used + 1))  {
+        f_memory_delete(size, sizeof(f_string_t), (void **) & listing[i]);
 
         continue;
       }
@@ -203,14 +203,14 @@ extern "C" {
       status = f_string_dynamic_increase_by(size, &names->array[names->used]);
       if (F_status_is_error(status)) break;
 
-      memcpy(names->array[names->used].string, listing[i]->d_name, sizeof(unsigned char) * size);
+      memcpy(names->array[names->used].string, listing[i]->d_name, sizeof(f_char_t) * size);
       names->array[names->used++].used = size;
 
-      f_memory_delete(size, sizeof(unsigned char *), (void **) & listing[i]);
+      f_memory_delete(size, sizeof(f_string_t), (void **) & listing[i]);
     } // for
 
     for (; i < length; ++i) {
-      f_memory_delete(size, sizeof(unsigned char *), (void **) & listing[i]);
+      f_memory_delete(size, sizeof(f_string_t), (void **) & listing[i]);
     } // for
 
     f_memory_delete(1, sizeof(struct dirent *), (void **) & listing);
@@ -324,7 +324,7 @@ extern "C" {
     int result = 0;
 
     if (depth_max) {
-      result = nftw((char *) path.string, private_f_directory_remove_recursively, depth_max, FTW_DEPTH | FTW_PHYS);
+      result = nftw(path.string, private_f_directory_remove_recursively, depth_max, FTW_DEPTH | FTW_PHYS);
 
       if (result == 0 && !preserve) {
         result = remove(path.string);
@@ -378,7 +378,7 @@ extern "C" {
     int result = 0;
 
     if (depth_max) {
-      result = nftw((char *) path.string, custom, depth_max, FTW_DEPTH | FTW_PHYS);
+      result = nftw(path.string, custom, depth_max, FTW_DEPTH | FTW_PHYS);
 
       if (result == 0 && !preserve) {
         result = remove(path.string);
diff --git a/level_0/f_directory/c/directory/common.c b/level_0/f_directory/c/directory/common.c
new file mode 100644 (file)
index 0000000..d658a00
--- /dev/null
@@ -0,0 +1,14 @@
+#include "../directory.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_f_directory_string_
+  const f_string_static_t f_directory_back_s = macro_f_string_static_t_initialize(F_directory_back_s, 0, F_directory_back_s_length);
+  const f_string_static_t f_directory_current_s = macro_f_string_static_t_initialize(F_directory_current_s, 0, F_directory_current_s_length);
+#endif // _di_f_directory_string_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
index 5eb3f54062648d028fafa30fcdf03271bd0607e9..4fb2b8ae2507bc5254b926522b84a102b9186539 100644 (file)
 extern "C" {
 #endif
 
+#ifndef _di_f_directory_string_
+  #define F_directory_back_s    ".."
+  #define F_directory_current_s "."
+
+  #define F_directory_back_s_length    2
+  #define F_directory_current_s_length 1
+
+  extern const f_string_static_t f_directory_back_s;
+  extern const f_string_static_t f_directory_current_s;
+#endif // _di_f_directory_string_
+
 /**
  * Directory AT_* define related functionality.
  */
index 236f486929c096e16f77af7df9d6df5148b49599..378fcb9a2e7b783bd1ffb7390689107bedc8ee75 100644 (file)
@@ -31,7 +31,7 @@ build_objects_library_static
 build_objects_program
 build_objects_program_shared
 build_objects_program_static
-build_sources_library directory.c private-directory.c
+build_sources_library directory.c private-directory.c directory/common.c
 build_sources_library_shared
 build_sources_library_static
 build_sources_object
index 0a39c82ce58f0b3106abf849182456b21e5cff24..114cc5f1fdac141caa8600819b58aedb8ebb41d0 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
       return F_data_not;
     }
 
-    const f_string_t result = getenv(name.string);
+    const char *result = getenv(name.string);
 
     if (!result) {
       return F_exist_not;
@@ -52,7 +52,7 @@ extern "C" {
       const f_status_t status = f_string_dynamic_increase_by(size + 1, value);
       if (F_status_is_error(status)) return status;
 
-      memcpy(value->string + value->used, result, sizeof(unsigned char) * size);
+      memcpy(value->string + value->used, result, sizeof(char) * size);
 
       value->used += size;
       value->string[value->used] = 0;
index f5e62fb159ed3a22c42371397f61ad73c0325095..8e2a52fa30a0dd7d45ed94d6648c69df889f8c55 100644 (file)
@@ -30,7 +30,7 @@ extern "C" {
  * Warning: F_execute and F_execute_not are F_status_t status codes and are not F_execute_codes.
  * The F_execute_off is the execute code equivalent of F_execute_not.
  */
-#ifndef _di_F_execute_codes_
+#ifndef _di_f_execute_codes_
   enum {
     F_execute_none = 0,
     F_execute_access,
@@ -71,7 +71,7 @@ extern "C" {
     // Required.
     F_execute_code_last,
   }; // enum
-#endif // _di_F_execute_codes_
+#endif // _di_f_execute_codes_
 
 /**
  * A structure representing a scheduler and its parameters for execution.
index d9a5c58388423032029df12c12221885fcac3af8..bd4a8d635330dc397e015c5e70a76c590ae02d12 100644 (file)
@@ -1392,20 +1392,20 @@ extern "C" {
     }
 
     // POSIX basename() modifies the path, so protect it (and add a terminating NULL).
-    unsigned char path_argument[path.used + 1];
+    char path_argument[path.used + 1];
     f_string_t path_to_name;
 
-    memcpy(path_argument, path.string, sizeof(unsigned char) * path.used);
+    memcpy(path_argument, path.string, sizeof(f_char_t) * path.used);
     path_argument[path.used] = 0;
 
-    path_to_name = basename(path_argument);
+    path_to_name = (f_string_t) basename(path_argument);
 
     const f_array_length_t size = strnlen(path_to_name, path.used);
 
     const f_status_t status = f_string_dynamic_increase_by(size + 1, name_base);
     if (F_status_is_error(status)) return status;
 
-    memcpy(name_base->string + name_base->used, path_to_name, sizeof(unsigned char) * size);
+    memcpy(name_base->string + name_base->used, path_to_name, sizeof(f_char_t) * size);
     name_base->used += size;
     name_base->string[name_base->used] = 0;
 
@@ -1424,13 +1424,13 @@ extern "C" {
     }
 
     // POSIX dirname() modifies the path, so protect it (and add a terminating NULL).
-    unsigned char path_argument[path.used + 1];
+    char path_argument[path.used + 1];
     f_string_t path_to_name;
 
-    memcpy(path_argument, path.string, sizeof(unsigned char) * path.used);
+    memcpy(path_argument, path.string, sizeof(f_char_t) * path.used);
     path_argument[path.used] = 0;
 
-    path_to_name = dirname(path_argument);
+    path_to_name = (f_string_t) dirname(path_argument);
 
     const f_array_length_t size = strnlen(path_to_name, path.used);
 
@@ -1444,7 +1444,7 @@ extern "C" {
       if (F_status_is_error(status)) return status;
     }
 
-    memcpy(name_directory->string + name_directory->used, path_to_name, sizeof(unsigned char) * size);
+    memcpy(name_directory->string + name_directory->used, path_to_name, sizeof(f_char_t) * size);
     name_directory->used += size;
     name_directory->string[name_directory->used] = 0;
 
index 0c078b37fb7dd5231eb191ead410f8ea6b30c1bb..06c6745df3f25af3cc5169c538ae674b556ee593 100644 (file)
@@ -60,9 +60,9 @@ extern "C" {
 
     ssize_t size_read = 0;
     ssize_t size_write = 0;
-    unsigned char *buffer[size_block];
+    f_char_t buffer[size_block];
 
-    memset(buffer, 0, sizeof(unsigned char) * size_block);
+    memset(buffer, 0, sizeof(f_char_t) * size_block);
 
     while ((size_read = read(file_source.id, buffer, size_block)) > 0) {
 
@@ -109,9 +109,9 @@ extern "C" {
 
     ssize_t size_read = 0;
     ssize_t size_write = 0;
-    unsigned char *buffer[size_block];
+    f_char_t buffer[size_block];
 
-    memset(buffer, 0, sizeof(unsigned char) * size_block);
+    memset(buffer, 0, sizeof(f_char_t) * size_block);
 
     while ((size_read = read(file_source.id, buffer, size_block)) > 0) {
 
@@ -410,13 +410,11 @@ extern "C" {
         return F_status_set_error(F_string_too_large);
       }
 
-      f_status_t status = F_none;
-
-      macro_f_string_dynamic_t_resize(status, (*target), link_stat.st_size + 1);
+      const f_status_t status = f_string_dynamic_resize(link_stat.st_size + 1, target);
       if (F_status_is_error(status)) return status;
     }
 
-    memset(target->string, 0, sizeof(unsigned char) * (target->used + 1));
+    memset(target->string, 0, sizeof(f_char_t) * (target->used + 1));
 
     target->used = link_stat.st_size;
 
@@ -447,13 +445,11 @@ extern "C" {
         return F_status_set_error(F_string_too_large);
       }
 
-      f_status_t status = F_none;
-
-      macro_f_string_dynamic_t_resize(status, (*target), link_stat.st_size + 1);
+      const f_status_t status = f_string_dynamic_resize(link_stat.st_size + 1, target);
       if (F_status_is_error(status)) return status;
     }
 
-    memset(target->string, 0, sizeof(unsigned char) * (target->used + 1));
+    memset(target->string, 0, sizeof(f_char_t) * (target->used + 1));
 
     target->used = link_stat.st_size;
 
@@ -761,7 +757,7 @@ extern "C" {
 #endif // !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_)
 
 #if !defined(_di_f_file_stream_descriptor_) || !defined(_di_f_file_stream_open_) || !defined(_di_f_file_stream_reopen_)
-  const unsigned char *private_f_file_stream_open_mode_determine(const int flag) {
+  const f_string_t private_f_file_stream_open_mode_determine(const int flag) {
 
     if (flag & F_file_flag_read_write_d) {
       if (flag & F_file_flag_truncate_d) {
index f9cc2723bff8de48ae7df4fb73780ace55e84f05..59cf944c89bec77b2d4c6bfecd3da568c06fbc44 100644 (file)
@@ -903,7 +903,7 @@ extern "C" {
  * @see f_file_stream_reopen()
  */
 #if !defined(_di_f_file_stream_descriptor_) || !defined(_di_f_file_stream_open_) || !defined(_di_f_file_stream_reopen_)
-  extern const unsigned char *private_f_file_stream_open_mode_determine(const int flag) F_attribute_visibility_internal_d;
+  extern const f_string_t private_f_file_stream_open_mode_determine(const int flag) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_file_stream_descriptor_) || !defined(_di_f_file_stream_open_) || !defined(_di_f_file_stream_reopen_)
 
 /**
index e8992ba5f213aa76e2b35ca2768aeae4e344af52..23ccadf8ae5c084e233e8ad6860e5085dd00c220 100644 (file)
@@ -206,27 +206,27 @@ extern "C" {
 enum {
   F_fss_status_code_first = F_status_code_last + 1,
 
-  #ifndef _di_F_fss_status_error_
+  #ifndef _di_f_fss_status_error_
     F_fss_format,
     F_fss_format_eos,
-  #endif // _di_F_fss_status_error_
+  #endif // _di_f_fss_status_error_
 
-  #ifndef _di_F_fss_status_warning_
+  #ifndef _di_f_fss_status_warning_
     F_fss_accepted_invalid,
     F_fss_accepted_invalid_eos,
-  #endif // _di_F_fss_status_warning_
+  #endif // _di_f_fss_status_warning_
 
-  #ifndef _di_F_fss_status_success_
+  #ifndef _di_f_fss_status_success_
     F_fss_found_content,
     F_fss_found_object,
     F_fss_found_object_content_not,
     F_fss_found_content_not,
     F_fss_found_object_not,
-  #endif // _di_F_fss_status_success_
+  #endif // _di_f_fss_status_success_
 
-  #ifndef _di_F_fss_status_codes_
+  #ifndef _di_f_fss_status_codes_
     F_fss_found_comment,
-  #endif // _di_F_fss_status_codes_
+  #endif // _di_f_fss_status_codes_
 
   F_fss_status_code_last,
 }; // enum
index a5b2daa542a6dda160ca941f0b5ae1ae91618e34..dba7008c1d138ef90dbccc5ac9d07a9d6b74a0bb 100644 (file)
@@ -82,7 +82,7 @@ extern "C" {
 #endif // !defined(_di_f_iki_datas_append_) || !defined(_di_f_iki_datas_decrease_by_) || !defined(_di_f_iki_datas_increase_) || !defined(_di_f_iki_datas_increase_by_) || !defined(_di_f_iki_datas_resize_)
 
 #if !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
-  f_status_t private_f_iki_content_partial_is(const f_string_t buffer, const f_array_length_t length, const unsigned char quote) {
+  f_status_t private_f_iki_content_partial_is(const f_string_t buffer, const f_array_length_t length, const f_char_t quote) {
 
     f_array_length_t delimits = 0;
 
index c6b5653df36c54608c0be52b31268649f62e83c7..6fed8605c33e6dac3e570350257fb87cb8caf205 100644 (file)
@@ -92,7 +92,7 @@ extern "C" {
  * @see f_iki_content_partial_is()
  */
 #if !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
-  extern f_status_t private_f_iki_content_partial_is(const f_string_t buffer, const f_array_length_t length, const unsigned char quote) F_attribute_visibility_internal_d;
+  extern f_status_t private_f_iki_content_partial_is(const f_string_t buffer, const f_array_length_t length, const f_char_t quote) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
 
 /**
index 85ea51ca8754829a617cd1bcd5b66cdd857c42d9..84d95245de2c37f2e98b84b18836e6e4a8b69778 100644 (file)
@@ -55,7 +55,7 @@ extern "C" {
       if (!path) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
 
-    unsigned char buffer[F_path_length_max_d];
+    char buffer[F_path_length_max_d];
 
     if (!getcwd(buffer, F_path_length_max_d)) {
       if (errno == EACCES) return F_status_set_error(F_access_denied);
@@ -82,7 +82,7 @@ extern "C" {
       if (F_status_is_error(status)) return status;
     }
 
-    memcpy(path->string, buffer, sizeof(unsigned char) * length);
+    memcpy(path->string, buffer, sizeof(char) * length);
 
     path->string[length] = 0;
     path->used = length;
@@ -140,7 +140,7 @@ extern "C" {
         } // while
 
         // Use memcpy() to take advantage of its optimized copy behaviors whenever possible.
-        memcpy(directory->string + directory->used, argument.string + i, sizeof(unsigned char) * (j - i));
+        memcpy(directory->string + directory->used, argument.string + i, sizeof(f_char_t) * (j - i));
 
         directory->used += j - i;
         i = j;
index d246947d8b7d27a8653f233ab28a34d012d5e0fa..8baeeff9b76ba262c968f5a306830066be43f5a3 100644 (file)
@@ -6,7 +6,7 @@ extern "C" {
 #endif
 
 #if !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
-  f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t * const real) {
+  f_status_t private_f_path_real(const char *path, f_string_dynamic_t * const real) {
 
     char buffer[F_path_length_max_d];
 
@@ -32,7 +32,7 @@ extern "C" {
       if (F_status_is_error(status)) return status;
     }
 
-    memcpy(real->string, buffer, sizeof(unsigned char) * length);
+    memcpy(real->string, buffer, sizeof(char) * length);
 
     real->string[length] = 0;
     real->used = length;
index 7dba2d81d2ef0e25df19f90a190c80e452465a56..8ee7898a357dd8f900d8adac24b7c87068b09354 100644 (file)
@@ -42,7 +42,7 @@ extern "C" {
  * @see f_path_real()
  */
 #if !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
-  extern f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t * const real) F_attribute_visibility_internal_d;
+  extern f_status_t private_f_path_real(const char *path, f_string_dynamic_t * const real) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
 
 #ifdef __cplusplus
index 368dff084f5ff50946c9a03c72a7826835444a42..0baa021c2b7f113dcc468172fe43aa0defdd9193 100644 (file)
@@ -20,7 +20,7 @@ extern "C" {
 #endif // _di_f_print_
 
 #ifndef _di_f_print_character_
-  f_status_t f_print_character(const unsigned char character, FILE * const output) {
+  f_status_t f_print_character(const f_char_t character, FILE * const output) {
     #ifndef _di_level_0_parameter_checking_
       if (!output) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -34,7 +34,7 @@ extern "C" {
 #endif // _di_f_print_character_
 
 #ifndef _di_f_print_character_safely_
-  f_status_t f_print_character_safely(const unsigned char character, FILE * const output) {
+  f_status_t f_print_character_safely(const f_char_t character, FILE * const output) {
     #ifndef _di_level_0_parameter_checking_
       if (!output) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -65,7 +65,7 @@ extern "C" {
 #endif // _di_f_print_character_safely_
 
 #ifndef _di_f_print_character_safely_get_
-  const f_string_static_t f_print_character_safely_get(const unsigned char character) {
+  const f_string_static_t f_print_character_safely_get(const f_char_t character) {
 
     return private_f_print_character_safely_get(character);
   }
index 4289d63eb25184f54ea52f787f9cdf871f37e7cb..a267490aa71fa780a3f156fceac054be2a11118e 100644 (file)
@@ -85,7 +85,7 @@ extern "C" {
  * @see fwrite_unlocked()
  */
 #ifndef _di_f_print_character_
-  extern f_status_t f_print_character(const unsigned char character, FILE * const output);
+  extern f_status_t f_print_character(const f_char_t character, FILE * const output);
 #endif // _di_f_print_character_
 
 /**
@@ -116,7 +116,7 @@ extern "C" {
  * @see fwrite_unlocked()
  */
 #ifndef _di_f_print_character_safely_
-  extern f_status_t f_print_character_safely(const unsigned char character, FILE * const output);
+  extern f_status_t f_print_character_safely(const f_char_t character, FILE * const output);
 #endif // _di_f_print_character_safely_
 
 /**
@@ -140,7 +140,7 @@ extern "C" {
  *   A string with a non-zero used length is returned are NULL terminated (after the used length).
  */
 #ifndef _di_f_print_character_safely_get_
-  extern const f_string_static_t f_print_character_safely_get(const unsigned char character);
+  extern const f_string_static_t f_print_character_safely_get(const f_char_t character);
 #endif // _di_f_print_character_safely_get_
 
 /**
index 6df7b81d527f71e68d7222616ebbda29ff59362a..8bf31fc1e3471a754298b76b33f42fe65f0282ad 100644 (file)
@@ -38,7 +38,7 @@ static inline f_status_t private_inline_f_print_to_error(void) {
 
     for (register f_array_length_t i = 0; i < length; ) {
 
-      total = strnlen(string + i, length - i);
+      total = strnlen((string + i), length - i);
 
       if (total) {
         if (total > F_print_write_max_d) {
@@ -65,7 +65,7 @@ static inline f_status_t private_inline_f_print_to_error(void) {
 #endif // !defined(_di_f_print_to_) || !defined(_di_f_print_dynamic_to_) || !defined(_di_f_print_dynamic_partial_to_)
 
 #if !defined(_di_f_print_to_character_safely_) || !defined(_di_f_print_to_safely_) || !defined(_di_f_print_to_safely_dynamic_) || !defined(_di_f_print_to_safely_dynamic_partial_) || !defined(_di_f_print_to_safely_terminated_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
-  f_status_t private_f_print_to_character_safely(const unsigned char character, const int id) {
+  f_status_t private_f_print_to_character_safely(const f_char_t character, const int id) {
 
     if (character == 0x7f) {
       if (write(id, f_print_sequence_delete_s.string, f_print_sequence_delete_s.used) != -1) {
@@ -726,7 +726,7 @@ static inline f_status_t private_inline_f_print_to_error(void) {
 
     for (register f_array_length_t i = 0; i < length; ) {
 
-      total = strnlen(string + i, length - i);
+      total = strnlen((string + i), length - i);
 
       if (total) {
         if (total > F_print_write_max_d) {
index dc1570c4eae65067d21c20cc5184603b7ff3e22c..8a447fcf1b1222060a7788e16ea17bc14d8e270a 100644 (file)
@@ -102,7 +102,7 @@ extern "C" {
  * @see f_print_to_except_in_dynamic_partial_safely()
  */
 #if !defined(_di_f_print_to_character_safely_) || !defined(_di_f_print_to_safely_) || !defined(_di_f_print_to_safely_dynamic_) || !defined(_di_f_print_to_safely_dynamic_partial_) || !defined(_di_f_print_to_safely_terminated_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
-  extern f_status_t private_f_print_to_character_safely(const unsigned char character, const int id) F_attribute_visibility_internal_d;
+  extern f_status_t private_f_print_to_character_safely(const f_char_t character, const int id) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_print_to_character_safely_) || !defined(_di_f_print_to_safely_) || !defined(_di_f_print_to_safely_dynamic_) || !defined(_di_f_print_to_safely_dynamic_partial_) || !defined(_di_f_print_to_safely_terminated_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_)
 
 /**
index acdb4c4195ac219ea75b0674802ecdec91b9d8bd..050616114e76bbf2de3518e8eda3a7cc6f35c85b 100644 (file)
@@ -46,7 +46,7 @@ static inline f_status_t private_inline_f_print_to_error(void) {
 #endif // _di_f_print_to_
 
 #ifndef _di_f_print_to_character_
-  f_status_t f_print_to_character(const unsigned char character, const int id) {
+  f_status_t f_print_to_character(const f_char_t character, const int id) {
     #ifndef _di_level_0_parameter_checking_
       if (id == -1) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -60,7 +60,7 @@ static inline f_status_t private_inline_f_print_to_error(void) {
 #endif // _di_f_print_to_character_
 
 #ifndef _di_f_print_to_character_safely_
-  f_status_t f_print_to_character_safely(const unsigned char character, const int id) {
+  f_status_t f_print_to_character_safely(const f_char_t character, const int id) {
     #ifndef _di_level_0_parameter_checking_
       if (id == -1) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
index 0ccb584e6bb1d33f82bc3854c53cd3ad3be2247b..d5d43c3f954a2724c789784bc5a2edb429cb5b48 100644 (file)
@@ -91,7 +91,7 @@ extern "C" {
  * @see write()
  */
 #ifndef _di_f_print_to_character_
-  extern f_status_t f_print_to_character(const unsigned char character, const int id);
+  extern f_status_t f_print_to_character(const f_char_t character, const int id);
 #endif // _di_f_print_to_character_
 
 /**
@@ -131,7 +131,7 @@ extern "C" {
  * @see write()
  */
 #ifndef _di_f_print_to_character_safely_
-  extern f_status_t f_print_to_character_safely(const unsigned char character, const int id);
+  extern f_status_t f_print_to_character_safely(const f_char_t character, const int id);
 #endif // _di_f_print_to_character_safely_
 
 /**
index cfaa9715f1c4bca9009e10b7a940247f6ad7b81a..13cf8e759dc59929d589d0a846a0f9fe6acde7a3 100644 (file)
@@ -12,7 +12,7 @@ extern "C" {
 
     for (register f_array_length_t i = 0; i < length; ) {
 
-      total = strnlen(string + i, length - i);
+      total = strnlen((string + i), length - i);
 
       if (total) {
         if (total > F_print_write_max_d) {
@@ -39,7 +39,7 @@ extern "C" {
 #endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
 
 #if !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_)
-  const f_string_static_t private_f_print_character_safely_get(const unsigned char character) {
+  const f_string_static_t private_f_print_character_safely_get(const f_char_t character) {
 
     if (character == 0x7f) {
       return f_print_sequence_delete_s;
index d60dbe083653937227adec9cf489c4f8c42006b5..09ec94ce39aadd13f6c50dbcff222e64532fe24a 100644 (file)
@@ -76,7 +76,7 @@ extern "C" {
  * @see f_print_except_in_dynamic_partial_safely()
  */
 #if !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_)
-  extern f_status_t private_f_print_character_safely(const unsigned char character, FILE * const output) F_attribute_visibility_internal_d;
+  extern f_status_t private_f_print_character_safely(const f_char_t character, FILE * const output) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_)
 
 /**
@@ -115,7 +115,7 @@ extern "C" {
  * @see f_print_to_safely()
  */
 #if !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_)
-  extern const f_string_static_t private_f_print_character_safely_get(const unsigned char character) F_attribute_visibility_internal_d;
+  extern const f_string_static_t private_f_print_character_safely_get(const f_char_t character) F_attribute_visibility_internal_d;
 #endif // !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_)
 
 /**
index 4efa17ca7796741b07b940bae7cf58e7831d8a63..bb453374ac3aba07fb5ce962db01a77a33cbe975 100644 (file)
@@ -14,17 +14,17 @@ extern "C" {
     f_status_t status = F_none;
 
     if (serialize->used + value.used + 1 >= serialize->size) {
-      macro_f_string_dynamic_t_resize(status, (*serialize), serialize->size + value.used + 1);
+      status = f_string_dynamic_resize(serialize->size + value.used + 1, serialize);
       if (F_status_is_error(status)) return status;
     }
 
     if (!serialize->used) {
-      memcpy(serialize->string + serialize->used, value.string, sizeof(unsigned char) * value.used);
+      memcpy(serialize->string + serialize->used, value.string, sizeof(f_char_t) * value.used);
       serialize->used += value.used;
     }
     else {
-      memcpy(serialize->string + serialize->used, f_serialize_simple_splitter_s.string, sizeof(unsigned char) * f_serialize_simple_splitter_s.used);
-      memcpy(serialize->string + serialize->used + f_serialize_simple_splitter_s.used, value.string, sizeof(unsigned char) * value.used);
+      memcpy(serialize->string + serialize->used, f_serialize_simple_splitter_s.string, sizeof(f_char_t) * f_serialize_simple_splitter_s.used);
+      memcpy(serialize->string + serialize->used + f_serialize_simple_splitter_s.used, value.string, sizeof(f_char_t) * value.used);
       serialize->used += value.used + 1;
     }
 
@@ -72,13 +72,14 @@ extern "C" {
 
           if (total > strings->array[strings->used].size) {
             macro_f_string_dynamic_t_clear(strings->array[strings->used])
-            macro_f_string_dynamic_t_resize(status, strings->array[strings->used], total)
+
+            status = f_string_dynamic_resize(total, &strings->array[strings->used]);
             if (F_status_is_error(status)) return status;
 
             strings->array[strings->used].size = total;
           }
 
-          memcpy(strings->array[strings->used].string, serialize.string + start, sizeof(unsigned char) * total);
+          memcpy(strings->array[strings->used].string, serialize.string + start, sizeof(f_char_t) * total);
 
           strings->array[strings->used].used = total;
           ++strings->used;
@@ -189,13 +190,11 @@ extern "C" {
     f_array_length_t total = (range.stop - range.start) + 1;
 
     if (total >= dynamic->size) {
-      f_status_t status_allocation = F_none;
-
-      macro_f_string_dynamic_t_resize(status_allocation, (*dynamic), total);
+      const f_status_t status_allocation = f_string_dynamic_resize(total, dynamic);
       if (F_status_is_error(status_allocation)) return status_allocation;
     }
 
-    memcpy(dynamic->string, serialize.string + range.start, sizeof(unsigned char) * total);
+    memcpy(dynamic->string, serialize.string + range.start, sizeof(f_char_t) * total);
     dynamic->used = total;
 
     return status;
index 7267785fe50150fef377c9cc59fc2443ae192141..624ea638db04b18a69f477c7809fdbf9702bfd5a 100644 (file)
@@ -37,7 +37,7 @@ extern "C" {
 /**
  * Status masks.
  */
-#ifndef _di_F_status_masks_
+#ifndef _di_f_status_masks_
 
   // f_status_t is required to be exactly 16 bits, the first two high order bits represent error and warning respectively.
   #define F_status_bit_error   0x8000 // 1000 0000 0000 0000
@@ -68,7 +68,7 @@ extern "C" {
   // Maximum size of the status code.
   #define F_status_size_max             0x3fff
   #define F_status_size_max_with_signal 0x10000
-#endif // _di_F_status_masks_
+#endif // _di_f_status_masks_
 
 /**
  * All standard/core status codes.
@@ -84,14 +84,14 @@ extern "C" {
  * 5) F_status_code_last, this is intended to designate the last code provided by level_0 status project.
  *    All code sets started by another project (such as FSS status codes) must start at this number + 1 with a code start map.
  */
-#ifndef _di_F_status_codes_
+#ifndef _di_f_status_codes_
   enum {
-    #ifndef _di_F_status_boolean_
+    #ifndef _di_f_status_boolean_
       F_false = 0,
       F_true,
-    #endif // _di_F_status_boolean_
+    #endif // _di_f_status_boolean_
 
-    #ifndef _di_F_status_signal_
+    #ifndef _di_f_status_signal_
       F_signal_hangup = 1,
       F_signal_interrupt,
       F_signal_quit,
@@ -156,10 +156,10 @@ extern "C" {
       F_signal_reserved_62,
       F_signal_reserved_63,
       F_signal_reserved_64,
-    #endif // _di_F_status_signal_
+    #endif // _di_f_status_signal_
 
     // Start at 197 to allow compatibility with the reserved bash return codes (keep in mind fss return codes can be larger than 255).
-    #ifndef _di_F_status_basic_
+    #ifndef _di_f_status_basic_
       F_none = 197,
       F_abort,
       F_abort_not,
@@ -407,16 +407,16 @@ extern "C" {
       F_write,
       F_write_not,
       F_write_only,
-    #endif // _di_F_status_basic_
+    #endif // _di_f_status_basic_
 
-    #ifndef _di_F_status_array_
+    #ifndef _di_f_status_array_
       F_array,
       F_array_not,
       F_array_too_large,
       F_array_too_small,
-    #endif // _di_F_status_array_
+    #endif // _di_f_status_array_
 
-    #ifndef _di_F_status_available_
+    #ifndef _di_f_status_available_
       F_available,
       F_available_not,
       F_available_not_address,
@@ -426,9 +426,9 @@ extern "C" {
       F_available_not_port,
       F_available_not_process,
       F_available_not_socket,
-    #endif // _di_F_status_available_
+    #endif // _di_f_status_available_
 
-    #ifndef _di_F_status_busy_
+    #ifndef _di_f_status_busy_
       F_busy,
       F_busy_address,
       F_busy_buffer,
@@ -438,9 +438,9 @@ extern "C" {
       F_busy_port,
       F_busy_process,
       F_busy_socket,
-    #endif // _di_F_status_busy_
+    #endif // _di_f_status_busy_
 
-    #ifndef _di_F_status_network_
+    #ifndef _di_f_status_network_
       F_network,
       F_network_busy,
       F_network_busy_not,
@@ -463,9 +463,9 @@ extern "C" {
       F_network_server_not,
       F_network_time,
       F_network_time_not,
-    #endif // _di_F_status_network_
+    #endif // _di_f_status_network_
 
-    #ifndef _di_F_status_number_
+    #ifndef _di_f_status_number_
       F_number,
       F_number_decimal,
       F_number_decimal_not,
@@ -483,9 +483,9 @@ extern "C" {
       F_number_whole_not,
       F_number_zero,
       F_number_zero_not,
-    #endif // _di_F_status_number_
+    #endif // _di_f_status_number_
 
-    #ifndef _di_F_status_buffer_
+    #ifndef _di_f_status_buffer_
       F_buffer,
       F_buffer_not,
       F_buffer_overflow,
@@ -535,15 +535,15 @@ extern "C" {
       F_terminated_not_nest_eos,
       F_terminated_not_nest_stop,
       F_terminated_not_stop,
-    #endif // _di_F_status_buffer_
+    #endif // _di_f_status_buffer_
 
-    #ifndef _di_F_status_process_
+    #ifndef _di_f_status_process_
       F_process,
       F_process_not,
       F_process_too_many,
-    #endif // _di_F_status_process_
+    #endif // _di_f_status_process_
 
-    #ifndef _di_F_status_file_
+    #ifndef _di_f_status_file_
       F_file,
       F_file_close,
       F_file_closed,
@@ -587,16 +587,16 @@ extern "C" {
       F_file_utf,
       F_file_utf_not,
       F_file_write,
-    #endif // _di_F_status_file_
+    #endif // _di_f_status_file_
 
-    #ifndef _di_F_status_filesystem_
+    #ifndef _di_f_status_filesystem_
       F_filesystem,
       F_filesystem_not,
       F_filesystem_quota_block,
       F_filesystem_quota_reached,
-    #endif // _di_F_status_filesystem_
+    #endif // _di_f_status_filesystem_
 
-    #ifndef _di_F_status_directory_
+    #ifndef _di_f_status_directory_
       F_directory,
       F_directory_close,
       F_directory_closed,
@@ -617,25 +617,25 @@ extern "C" {
       F_directory_utf,
       F_directory_utf_not,
       F_directory_write,
-    #endif // _di_F_status_directory_
+    #endif // _di_f_status_directory_
 
-    #ifndef _di_F_status_socket_
+    #ifndef _di_f_status_socket_
       F_socket,
       F_socket_client,
       F_socket_not,
       F_socket_receive,
       F_socket_send,
       F_socket_target,
-    #endif // _di_F_status_socket_
+    #endif // _di_f_status_socket_
 
-    #ifndef _di_F_status_compare_
+    #ifndef _di_f_status_compare_
       F_equal_to,
       F_equal_to_not,
       F_than_greater,
       F_than_less,
-    #endif // _di_F_status_compare_
+    #endif // _di_f_status_compare_
 
-    #ifndef _di_F_status_access_
+    #ifndef _di_f_status_access_
       F_access,
       F_access_denied,
       F_access_denied_execute,
@@ -657,9 +657,9 @@ extern "C" {
       F_access_mode,
       F_access_not,
       F_access_owner,
-    #endif // _di_F_status_access_
+    #endif // _di_f_status_access_
 
-    #ifndef _di_F_status_terminal_
+    #ifndef _di_f_status_terminal_
       F_terminal,
       F_terminal_access,
       F_terminal_known,
@@ -670,12 +670,12 @@ extern "C" {
       F_terminal_valid,
       F_terminal_valid_not,
       F_terminal_write,
-    #endif // _di_F_status_terminal_
+    #endif // _di_f_status_terminal_
 
     // Required.
     F_status_code_last,
   }; // enum
-#endif // _di_F_status_codes_
+#endif // _di_f_status_codes_
 
 #ifdef __cplusplus
 } // extern "C"
index fd74d86c6da7f91ac1d81eace81f50638016a998..752f9ea57b804c6be869fa617c012dd0bd409212 100644 (file)
@@ -4,13 +4,13 @@
 extern "C" {
 #endif
 
-#ifndef _di_F_status_string_
-  #ifndef _di_F_status_boolean_
+#ifndef _di_f_status_string_
+  #ifndef _di_f_status_boolean_
     const f_string_static_t f_status_false_s = macro_f_string_static_t_initialize(F_status_false_s, 0, F_status_false_s_length);
     const f_string_static_t f_status_true_s = macro_f_string_static_t_initialize(F_status_true_s, 0, F_status_true_s_length);
-  #endif // _di_F_status_boolean_
+  #endif // _di_f_status_boolean_
 
-  #ifndef _di_F_status_signal_
+  #ifndef _di_f_status_signal_
     const f_string_static_t f_status_signal_hangup_s = macro_f_string_static_t_initialize(F_status_signal_hangup_s, 0, F_status_signal_hangup_s_length);
     const f_string_static_t f_status_signal_interrupt_s = macro_f_string_static_t_initialize(F_status_signal_interrupt_s, 0, F_status_signal_interrupt_s_length);
     const f_string_static_t f_status_signal_quit_s = macro_f_string_static_t_initialize(F_status_signal_quit_s, 0, F_status_signal_quit_s_length);
@@ -75,9 +75,9 @@ extern "C" {
     const f_string_static_t f_status_signal_reserved_62_s = macro_f_string_static_t_initialize(F_status_signal_reserved_62_s, 0, F_status_signal_reserved_62_s_length);
     const f_string_static_t f_status_signal_reserved_63_s = macro_f_string_static_t_initialize(F_status_signal_reserved_63_s, 0, F_status_signal_reserved_63_s_length);
     const f_string_static_t f_status_signal_reserved_64_s = macro_f_string_static_t_initialize(F_status_signal_reserved_64_s, 0, F_status_signal_reserved_64_s_length);
-  #endif // _di_F_status_signal_
+  #endif // _di_f_status_signal_
 
-  #ifndef _di_F_status_basic_
+  #ifndef _di_f_status_basic_
     const f_string_static_t f_status_none_s = macro_f_string_static_t_initialize(F_status_none_s, 0, F_status_none_s_length);
     const f_string_static_t f_status_abort_s = macro_f_string_static_t_initialize(F_status_abort_s, 0, F_status_abort_s_length);
     const f_string_static_t f_status_abort_not_s = macro_f_string_static_t_initialize(F_status_abort_not_s, 0, F_status_abort_not_s_length);
@@ -325,16 +325,16 @@ extern "C" {
     const f_string_static_t f_status_write_s = macro_f_string_static_t_initialize(F_status_write_s, 0, F_status_write_s_length);
     const f_string_static_t f_status_write_not_s = macro_f_string_static_t_initialize(F_status_write_not_s, 0, F_status_write_not_s_length);
     const f_string_static_t f_status_write_only_s = macro_f_string_static_t_initialize(F_status_write_only_s, 0, F_status_write_only_s_length);
-  #endif // _di_F_status_basic_
+  #endif // _di_f_status_basic_
 
-  #ifndef _di_F_status_array_
+  #ifndef _di_f_status_array_
     const f_string_static_t f_status_array_s = macro_f_string_static_t_initialize(F_status_array_s, 0, F_status_array_s_length);
     const f_string_static_t f_status_array_not_s = macro_f_string_static_t_initialize(F_status_array_not_s, 0, F_status_array_not_s_length);
     const f_string_static_t f_status_array_too_large_s = macro_f_string_static_t_initialize(F_status_array_too_large_s, 0, F_status_array_too_large_s_length);
     const f_string_static_t f_status_array_too_small_s = macro_f_string_static_t_initialize(F_status_array_too_small_s, 0, F_status_array_too_small_s_length);
-  #endif // _di_F_status_array_
+  #endif // _di_f_status_array_
 
-  #ifndef _di_F_status_available_
+  #ifndef _di_f_status_available_
     const f_string_static_t f_status_available_s = macro_f_string_static_t_initialize(F_status_available_s, 0, F_status_available_s_length);
     const f_string_static_t f_status_available_not_s = macro_f_string_static_t_initialize(F_status_available_not_s, 0, F_status_available_not_s_length);
     const f_string_static_t f_status_available_not_address_s = macro_f_string_static_t_initialize(F_status_available_not_address_s, 0, F_status_available_not_address_s_length);
@@ -344,9 +344,9 @@ extern "C" {
     const f_string_static_t f_status_available_not_port_s = macro_f_string_static_t_initialize(F_status_available_not_port_s, 0, F_status_available_not_port_s_length);
     const f_string_static_t f_status_available_not_process_s = macro_f_string_static_t_initialize(F_status_available_not_process_s, 0, F_status_available_not_process_s_length);
     const f_string_static_t f_status_available_not_socket_s = macro_f_string_static_t_initialize(F_status_available_not_socket_s, 0, F_status_available_not_socket_s_length);
-  #endif // _di_F_status_available_
+  #endif // _di_f_status_available_
 
-  #ifndef _di_F_status_busy_
+  #ifndef _di_f_status_busy_
     const f_string_static_t f_status_busy_s = macro_f_string_static_t_initialize(F_status_busy_s, 0, F_status_busy_s_length);
     const f_string_static_t f_status_busy_address_s = macro_f_string_static_t_initialize(F_status_busy_address_s, 0, F_status_busy_address_s_length);
     const f_string_static_t f_status_busy_buffer_s = macro_f_string_static_t_initialize(F_status_busy_buffer_s, 0, F_status_busy_buffer_s_length);
@@ -356,9 +356,9 @@ extern "C" {
     const f_string_static_t f_status_busy_port_s = macro_f_string_static_t_initialize(F_status_busy_port_s, 0, F_status_busy_port_s_length);
     const f_string_static_t f_status_busy_process_s = macro_f_string_static_t_initialize(F_status_busy_process_s, 0, F_status_busy_process_s_length);
     const f_string_static_t f_status_busy_socket_s = macro_f_string_static_t_initialize(F_status_busy_socket_s, 0, F_status_busy_socket_s_length);
-  #endif // _di_F_status_busy_
+  #endif // _di_f_status_busy_
 
-  #ifndef _di_F_status_network_
+  #ifndef _di_f_status_network_
     const f_string_static_t f_status_network_s = macro_f_string_static_t_initialize(F_status_network_s, 0, F_status_network_s_length);
     const f_string_static_t f_status_network_busy_s = macro_f_string_static_t_initialize(F_status_network_busy_s, 0, F_status_network_busy_s_length);
     const f_string_static_t f_status_network_busy_not_s = macro_f_string_static_t_initialize(F_status_network_busy_not_s, 0, F_status_network_busy_not_s_length);
@@ -381,9 +381,9 @@ extern "C" {
     const f_string_static_t f_status_network_server_not_s = macro_f_string_static_t_initialize(F_status_network_server_not_s, 0, F_status_network_server_not_s_length);
     const f_string_static_t f_status_network_time_s = macro_f_string_static_t_initialize(F_status_network_time_s, 0, F_status_network_time_s_length);
     const f_string_static_t f_status_network_time_not_s = macro_f_string_static_t_initialize(F_status_network_time_not_s, 0, F_status_network_time_not_s_length);
-  #endif // _di_F_status_network_
+  #endif // _di_f_status_network_
 
-  #ifndef _di_F_status_number_
+  #ifndef _di_f_status_number_
     const f_string_static_t f_status_number_s = macro_f_string_static_t_initialize(F_status_number_s, 0, F_status_number_s_length);
     const f_string_static_t f_status_number_decimal_s = macro_f_string_static_t_initialize(F_status_number_decimal_s, 0, F_status_number_decimal_s_length);
     const f_string_static_t f_status_number_decimal_not_s = macro_f_string_static_t_initialize(F_status_number_decimal_not_s, 0, F_status_number_decimal_not_s_length);
@@ -401,9 +401,9 @@ extern "C" {
     const f_string_static_t f_status_number_whole_not_s = macro_f_string_static_t_initialize(F_status_number_whole_not_s, 0, F_status_number_whole_not_s_length);
     const f_string_static_t f_status_number_zero_s = macro_f_string_static_t_initialize(F_status_number_zero_s, 0, F_status_number_zero_s_length);
     const f_string_static_t f_status_number_zero_not_s = macro_f_string_static_t_initialize(F_status_number_zero_not_s, 0, F_status_number_zero_not_s_length);
-  #endif // _di_F_status_number_
+  #endif // _di_f_status_number_
 
-  #ifndef _di_F_status_buffer_
+  #ifndef _di_f_status_buffer_
     const f_string_static_t f_status_buffer_s = macro_f_string_static_t_initialize(F_status_buffer_s, 0, F_status_buffer_s_length);
     const f_string_static_t f_status_buffer_not_s = macro_f_string_static_t_initialize(F_status_buffer_not_s, 0, F_status_buffer_not_s_length);
     const f_string_static_t f_status_buffer_overflow_s = macro_f_string_static_t_initialize(F_status_buffer_overflow_s, 0, F_status_buffer_overflow_s_length);
@@ -454,15 +454,15 @@ extern "C" {
     const f_string_static_t f_status_terminated_not_nest_eol_s = macro_f_string_static_t_initialize(F_status_terminated_not_nest_eol_s, 0, F_status_terminated_not_nest_eol_s_length);
     const f_string_static_t f_status_terminated_not_nest_eos_s = macro_f_string_static_t_initialize(F_status_terminated_not_nest_eos_s, 0, F_status_terminated_not_nest_eos_s_length);
     const f_string_static_t f_status_terminated_not_nest_stop_s = macro_f_string_static_t_initialize(F_status_terminated_not_nest_stop_s, 0, F_status_terminated_not_nest_stop_s_length);
-  #endif // _di_F_status_buffer_
+  #endif // _di_f_status_buffer_
 
-  #ifndef _di_F_status_process_
+  #ifndef _di_f_status_process_
     const f_string_static_t f_status_process_s = macro_f_string_static_t_initialize(F_status_process_s, 0, F_status_process_s_length);
     const f_string_static_t f_status_process_not_s = macro_f_string_static_t_initialize(F_status_process_not_s, 0, F_status_process_not_s_length);
     const f_string_static_t f_status_process_too_many_s = macro_f_string_static_t_initialize(F_status_process_too_many_s, 0, F_status_process_too_many_s_length);
-  #endif // _di_F_status_process_
+  #endif // _di_f_status_process_
 
-  #ifndef _di_F_status_file_
+  #ifndef _di_f_status_file_
     const f_string_static_t f_status_file_s = macro_f_string_static_t_initialize(F_status_file_s, 0, F_status_file_s_length);
     const f_string_static_t f_status_file_close_s = macro_f_string_static_t_initialize(F_status_file_close_s, 0, F_status_file_close_s_length);
     const f_string_static_t f_status_file_closed_s = macro_f_string_static_t_initialize(F_status_file_closed_s, 0, F_status_file_closed_s_length);
@@ -506,16 +506,16 @@ extern "C" {
     const f_string_static_t f_status_file_utf_s = macro_f_string_static_t_initialize(F_status_file_utf_s, 0, F_status_file_utf_s_length);
     const f_string_static_t f_status_file_utf_not_s = macro_f_string_static_t_initialize(F_status_file_utf_not_s, 0, F_status_file_utf_not_s_length);
     const f_string_static_t f_status_file_write_s = macro_f_string_static_t_initialize(F_status_file_write_s, 0, F_status_file_write_s_length);
-  #endif // _di_F_status_file_
+  #endif // _di_f_status_file_
 
-  #ifndef _di_F_status_filesystem_
+  #ifndef _di_f_status_filesystem_
     const f_string_static_t f_status_filesystem_s = macro_f_string_static_t_initialize(F_status_filesystem_s, 0, F_status_filesystem_s_length);
     const f_string_static_t f_status_filesystem_not_s = macro_f_string_static_t_initialize(F_status_filesystem_not_s, 0, F_status_filesystem_not_s_length);
     const f_string_static_t f_status_filesystem_quota_block_s = macro_f_string_static_t_initialize(F_status_filesystem_quota_block_s, 0, F_status_filesystem_quota_block_s_length);
     const f_string_static_t f_status_filesystem_quota_reached_s = macro_f_string_static_t_initialize(F_status_filesystem_quota_reached_s, 0, F_status_filesystem_quota_reached_s_length);
-  #endif // _di_F_status_filesystem_
+  #endif // _di_f_status_filesystem_
 
-  #ifndef _di_F_status_directory_
+  #ifndef _di_f_status_directory_
     const f_string_static_t f_status_directory_s = macro_f_string_static_t_initialize(F_status_directory_s, 0, F_status_directory_s_length);
     const f_string_static_t f_status_directory_close_s = macro_f_string_static_t_initialize(F_status_directory_close_s, 0, F_status_directory_close_s_length);
     const f_string_static_t f_status_directory_closed_s = macro_f_string_static_t_initialize(F_status_directory_closed_s, 0, F_status_directory_closed_s_length);
@@ -536,25 +536,25 @@ extern "C" {
     const f_string_static_t f_status_directory_utf_s = macro_f_string_static_t_initialize(F_status_directory_utf_s, 0, F_status_directory_utf_s_length);
     const f_string_static_t f_status_directory_utf_not_s = macro_f_string_static_t_initialize(F_status_directory_utf_not_s, 0, F_status_directory_utf_not_s_length);
     const f_string_static_t f_status_directory_write_s = macro_f_string_static_t_initialize(F_status_directory_write_s, 0, F_status_directory_write_s_length);
-  #endif // _di_F_status_directory_
+  #endif // _di_f_status_directory_
 
-  #ifndef _di_F_status_socket_
+  #ifndef _di_f_status_socket_
     const f_string_static_t f_status_socket_s = macro_f_string_static_t_initialize(F_status_socket_s, 0, F_status_socket_s_length);
     const f_string_static_t f_status_socket_client_s = macro_f_string_static_t_initialize(F_status_socket_client_s, 0, F_status_socket_client_s_length);
     const f_string_static_t f_status_socket_not_s = macro_f_string_static_t_initialize(F_status_socket_not_s, 0, F_status_socket_not_s_length);
     const f_string_static_t f_status_socket_receive_s = macro_f_string_static_t_initialize(F_status_socket_receive_s, 0, F_status_socket_receive_s_length);
     const f_string_static_t f_status_socket_send_s = macro_f_string_static_t_initialize(F_status_socket_send_s, 0, F_status_socket_send_s_length);
     const f_string_static_t f_status_socket_target_s = macro_f_string_static_t_initialize(F_status_socket_target_s, 0, F_status_socket_target_s_length);
-  #endif // _di_F_status_socket_
+  #endif // _di_f_status_socket_
 
-  #ifndef _di_F_status_compare_
+  #ifndef _di_f_status_compare_
     const f_string_static_t f_status_equal_to_s = macro_f_string_static_t_initialize(F_status_equal_to_s, 0, F_status_equal_to_s_length);
     const f_string_static_t f_status_equal_to_not_s = macro_f_string_static_t_initialize(F_status_equal_to_not_s, 0, F_status_equal_to_not_s_length);
     const f_string_static_t f_status_than_greater_s = macro_f_string_static_t_initialize(F_status_than_greater_s, 0, F_status_than_greater_s_length);
     const f_string_static_t f_status_than_less_s = macro_f_string_static_t_initialize(F_status_than_less_s, 0, F_status_than_less_s_length);
-  #endif // _di_F_status_compare_
+  #endif // _di_f_status_compare_
 
-  #ifndef _di_F_status_access_
+  #ifndef _di_f_status_access_
     const f_string_static_t f_status_access_s = macro_f_string_static_t_initialize(F_status_access_s, 0, F_status_access_s_length);
     const f_string_static_t f_status_access_denied_s = macro_f_string_static_t_initialize(F_status_access_denied_s, 0, F_status_access_denied_s_length);
     const f_string_static_t f_status_access_denied_user_s = macro_f_string_static_t_initialize(F_status_access_denied_user_s, 0, F_status_access_denied_user_s_length);
@@ -576,9 +576,9 @@ extern "C" {
     const f_string_static_t f_status_access_mode_s = macro_f_string_static_t_initialize(F_status_access_mode_s, 0, F_status_access_mode_s_length);
     const f_string_static_t f_status_access_not_s = macro_f_string_static_t_initialize(F_status_access_not_s, 0, F_status_access_not_s_length);
     const f_string_static_t f_status_access_owner_s = macro_f_string_static_t_initialize(F_status_access_owner_s, 0, F_status_access_owner_s_length);
-  #endif // _di_F_status_access_
+  #endif // _di_f_status_access_
 
-  #ifndef _di_F_status_terminal_
+  #ifndef _di_f_status_terminal_
     const f_string_static_t f_status_terminal_s = macro_f_string_static_t_initialize(F_status_terminal_s, 0, F_status_terminal_s_length);
     const f_string_static_t f_status_terminal_access_s = macro_f_string_static_t_initialize(F_status_terminal_access_s, 0, F_status_terminal_access_s_length);
     const f_string_static_t f_status_terminal_known_s = macro_f_string_static_t_initialize(F_status_terminal_known_s, 0, F_status_terminal_known_s_length);
@@ -589,10 +589,10 @@ extern "C" {
     const f_string_static_t f_status_terminal_valid_s = macro_f_string_static_t_initialize(F_status_terminal_valid_s, 0, F_status_terminal_valid_s_length);
     const f_string_static_t f_status_terminal_valid_not_s = macro_f_string_static_t_initialize(F_status_terminal_valid_not_s, 0, F_status_terminal_valid_not_s_length);
     const f_string_static_t f_status_terminal_write_s = macro_f_string_static_t_initialize(F_status_terminal_write_s, 0, F_status_terminal_write_s_length);
-  #endif // _di_F_status_terminal_
+  #endif // _di_f_status_terminal_
 
   const f_string_static_t f_status_status_code_last_s = macro_f_string_static_t_initialize(F_status_status_code_last_s, 0, F_status_status_code_last_s_length);
-#endif // _di_F_status_string_
+#endif // _di_f_status_string_
 
 #ifndef _di_f_status_string_to_
   f_status_t f_status_string_to(const f_status_t code, f_string_static_t * const name) {
@@ -603,7 +603,7 @@ extern "C" {
     f_status_t unmasked_code = F_status_set_fine(code);
 
     switch (unmasked_code) {
-      #ifndef _di_F_status_boolean_
+      #ifndef _di_f_status_boolean_
         case F_false:
           *name = f_status_false_s;
           break;
@@ -611,9 +611,9 @@ extern "C" {
         case F_true:
           *name = f_status_true_s;
           break;
-      #endif // _di_F_status_boolean_
+      #endif // _di_f_status_boolean_
 
-      #ifndef _di_F_status_signal_
+      #ifndef _di_f_status_signal_
 
         // F_signal_hangup is not used because it has the same code as F_true.
         case F_signal_interrupt:
@@ -867,9 +867,9 @@ extern "C" {
         case F_signal_reserved_64:
           *name = f_status_signal_reserved_64_s;
           break;
-      #endif // _di_F_status_signal_
+      #endif // _di_f_status_signal_
 
-      #ifndef _di_F_status_basic_
+      #ifndef _di_f_status_basic_
         case F_none:
           *name = f_status_none_s;
           break;
@@ -1857,9 +1857,9 @@ extern "C" {
         case F_write_only:
           *name = f_status_write_only_s;
           break;
-      #endif // _di_F_status_basic_
+      #endif // _di_f_status_basic_
 
-      #ifndef _di_F_status_array_
+      #ifndef _di_f_status_array_
         case F_array:
           *name = f_status_array_s;
           break;
@@ -1875,9 +1875,9 @@ extern "C" {
         case F_array_too_small:
           *name = f_status_array_too_small_s;
           break;
-      #endif // _di_F_status_array_
+      #endif // _di_f_status_array_
 
-      #ifndef _di_F_status_available_
+      #ifndef _di_f_status_available_
         case F_available:
           *name = f_status_available_s;
           break;
@@ -1913,9 +1913,9 @@ extern "C" {
         case F_available_not_socket:
           *name = f_status_available_not_socket_s;
           break;
-      #endif // _di_F_status_available_
+      #endif // _di_f_status_available_
 
-      #ifndef _di_F_status_busy_
+      #ifndef _di_f_status_busy_
         case F_busy:
           *name = f_status_busy_s;
           break;
@@ -1951,9 +1951,9 @@ extern "C" {
         case F_busy_socket:
           *name = f_status_busy_socket_s;
           break;
-      #endif // _di_F_status_busy_
+      #endif // _di_f_status_busy_
 
-      #ifndef _di_F_status_network_
+      #ifndef _di_f_status_network_
         case F_network:
           *name = f_status_network_s;
           break;
@@ -2041,9 +2041,9 @@ extern "C" {
         case F_network_time_not:
           *name = f_status_network_time_not_s;
           break;
-      #endif // _di_F_status_network_
+      #endif // _di_f_status_network_
 
-      #ifndef _di_F_status_number_
+      #ifndef _di_f_status_number_
         case F_number:
           *name = f_status_number_s;
           break;
@@ -2111,9 +2111,9 @@ extern "C" {
         case F_number_zero_not:
           *name = f_status_number_zero_not_s;
           break;
-      #endif // _di_F_status_number_
+      #endif // _di_f_status_number_
 
-      #ifndef _di_F_status_buffers_
+      #ifndef _di_f_status_buffers_
         case F_buffer:
           *name = f_status_buffer_s;
           break;
@@ -2305,9 +2305,9 @@ extern "C" {
         case F_terminated_not_stop:
           *name = f_status_terminated_not_stop_s;
           break;
-      #endif // _di_F_status_buffers_
+      #endif // _di_f_status_buffers_
 
-      #ifndef _di_F_status_process_
+      #ifndef _di_f_status_process_
         case F_process:
           *name = f_status_process_s;
           break;
@@ -2319,9 +2319,9 @@ extern "C" {
         case F_process_too_many:
           *name = f_status_process_too_many_s;
           break;
-      #endif // _di_F_status_process_
+      #endif // _di_f_status_process_
 
-      #ifndef _di_F_status_file_
+      #ifndef _di_f_status_file_
         case F_file:
           *name = f_status_file_s;
           break;
@@ -2489,9 +2489,9 @@ extern "C" {
         case F_file_write:
           *name = f_status_file_write_s;
           break;
-      #endif // _di_F_status_file_
+      #endif // _di_f_status_file_
 
-      #ifndef _di_F_status_filesystem_
+      #ifndef _di_f_status_filesystem_
         case F_filesystem:
           *name = f_status_filesystem_s;
           break;
@@ -2507,9 +2507,9 @@ extern "C" {
         case F_filesystem_quota_reached:
           *name = f_status_filesystem_quota_reached_s;
           break;
-      #endif // _di_F_status_filesystem_
+      #endif // _di_f_status_filesystem_
 
-      #ifndef _di_F_status_directory_
+      #ifndef _di_f_status_directory_
         case F_directory:
           *name = f_status_directory_s;
           break;
@@ -2589,9 +2589,9 @@ extern "C" {
         case F_directory_write:
           *name = f_status_directory_utf_not_s;
           break;
-      #endif // _di_F_status_directory_
+      #endif // _di_f_status_directory_
 
-      #ifndef _di_F_status_socket_
+      #ifndef _di_f_status_socket_
         case F_socket:
           *name = f_status_socket_s;
           break;
@@ -2615,9 +2615,9 @@ extern "C" {
         case F_socket_target:
           *name = f_status_socket_target_s;
           break;
-      #endif // _di_F_status_socket_
+      #endif // _di_f_status_socket_
 
-      #ifndef _di_F_error_compare_
+      #ifndef _di_f_error_compare_
         case F_equal_to:
           *name = f_status_equal_to_s;
           break;
@@ -2633,9 +2633,9 @@ extern "C" {
         case F_than_less:
           *name = f_status_than_less_s;
           break;
-      #endif // _di_F_status_compare_
+      #endif // _di_f_status_compare_
 
-      #ifndef _di_F_status_access_
+      #ifndef _di_f_status_access_
         case F_access:
           *name = f_status_access_s;
           break;
@@ -2719,9 +2719,9 @@ extern "C" {
         case F_access_owner:
           *name = f_status_access_owner_s;
           break;
-      #endif // _di_F_status_access_
+      #endif // _di_f_status_access_
 
-      #ifndef _di_F_status_terminal_
+      #ifndef _di_f_status_terminal_
         case F_terminal:
           *name = f_status_terminal_s;
           break;
@@ -2761,7 +2761,7 @@ extern "C" {
         case F_terminal_write:
           *name = f_status_terminal_write_s;
           break;
-      #endif // _di_F_status_terminal_
+      #endif // _di_f_status_terminal_
 
       case F_status_code_last:
         *name = f_status_status_code_last_s;
index e07d079e149a12ea810b67f12ca4a0123722a72d..caaa5bd87b5c235809c6cf1bf36ee9a23051d0f1 100644 (file)
@@ -21,8 +21,8 @@
 extern "C" {
 #endif
 
-#ifndef _di_F_status_string_
-  #ifndef _di_F_status_boolean_
+#ifndef _di_f_status_string_
+  #ifndef _di_f_status_boolean_
     #define F_status_false_s "F_false"
     #define F_status_true_s  "F_true"
 
@@ -31,9 +31,9 @@ extern "C" {
 
     extern const f_string_static_t f_status_false_s;
     extern const f_string_static_t f_status_true_s;
-  #endif // _di_F_status_boolean_
+  #endif // _di_f_status_boolean_
 
-  #ifndef _di_F_status_signal_
+  #ifndef _di_f_status_signal_
     #define F_status_signal_hangup_s               "F_signal_hangup"
     #define F_status_signal_interrupt_s            "F_signal_interrupt"
     #define F_status_signal_quit_s                 "F_signal_quit"
@@ -228,9 +228,9 @@ extern "C" {
     extern const f_string_static_t f_status_signal_reserved_62_s;
     extern const f_string_static_t f_status_signal_reserved_63_s;
     extern const f_string_static_t f_status_signal_reserved_64_s;
-  #endif // _di_F_status_signal_
+  #endif // _di_f_status_signal_
 
-  #ifndef _di_F_status_basic_
+  #ifndef _di_f_status_basic_
     #define F_status_none_s              "F_none"
     #define F_status_abort_s             "F_abort"
     #define F_status_abort_not_s         "F_abort_not"
@@ -974,9 +974,9 @@ extern "C" {
     extern const f_string_static_t f_status_write_s;
     extern const f_string_static_t f_status_write_not_s;
     extern const f_string_static_t f_status_write_only_s;
-  #endif // _di_F_status_basic_
+  #endif // _di_f_status_basic_
 
-  #ifndef _di_F_status_array_
+  #ifndef _di_f_status_array_
     #define F_status_array_s           "F_array"
     #define F_status_array_not_s       "F_array_not"
     #define F_status_array_too_large_s "F_array_too_large"
@@ -991,9 +991,9 @@ extern "C" {
     extern const f_string_static_t f_status_array_not_s;
     extern const f_string_static_t f_status_array_too_large_s;
     extern const f_string_static_t f_status_array_too_small_s;
-  #endif // _di_F_status_array_
+  #endif // _di_f_status_array_
 
-  #ifndef _di_F_status_available_
+  #ifndef _di_f_status_available_
     #define F_status_available_s             "F_available"
     #define F_status_available_not_s         "F_available_not"
     #define F_status_available_not_address_s "F_available_not_address"
@@ -1023,9 +1023,9 @@ extern "C" {
     extern const f_string_static_t f_status_available_not_port_s;
     extern const f_string_static_t f_status_available_not_process_s;
     extern const f_string_static_t f_status_available_not_socket_s;
-  #endif // _di_F_status_available_
+  #endif // _di_f_status_available_
 
-  #ifndef _di_F_status_busy_
+  #ifndef _di_f_status_busy_
     #define F_status_busy_s         "F_busy"
     #define F_status_busy_address_s "F_busy_address"
     #define F_status_busy_buffer_s  "F_busy_buffer"
@@ -1055,9 +1055,9 @@ extern "C" {
     extern const f_string_static_t f_status_busy_port_s;
     extern const f_string_static_t f_status_busy_process_s;
     extern const f_string_static_t f_status_busy_socket_s;
-  #endif // _di_F_status_busy_
+  #endif // _di_f_status_busy_
 
-  #ifndef _di_F_status_network_
+  #ifndef _di_f_status_network_
     #define F_status_network_s                  "F_network"
     #define F_status_network_busy_s             "F_network_busy"
     #define F_status_network_busy_not_s         "F_network_busy_not"
@@ -1126,9 +1126,9 @@ extern "C" {
     extern const f_string_static_t f_status_network_server_not_s;
     extern const f_string_static_t f_status_network_time_s;
     extern const f_string_static_t f_status_network_time_not_s;
-  #endif // _di_F_status_network_
+  #endif // _di_f_status_network_
 
-  #ifndef _di_F_status_number_
+  #ifndef _di_f_status_number_
     #define F_status_number_s                "F_number"
     #define F_status_number_decimal_s        "F_number_decimal"
     #define F_status_number_decimal_not_s    "F_number_decimal_not"
@@ -1182,9 +1182,9 @@ extern "C" {
     extern const f_string_static_t f_status_number_whole_not_s;
     extern const f_string_static_t f_status_number_zero_s;
     extern const f_string_static_t f_status_number_zero_not_s;
-  #endif // _di_F_status_number_
+  #endif // _di_f_status_number_
 
-  #ifndef _di_F_status_buffer_
+  #ifndef _di_f_status_buffer_
     #define F_status_buffer_s                     "F_buffer"
     #define F_status_buffer_not_s                 "F_buffer_not"
     #define F_status_buffer_overflow_s            "F_buffer_overflow"
@@ -1337,9 +1337,9 @@ extern "C" {
     extern const f_string_static_t f_status_terminated_not_nest_eol_s;
     extern const f_string_static_t f_status_terminated_not_nest_eos_s;
     extern const f_string_static_t f_status_terminated_not_nest_stop_s;
-  #endif // _di_F_status_buffer_
+  #endif // _di_f_status_buffer_
 
-  #ifndef _di_F_status_process_
+  #ifndef _di_f_status_process_
     #define F_status_process_s          "F_process"
     #define F_status_process_not_s      "F_process_not"
     #define F_status_process_too_many_s "F_process_too_many"
@@ -1351,9 +1351,9 @@ extern "C" {
     extern const f_string_static_t f_status_process_s;
     extern const f_string_static_t f_status_process_not_s;
     extern const f_string_static_t f_status_process_too_many_s;
-  #endif // _di_F_status_process_
+  #endif // _di_f_status_process_
 
-  #ifndef _di_F_status_file_
+  #ifndef _di_f_status_file_
     #define F_status_file_s                    "F_file"
     #define F_status_file_close_s              "F_file_close"
     #define F_status_file_closed_s             "F_file_closed"
@@ -1485,9 +1485,9 @@ extern "C" {
     extern const f_string_static_t f_status_file_utf_s;
     extern const f_string_static_t f_status_file_utf_not_s;
     extern const f_string_static_t f_status_file_write_s;
-  #endif // _di_F_status_file_
+  #endif // _di_f_status_file_
 
-  #ifndef _di_F_status_filesystem_
+  #ifndef _di_f_status_filesystem_
     #define F_status_filesystem_s               "F_filesystem"
     #define F_status_filesystem_not_s           "F_filesystem_not"
     #define F_status_filesystem_quota_block_s   "F_filesystem_quota_block"
@@ -1502,9 +1502,9 @@ extern "C" {
     extern const f_string_static_t f_status_filesystem_not_s;
     extern const f_string_static_t f_status_filesystem_quota_block_s;
     extern const f_string_static_t f_status_filesystem_quota_reached_s;
-  #endif // _di_F_status_filesystem_
+  #endif // _di_f_status_filesystem_
 
-  #ifndef _di_F_status_directory_
+  #ifndef _di_f_status_directory_
     #define F_status_directory_s               "F_directory"
     #define F_status_directory_close_s         "F_directory_close"
     #define F_status_directory_closed_s        "F_directory_closed"
@@ -1567,9 +1567,9 @@ extern "C" {
     extern const f_string_static_t f_status_directory_utf_s;
     extern const f_string_static_t f_status_directory_utf_not_s;
     extern const f_string_static_t f_status_directory_write_s;
-  #endif // _di_F_status_directory_
+  #endif // _di_f_status_directory_
 
-  #ifndef _di_F_status_socket_
+  #ifndef _di_f_status_socket_
     #define F_status_socket_s         "F_socket"
     #define F_status_socket_client_s  "F_socket_client"
     #define F_status_socket_not_s     "F_socket_not"
@@ -1590,9 +1590,9 @@ extern "C" {
     extern const f_string_static_t f_status_socket_receive_s;
     extern const f_string_static_t f_status_socket_send_s;
     extern const f_string_static_t f_status_socket_target_s;
-  #endif // _di_F_status_socket_
+  #endif // _di_f_status_socket_
 
-  #ifndef _di_F_status_compare_
+  #ifndef _di_f_status_compare_
     #define F_status_equal_to_s     "F_equal_to"
     #define F_status_equal_to_not_s "F_equal_to_not"
     #define F_status_than_greater_s "F_than_greater"
@@ -1607,9 +1607,9 @@ extern "C" {
     extern const f_string_static_t f_status_equal_to_not_s;
     extern const f_string_static_t f_status_than_greater_s;
     extern const f_string_static_t f_status_than_less_s;
-  #endif // _di_F_status_compare_
+  #endif // _di_f_status_compare_
 
-  #ifndef _di_F_status_access_
+  #ifndef _di_f_status_access_
     #define F_status_access_s                 "F_access"
     #define F_status_access_denied_s          "F_access_denied"
     #define F_status_access_denied_user_s     "F_access_denied_user"
@@ -1675,9 +1675,9 @@ extern "C" {
     extern const f_string_static_t f_status_access_mode_s;
     extern const f_string_static_t f_status_access_not_s;
     extern const f_string_static_t f_status_access_owner_s;
-  #endif // _di_F_status_access_
+  #endif // _di_f_status_access_
 
-  #ifndef _di_F_status_terminal_
+  #ifndef _di_f_status_terminal_
     #define F_status_terminal_s            "F_terminal"
     #define F_status_terminal_access_s     "F_terminal_access"
     #define F_status_terminal_known_s      "F_terminal_known"
@@ -1710,13 +1710,13 @@ extern "C" {
     extern const f_string_static_t f_status_terminal_valid_s;
     extern const f_string_static_t f_status_terminal_valid_not_s;
     extern const f_string_static_t f_status_terminal_write_s;
-  #endif // _di_F_status_terminal_
+  #endif // _di_f_status_terminal_
 
   #define F_status_status_code_last_s "F_status_code_last"
   #define F_status_status_code_last_s_length 18
 
   extern const f_string_static_t f_status_status_code_last_s;
-#endif // _di_F_status_string_
+#endif // _di_f_status_string_
 
 /**
  * Convert status codes to their string representation.
index cce5280432aa09aa7a0bd2b13990e5c6f780170c..10710c3b66a5b58670a6656e76488284df9a9e2c 100644 (file)
@@ -13,7 +13,7 @@ extern "C" {
       if (F_status_is_error(status)) return status;
     }
 
-    memcpy(destination->string + destination->used, source, sizeof(unsigned char) * length);
+    memcpy(destination->string + destination->used, source, sizeof(f_char_t) * length);
     destination->used += length;
     destination->string[destination->used] = 0;
 
@@ -48,7 +48,7 @@ extern "C" {
       if (i && i > first) {
         size = i - first;
 
-        memcpy(destination->string + destination->used, source + first, sizeof(unsigned char) * size);
+        memcpy(destination->string + destination->used, source + first, sizeof(f_char_t) * size);
         destination->used += size;
       }
 
@@ -62,7 +62,7 @@ extern "C" {
     if (i > first) {
       size = i - first;
 
-      memcpy(destination->string + destination->used, source + first, sizeof(unsigned char) * size);
+      memcpy(destination->string + destination->used, source + first, sizeof(f_char_t) * size);
       destination->used += size;
     }
 
@@ -75,7 +75,7 @@ extern "C" {
 #if !defined(_di_f_string_dynamic_adjust_) || !defined(_di_f_string_dynamic_decimate_by_) || !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_)
   f_status_t private_f_string_dynamic_adjust(const f_array_length_t length, f_string_dynamic_t * const dynamic) {
 
-    f_status_t status = f_memory_adjust(dynamic->size, length, sizeof(unsigned char), (void **) & dynamic->string);
+    f_status_t status = f_memory_adjust(dynamic->size, length, sizeof(f_char_t), (void **) & dynamic->string);
 
     if (F_status_is_error_not(status)) {
       dynamic->size = length;
@@ -107,7 +107,7 @@ extern "C" {
 #if !defined(_di_f_string_append_) || !defined(_di_f_string_append_assure_) || !defined(_di_f_string_append_mash_) || !defined(_di_f_string_append_nulless_) || !defined(_di_f_string_dynamic_append_) || !defined(_di_f_string_dynamic_append_assure_) || !defined(_di_f_string_dynamic_append_nulless_) || !defined(_di_f_string_dynamic_decrease_by_) || !defined(_di_f_string_dynamic_increase_) || !defined(_di_f_string_dynamic_increase_by_) || !defined(_di_f_string_dynamic_mash_) || !defined(_di_f_string_dynamic_mash_nulless_) || !defined(f_string_dynamic_partial_append) || !defined(_di_f_string_dynamic_partial_append_assure_) || !defined(_di_f_string_dynamic_partial_mash_) || !defined(_di_f_string_dynamic_prepend_) || !defined(_di_f_string_dynamic_prepend_nulless_) || !defined(_di_f_string_dynamic_terminate_) || !defined(_di_f_string_dynamic_terminate_after_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_mash_nulless_) || !defined(_di_f_string_mash_) || !defined(_di_f_string_maps_append_) || !defined(_di_f_string_prepend_) || !defined(_di_f_string_prepend_nulless_) || !defined(_di_f_string_triples_append_)
   f_status_t private_f_string_dynamic_resize(const f_array_length_t length, f_string_dynamic_t * const dynamic) {
 
-    const f_status_t status = f_memory_resize(dynamic->size, length, sizeof(unsigned char), (void **) & dynamic->string);
+    const f_status_t status = f_memory_resize(dynamic->size, length, sizeof(f_char_t), (void **) & dynamic->string);
 
     if (F_status_is_error_not(status)) {
       dynamic->size = length;
@@ -661,10 +661,10 @@ extern "C" {
 
     if (destination->used) {
       memmove(destination->string + length, destination->string, destination->used);
-      memcpy(destination->string, source, sizeof(unsigned char) * length);
+      memcpy(destination->string, source, sizeof(f_char_t) * length);
     }
     else {
-      memcpy(destination->string, source, sizeof(unsigned char) * length);
+      memcpy(destination->string, source, sizeof(f_char_t) * length);
     }
 
     destination->used += length;
@@ -718,7 +718,7 @@ extern "C" {
             }
 
             memmove(destination->string + offset + size, destination->string + offset, destination->used - offset);
-            memcpy(destination->string + offset, source + first, sizeof(unsigned char) * size);
+            memcpy(destination->string + offset, source + first, sizeof(f_char_t) * size);
 
             destination->used += size;
             offset += size;
index ecee027ec733b5c22ecab27f947d4b790404543f..517cd4eb9b9042b3c57a43389567ba55bd2fdd37 100644 (file)
@@ -21,10 +21,23 @@ extern "C" {
  *      therefore this gets defined here.
  */
 #ifdef _en_BUG_strnlen_
-  extern size_t strnlen(const unsigned char * const string, size_t max_length);
+  extern size_t strnlen(const char * const string, size_t max_length);
 #endif // _en_BUG_strnlen_
 
 /**
+ * Define the basic character type.
+ */
+#ifndef _di_f_char_t_
+  typedef char f_char_t;
+
+  #define f_char_t_initialize 0
+
+  #define macro_f_char_t_initialize(character) character
+
+  #define macro_f_char_t_clear(character) character = 0;
+#endif // _di_f_char_t_
+
+/**
  * Define the basic string type.
  *
  * Dynamic allocation macros are provided, but it is recommended to utilize the f_string_dynamic_t for dynamic allocation.
@@ -33,10 +46,12 @@ extern "C" {
  *
  * The ideal length for a string is F_array_length_t_size_d, which generally defaults to 2^64 (unsigned).
  * However, the libc/POSIX appears to limit this to 2^63 (signed).
+ *
  * F_string_t_size_d is provided to help safely navigate this.
+ * sizeof(f_char_t) is provided to get the size of an individual character within the string and not the string itself (aka, not the character pointer).
  */
 #ifndef _di_f_string_t_
-  typedef unsigned char *f_string_t;
+  typedef f_char_t *f_string_t;
 
   #define f_string_t_initialize 0
 
@@ -67,7 +82,7 @@ extern "C" {
  * When "f_string_constant_t * xxx" is passed to a function, then "xxx" can be changed.
  */
 #ifndef _di_f_string_constant_t_
-  typedef const unsigned char *f_string_constant_t;
+  typedef const f_char_t *f_string_constant_t;
 
   #define f_string_constant_t_initialize 0
 
index 1b48d8ccce8ca888b37a2ca7ea0cdf8dfb20f9c5..fc1cee0430537e0a7b98b341d22cdd3d4c6870d3 100644 (file)
@@ -795,7 +795,7 @@ extern "C" {
 #endif // _di_f_string_dynamic_seek_line_
 
 #ifndef _di_f_string_dynamic_seek_line_to_
-  f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t * const range) {
+  f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range) {
     #ifndef _di_level_0_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -818,7 +818,7 @@ extern "C" {
 #endif // _di_f_string_dynamic_seek_line_to_
 
 #ifndef _di_f_string_dynamic_seek_to_
-  f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t * const range) {
+  f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range) {
     #ifndef _di_level_0_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
index 51366f2c2aa22b0e5c18d30f43ae014c06f035bd..126bfa3ab3c005ffd274d0afb6374cba254fb509 100644 (file)
@@ -913,7 +913,7 @@ extern "C" {
  *   Errors (with error bit) from: f_memory_resize().
  */
 #ifndef _di_f_string_dynamic_seek_line_to_
-  extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t * const range);
+  extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range);
 #endif // _di_f_string_dynamic_seek_line_to_
 
 /**
@@ -939,7 +939,7 @@ extern "C" {
  *   Errors (with error bit) from: f_memory_resize().
  */
 #ifndef _di_f_string_dynamic_seek_to_
-  extern f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t * const range);
+  extern f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t * const range);
 #endif // _di_f_string_dynamic_seek_to_
 
 /**
index 536ea6b1bf04663ba6e0058bd6278909395766cd..fba5b4c8921fb978d98b3c93c90c765c33811486 100644 (file)
@@ -21,8 +21,8 @@ extern "C" {
  *
  * The f_string_static_t type should never be directly allocated or deallocated.
  *
- * A special macro_f_string_static_t_initialize2() is provided for the special purpose of easily initialize a static string with an identical used and size.
  * A special macro_f_string_static_t_initialize() is provided for the special purpose of easily initialize a static string.
+ * A special macro_f_string_static_t_initialize2() is provided for the special purpose of easily initialize a static string with an identical used and size.
  *
  * string: The string.
  * size:   Total amount of space available.
index 4b5652abc2fd91548188bf9235c5252e7be26ee8..4db4cec1bb9b71b35299921e5dcc6581b920346c 100644 (file)
@@ -1174,7 +1174,7 @@ extern "C" {
  */
 #ifndef _di_f_fll_id_t_
   typedef struct {
-    unsigned char name[64];
+    char name[64];
 
     uint16_t type;
     uint8_t used;
index c11bb62d42d40ab17a556532bc78f9ed47a95c2b..02b17deff0d7fdb1f78d4b5a37dd0313c6d48a54 100644 (file)
@@ -694,9 +694,9 @@ extern "C" {
             return F_status_set_error(F_failure);
         }
 
-        memcpy(*character, &utf, sizeof(unsigned char) * macro_f_utf_character_t_width_is(utf_character));
+        memcpy(*character, &utf, sizeof(f_char_t) * macro_f_utf_character_t_width_is(utf_character));
       #else
-        memcpy(*character, &utf_character, sizeof(unsigned char) * macro_f_utf_character_t_width_is(utf_character));
+        memcpy(*character, &utf_character, sizeof(f_char_t) * macro_f_utf_character_t_width_is(utf_character));
       #endif // __BYTE_ORDER == __LITTLE_ENDIAN
 
       return F_none;
@@ -705,9 +705,9 @@ extern "C" {
     #if __BYTE_ORDER == __LITTLE_ENDIAN
       uint32_t utf = macro_f_utf_character_t_to_char_1(utf_character) << 24;
 
-      memcpy(*character, &utf, sizeof(unsigned char));
+      memcpy(*character, &utf, sizeof(f_char_t));
     #else
-      memcpy(*character, &utf_character, sizeof(unsigned char));
+      memcpy(*character, &utf_character, sizeof(f_char_t));
     #endif // __BYTE_ORDER == __LITTLE_ENDIAN
 
     return F_none;
index 6aecfa32b906d9cc55a02a67f64840a42910b557..489c608613db7ed1484274b3a57dcc5c06c41494 100644 (file)
@@ -774,7 +774,7 @@ extern "C" {
 #endif // _di_f_utf_string_dynamic_seek_line_
 
 #ifndef _di_f_utf_string_dynamic_seek_line_to_
-  f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t *range) {
+  f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t *range) {
     #ifndef _di_level_0_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
@@ -801,7 +801,7 @@ extern "C" {
 #endif // _di_f_utf_string_dynamic_seek_line_to_
 
 #ifndef _di_f_utf_string_dynamic_seek_to_
-  f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t *range) {
+  f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t *range) {
     #ifndef _di_level_0_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_0_parameter_checking_
index 3fcd11cdaebcd148f0c2de0aef1083a80799e163..13aa609b4649a53d4d6b2c697fe6f5a075dcc5db 100644 (file)
@@ -947,7 +947,7 @@ extern "C" {
  *   Errors (with error bit) from: f_memory_resize().
  */
 #ifndef _di_f_utf_string_dynamic_seek_line_to_
-  extern f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t *range);
+  extern f_status_t f_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t *range);
 #endif // _di_f_utf_string_dynamic_seek_line_to_
 
 /**
@@ -974,7 +974,7 @@ extern "C" {
  *   Errors (with error bit) from: f_memory_resize().
  */
 #ifndef _di_f_utf_string_dynamic_seek_to_
-  extern f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const unsigned char seek_to_this, f_string_range_t *range);
+  extern f_status_t f_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, const f_char_t seek_to_this, f_string_range_t *range);
 #endif // _di_f_utf_string_dynamic_seek_to_
 
 /**
index 1a45f5266d4de1489857faff88bd8eb8a1def910..fe639e2468ed6396bcc95e2e86f624b23175711e 100644 (file)
@@ -13,7 +13,7 @@ extern "C" {
       if (F_status_is_error(status)) return status;
     }
 
-    memcpy(destination->string + destination->used, source, sizeof(unsigned char) * length);
+    memcpy(destination->string + destination->used, source, sizeof(f_char_t) * length);
     destination->used = destination->used + length;
 
     return F_none;
@@ -45,7 +45,7 @@ extern "C" {
           if (F_status_is_error(status)) return status;
         }
 
-        memcpy(destination->string + destination->used, source + first, sizeof(unsigned char) * size);
+        memcpy(destination->string + destination->used, source + first, sizeof(f_char_t) * size);
         destination->used = destination->used + size;
       }
 
@@ -64,7 +64,7 @@ extern "C" {
         if (F_status_is_error(status)) return status;
       }
 
-      memcpy(destination->string + destination->used, source + first, sizeof(unsigned char) * size);
+      memcpy(destination->string + destination->used, source + first, sizeof(f_char_t) * size);
       destination->used = destination->used + size;
     }
 
@@ -344,10 +344,10 @@ extern "C" {
 
     if (destination->used) {
       memmove(destination->string + length, destination->string, destination->used);
-      memcpy(destination->string, source, sizeof(unsigned char) * length);
+      memcpy(destination->string, source, sizeof(f_char_t) * length);
     }
     else {
-      memcpy(destination->string, source, sizeof(unsigned char) * length);
+      memcpy(destination->string, source, sizeof(f_char_t) * length);
     }
 
     destination->used = destination->used + length;
@@ -381,7 +381,7 @@ extern "C" {
           }
 
           memmove(destination->string + offset + size, destination->string + offset, destination->used - offset);
-          memcpy(destination->string + offset, source + first, sizeof(unsigned char) * size);
+          memcpy(destination->string + offset, source + first, sizeof(f_char_t) * size);
 
           destination->used = destination->used + size;
           offset += size;
@@ -401,7 +401,7 @@ extern "C" {
             }
 
             memmove(destination->string + offset + size, destination->string + offset, destination->used - offset);
-            memcpy(destination->string + offset, source + first, sizeof(unsigned char) * size);
+            memcpy(destination->string + offset, source + first, sizeof(f_char_t) * size);
 
             destination->used = destination->used + size;
             offset += size;
index ef685ccd354d03eaf1ea3d12a25601edbfed71ad..e57c7ad44d2b03ba51e7d6d4355d7ab32e8a04b6 100644 (file)
@@ -31,15 +31,15 @@ extern "C" {
 
       path.used = control_group.path.used + control_group.groups.array[i].used + F_control_group_path_system_suffix_s_length;
 
-      unsigned char path_string[path.used + 1];
+      f_char_t path_string[path.used + 1];
       path.string = path_string;
 
       if (control_group.path.used) {
-        memcpy(path.string, control_group.path.string, sizeof(unsigned char) * control_group.path.used);
+        memcpy(path.string, control_group.path.string, sizeof(f_char_t) * control_group.path.used);
       }
 
-      memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(unsigned char) * control_group.groups.array[i].used);
-      memcpy(path.string + control_group.path.used + F_control_group_path_system_default_s_length, F_control_group_path_system_suffix_s, sizeof(unsigned char) * F_control_group_path_system_suffix_s_length);
+      memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(f_char_t) * control_group.groups.array[i].used);
+      memcpy(path.string + control_group.path.used + F_control_group_path_system_default_s_length, F_control_group_path_system_suffix_s, sizeof(f_char_t) * F_control_group_path_system_suffix_s_length);
 
       path.string[path.used] = 0;
 
index 8df9af257832ced716c93f670cda75a9b04feefb..c5369c0eea28990b03749f71694822098e8eac61 100644 (file)
@@ -27,7 +27,7 @@ extern "C" {
       f_array_length_t at_path = 0;
       f_string_static_t tree = f_string_static_t_initialize;
 
-      unsigned char tree_string[path.used + 1];
+      f_char_t tree_string[path.used + 1];
       tree.string = tree_string;
       tree.used = path.used;
       tree_string[path.used] = 0;
@@ -35,7 +35,7 @@ extern "C" {
       for (; at_path < path.used; ++at_path) {
 
         if (at_path && path.string[at_path] == f_path_separator_s.string[0]) {
-          memcpy(tree.string, path.string + at_tree, sizeof(unsigned char) * (at_path - at_tree));
+          memcpy(tree.string, path.string + at_tree, sizeof(f_char_t) * (at_path - at_tree));
           tree.string[at_path - at_tree] = 0;
 
           status = f_directory_exists(tree);
index 9009d4c994c07675fc1601a7b1bb5cfec6b95ed5..f53815f667e495ece565fdf40d70be0cfcefe9aa 100644 (file)
@@ -58,14 +58,14 @@ extern "C" {
       destination_sub.used = destination.used + listing.directory.array[i].used + 1;
       destination_sub.size = destination_sub.used;
 
-      unsigned char path_source_sub[source_sub.used + 1];
-      unsigned char path_destination_sub[destination_sub.used + 1];
+      f_char_t path_source_sub[source_sub.used + 1];
+      f_char_t path_destination_sub[destination_sub.used + 1];
 
-      memcpy(path_source_sub, source.string, sizeof(unsigned char) * source.used);
-      memcpy(path_source_sub + source.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+      memcpy(path_source_sub, source.string, sizeof(f_char_t) * source.used);
+      memcpy(path_source_sub + source.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
-      memcpy(path_destination_sub, destination.string, sizeof(unsigned char) * destination.used);
-      memcpy(path_destination_sub + destination.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+      memcpy(path_destination_sub, destination.string, sizeof(f_char_t) * destination.used);
+      memcpy(path_destination_sub + destination.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
       path_source_sub[source.used] = f_path_separator_s.string[0];
       path_source_sub[source_sub.used] = 0;
@@ -146,19 +146,19 @@ extern "C" {
     path_source.used = source.used + file.used + 2;
     path_destination.used = destination.used + file.used + 2;
 
-    unsigned char path_source_string[path_source.used];
-    unsigned char path_destination_string[path_destination.used];
+    f_char_t path_source_string[path_source.used];
+    f_char_t path_destination_string[path_destination.used];
 
     path_source.string = path_source_string;
     path_destination.string = path_destination_string;
 
-    memcpy(path_source_string, source.string, sizeof(unsigned char) * source.used);
-    memcpy(path_source_string + source.used + 1, file.string, sizeof(unsigned char) * file.used);
+    memcpy(path_source_string, source.string, sizeof(f_char_t) * source.used);
+    memcpy(path_source_string + source.used + 1, file.string, sizeof(f_char_t) * file.used);
     path_source_string[source.used] = f_path_separator_s.string[0];
     path_source_string[source.used + file.used + 1] = 0;
 
-    memcpy(path_destination_string, destination.string, sizeof(unsigned char) * destination.used);
-    memcpy(path_destination_string + destination.used + 1, file.string, sizeof(unsigned char) * file.used);
+    memcpy(path_destination_string, destination.string, sizeof(f_char_t) * destination.used);
+    memcpy(path_destination_string + destination.used + 1, file.string, sizeof(f_char_t) * file.used);
     path_destination_string[destination.used] = f_path_separator_s.string[0];
     path_destination_string[destination.used + file.used + 1] = 0;
 
@@ -196,7 +196,7 @@ extern "C" {
         macro_f_directory_status_t_resize(status, failure, size + 1);
         if (F_status_is_error(status)) return status;
 
-        memcpy(failure.path.string, path_source.string, sizeof(unsigned char) * size);
+        memcpy(failure.path.string, path_source.string, sizeof(f_char_t) * size);
         failure.path.string[size] = 0;
       }
       else {
@@ -210,7 +210,7 @@ extern "C" {
         macro_f_directory_status_t_resize(status, failure, size + 1);
         if (F_status_is_error(status)) return status;
 
-        memcpy(failure.path.string, path_destination.string, sizeof(unsigned char) * size);
+        memcpy(failure.path.string, path_destination.string, sizeof(f_char_t) * size);
         failure.path.string[size] = 0;
       }
 
@@ -283,14 +283,14 @@ extern "C" {
       destination_sub.used = destination.used + listing.directory.array[i].used + 1;
       destination_sub.size = destination_sub.used;
 
-      unsigned char path_source_sub[source_sub.used + 1];
-      unsigned char path_destination_sub[destination_sub.used + 1];
+      f_char_t path_source_sub[source_sub.used + 1];
+      f_char_t path_destination_sub[destination_sub.used + 1];
 
-      memcpy(path_source_sub, source.string, sizeof(unsigned char) * source.used);
-      memcpy(path_source_sub + source.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+      memcpy(path_source_sub, source.string, sizeof(f_char_t) * source.used);
+      memcpy(path_source_sub + source.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
       memcpy(path_destination_sub, destination.string, destination.used);
-      memcpy(path_destination_sub + destination.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+      memcpy(path_destination_sub + destination.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
       path_source_sub[source.used] = f_path_separator_s.string[0];
       path_source_sub[source_sub.used] = 0;
@@ -358,19 +358,19 @@ extern "C" {
     path_source.used = source.used + file.used + 2;
     path_destination.used = destination.used + file.used + 2;
 
-    unsigned char path_source_string[path_source.used];
-    unsigned char path_destination_string[path_destination.used];
+    f_char_t path_source_string[path_source.used];
+    f_char_t path_destination_string[path_destination.used];
 
     path_source.string = path_source_string;
     path_destination.string = path_destination_string;
 
-    memcpy(path_source_string, source.string, sizeof(unsigned char) * source.used);
-    memcpy(path_source_string + source.used + 1, file.string, sizeof(unsigned char) * file.used);
+    memcpy(path_source_string, source.string, sizeof(f_char_t) * source.used);
+    memcpy(path_source_string + source.used + 1, file.string, sizeof(f_char_t) * file.used);
     path_source_string[source.used] = f_path_separator_s.string[0];
     path_source_string[source.used + file.used + 1] = 0;
 
-    memcpy(path_destination_string, destination.string, sizeof(unsigned char) * destination.used);
-    memcpy(path_destination_string + destination.used + 1, file.string, sizeof(unsigned char) * file.used);
+    memcpy(path_destination_string, destination.string, sizeof(f_char_t) * destination.used);
+    memcpy(path_destination_string + destination.used + 1, file.string, sizeof(f_char_t) * file.used);
     path_destination_string[destination.used] = f_path_separator_s.string[0];
     path_destination_string[destination.used + file.used + 1] = 0;
 
@@ -411,7 +411,7 @@ extern "C" {
         macro_f_directory_status_t_resize(status, failure, size + 1);
         if (F_status_is_error(status)) return status;
 
-        memcpy(failure.path.string, path_source.string, sizeof(unsigned char) * size);
+        memcpy(failure.path.string, path_source.string, sizeof(f_char_t) * size);
         failure.path.string[size] = 0;
       }
       else {
@@ -425,7 +425,7 @@ extern "C" {
         macro_f_directory_status_t_resize(status, failure, size + 1);
         if (F_status_is_error(status)) return status;
 
-        memcpy(failure.path.string, path_destination.string, sizeof(unsigned char) * size);
+        memcpy(failure.path.string, path_destination.string, sizeof(f_char_t) * size);
         failure.path.string[size] = 0;
       }
 
@@ -497,12 +497,12 @@ extern "C" {
 
     for (; i < length; ++i) {
 
-      name_directory.string = entity[i]->d_name;
+      name_directory.string = (f_string_t) entity[i]->d_name;
       name_directory.used = strnlen(name_directory.string, F_directory_name_max_d);
 
       // There is no reason to include "." and ".." in the directory listing.
       if (!strncmp(name_directory.string, "..", 3) || !strncmp(name_directory.string, ".", 2)) {
-        f_memory_resize(1, 0, sizeof(unsigned char *), (void **) & entity[i]);
+        f_memory_resize(1, 0, sizeof(f_string_t), (void **) & entity[i]);
 
         continue;
       }
@@ -549,16 +549,16 @@ extern "C" {
       status = f_string_dynamic_increase_by(name_directory.used, &names->array[names->used]);
       if (F_status_is_error(status)) break;
 
-      memcpy(names->array[names->used].string, name_directory.string, sizeof(unsigned char) * name_directory.used);
+      memcpy(names->array[names->used].string, name_directory.string, sizeof(f_char_t) * name_directory.used);
       names->array[names->used++].used = name_directory.used;
 
-      f_memory_resize(1, 0, sizeof(unsigned char *), (void **) & entity[i]);
+      f_memory_resize(1, 0, sizeof(f_char_t *), (void **) & entity[i]);
     } // for
 
     closedir(parent);
 
     for (; i < length; ++i) {
-      f_memory_resize(1, 0, sizeof(unsigned char *), (void **) & entity[i]);
+      f_memory_resize(1, 0, sizeof(f_char_t *), (void **) & entity[i]);
     } // for
 
     f_memory_resize(1, 0, sizeof(struct dirent *), (void **) & entity);
@@ -751,7 +751,7 @@ extern "C" {
           return F_status_set_error(F_string_too_large);
         }
 
-        macro_f_string_dynamic_t_resize(status, (*destination), destination->used + total);
+        status = f_string_dynamic_resize(destination->used + total, destination);
         if (F_status_is_error(status)) return status;
       }
     }
@@ -762,7 +762,7 @@ extern "C" {
     }
 
     if (length_truncated - start > 0) {
-      memcpy(destination->string + destination->used, source.string + start, sizeof(unsigned char) * (length_truncated - start));
+      memcpy(destination->string + destination->used, source.string + start, sizeof(f_char_t) * (length_truncated - start));
     }
 
     destination->used += total;
index 665aaa8f2678af2b99efdedadf4cb5be2ba572f8..f2abc4a778c33d6680aaa43c580a12abe0b925f9 100644 (file)
@@ -122,13 +122,13 @@ extern "C" {
         paths->array[paths->used].used = 0;
 
         if (total) {
-          unsigned char buffer[total + 1];
+          char buffer[total + 1];
 
           for (j = first, k = 0; j < i; ++j) {
 
             if (!path.string[j]) continue;
 
-            buffer[k++] = path.string[j];
+            buffer[k++] = (char) path.string[j];
           } // for
 
           // Guarantee a trailing directory separator.
@@ -139,7 +139,7 @@ extern "C" {
           status = f_string_dynamic_increase_by(k, &paths->array[paths->used]);
           if (F_status_is_error(status)) return status;
 
-          memcpy(paths->array[paths->used].string, buffer, sizeof(unsigned char) * k);
+          memcpy(paths->array[paths->used].string, buffer, sizeof(f_char_t) * k);
 
           paths->array[paths->used++].used = k;
         }
@@ -200,13 +200,13 @@ extern "C" {
         paths->array[paths->used].used = 0;
 
         if (total) {
-          unsigned char buffer[total];
+          char buffer[total];
 
           for (j = 0, k = 0; j < total; ++j) {
 
             if (!path.string[r + j + 1]) continue;
 
-            buffer[k++] = path.string[r + j + 1];
+            buffer[k++] = (char) path.string[r + j + 1];
           } // for
 
           // Guarantee a trailing directory separator.
@@ -217,7 +217,7 @@ extern "C" {
           status = f_string_dynamic_increase_by(k, &paths->array[paths->used]);
           if (F_status_is_error(status)) return status;
 
-          memcpy(paths->array[paths->used].string, buffer, sizeof(unsigned char) * k);
+          memcpy(paths->array[paths->used].string, buffer, sizeof(f_char_t) * k);
 
           paths->array[paths->used++].used = k;
         }
index f440191bbfaf15b7d40e731fe626ab58e0429134..27f2c49713b055a2521008b0671fe8515f6b627a 100644 (file)
@@ -14,7 +14,7 @@ extern "C" {
     f_array_length_t i = 0;
 
     uint8_t width = 0;
-    const unsigned char quote_char = quoted == f_fss_quote_type_double_e ? f_string_ascii_quote_double_s.string[0] : f_string_ascii_quote_single_s.string[0];
+    const f_char_t quote_char = quoted == f_fss_quote_type_double_e ? f_string_ascii_quote_double_s.string[0] : f_string_ascii_quote_single_s.string[0];
 
     // If there are any spaces, then this will be quoted so find the first non-placeholder character.
     for (; destination_range.start < destination->used; ++destination_range.start) {
@@ -328,7 +328,7 @@ extern "C" {
     }
 
     // Handle quoted support.
-    unsigned char quote_found = 0;
+    f_char_t quote_found = 0;
 
     if (quoted) {
       *quoted = 0;
@@ -869,7 +869,7 @@ extern "C" {
     f_array_length_t item_total = 0;
     f_array_length_t i = 0;
 
-    const unsigned char quote_char = quoted == f_fss_quote_type_double_e ? f_string_ascii_quote_double_s.string[0] : f_string_ascii_quote_single_s.string[0];
+    const f_char_t quote_char = quoted == f_fss_quote_type_double_e ? f_string_ascii_quote_double_s.string[0] : f_string_ascii_quote_single_s.string[0];
 
     // Use placeholders for potential quote and potential delimited quote to avoid doing things such as memmove().
     destination->string[destination->used++] = f_fss_delimit_placeholder_s.string[0];
index bea842926a8bc696bf1c5d9400e5131874b83ce9..94f9b4f58bbdfdd65aa1c9ce38830bbf1cdbe781 100644 (file)
@@ -231,7 +231,7 @@ extern "C" {
           }
           else if (*string < 0x56) {
             if (*string == f_string_ascii_C_s.string[0]) {
-              unsigned char value[1] = { (unsigned char) va_arg(apl, int) };
+              f_char_t value[1] = { (f_char_t) va_arg(apl, int) };
 
               *status = f_print_safely(value, 1, stream);
 
@@ -627,7 +627,7 @@ extern "C" {
           }
           else if (*string < 0x72) {
             if (*string == f_string_ascii_c_s.string[0]) {
-              const unsigned char value = (unsigned char) va_arg(apl, uint32_t);
+              const f_char_t value = (f_char_t) va_arg(apl, uint32_t);
 
               if (!fputc_unlocked(value, stream)) {
                 *status = F_status_set_error(F_output);
@@ -1082,56 +1082,56 @@ extern "C" {
           }
           else if (type == f_print_format_type_double_32_e || type == f_print_format_type_double_64_e) {
             unsigned int f = 0;
-            unsigned char format[33];
-            unsigned char buffer[129];
+            char format[33];
+            f_char_t buffer[129];
 
-            memset(format, 0, sizeof(unsigned char) * 33);
-            memset(buffer, 0, sizeof(unsigned char) * 129);
+            memset(format, 0, sizeof(char) * 33);
+            memset(buffer, 0, sizeof(f_char_t) * 129);
 
-            format[f++] = f_string_ascii_percent_s.string[0];
+            format[f++] = (char) f_string_ascii_percent_s.string[0];
 
             if (flag & F_print_format_flag_sign_always_d) {
-              format[f++] = f_string_ascii_plus_s.string[0];
+              format[f++] = (char) f_string_ascii_plus_s.string[0];
             }
             else if (flag & F_print_format_flag_sign_pad_d) {
-              format[f++] = f_string_ascii_space_s.string[0];
+              format[f++] = (char) f_string_ascii_space_s.string[0];
             }
 
             if (flag & F_print_format_flag_align_left_d) {
-              format[f++] = f_string_ascii_minus_s.string[0];
+              format[f++] = (char) f_string_ascii_minus_s.string[0];
             }
 
             if (flag & F_print_format_flag_zeros_leading_d) {
-              format[f++] = f_string_ascii_0_s.string[0];
+              format[f++] = (char) f_string_ascii_0_s.string[0];
             }
 
             if (flag & F_print_format_flag_width_d) {
-              format[f++] = f_string_ascii_asterisk_s.string[0];
+              format[f++] = (char) f_string_ascii_asterisk_s.string[0];
             }
 
             if (flag & F_print_format_flag_precision_d) {
-              format[f++] = f_string_ascii_period_s.string[0];
-              format[f++] = f_string_ascii_asterisk_s.string[0];
+              format[f++] = (char) f_string_ascii_period_s.string[0];
+              format[f++] = (char) f_string_ascii_asterisk_s.string[0];
             }
 
             if (flag & F_print_format_flag_exponent_d) {
               if (flag & F_print_format_flag_exponent_upper_d) {
-                format[f++] = f_string_ascii_E_s.string[0];
+                format[f++] = (char) f_string_ascii_E_s.string[0];
               }
               else {
-                format[f++] = f_string_ascii_e_s.string[0];
+                format[f++] = (char) f_string_ascii_e_s.string[0];
               }
             }
             else if (flag & F_print_format_flag_exponent_either_d) {
               if (flag & F_print_format_flag_exponent_upper_d) {
-                format[f++] = f_string_ascii_G_s.string[0];
+                format[f++] = (char) f_string_ascii_G_s.string[0];
               }
               else {
-                format[f++] = f_string_ascii_g_s.string[0];
+                format[f++] = (char) f_string_ascii_g_s.string[0];
               }
             }
             else {
-              format[f++] = f_string_ascii_f_s.string[0];
+              format[f++] = (char) f_string_ascii_f_s.string[0];
             }
 
             if (type == f_print_format_type_double_32_e) {
index 58fae93d9f0bda408c135c8015b3bf31a4a57874..7bd2497f8cfa20d1cf15719ca52fffac3835a087 100644 (file)
@@ -874,7 +874,7 @@ extern "C" {
 
     {
       f_array_length_t j = 0;
-      unsigned char number[5] = { 0, 0, 0, 0, 0 };
+      f_char_t number[5] = { 0, 0, 0, 0, 0 };
 
       for (++range->start; range->start <= range->stop && j < 4; ++range->start, ++j) {
 
index bbd4b9daff362dbfa122ffc8f1a0156bbfc117af..118980333c2abdd9cb3798bf987509ee08de9aac 100644 (file)
@@ -92,7 +92,7 @@ extern "C" {
 #endif // _di_fl_utf_string_dynamic_rip_nulless_
 
 #ifndef _di_fl_utf_string_dynamic_seek_line_to_char_
-  f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const unsigned char seek_to_this) {
+  f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this) {
     #ifndef _di_level_1_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
       if (buffer.used <= range->start) return F_status_set_error(F_parameter);
@@ -225,7 +225,7 @@ extern "C" {
 #endif // _di_fl_utf_string_dynamic_seek_line_until_graph_non_
 
 #ifndef _di_fl_utf_string_dynamic_seek_to_char_
-  f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const unsigned char seek_to_this) {
+  f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this) {
     #ifndef _di_level_1_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
       if (buffer.used <= range->start) return F_status_set_error(F_parameter);
@@ -321,7 +321,7 @@ extern "C" {
 #endif // _di_fl_utf_string_rip_nulless_
 
 #ifndef _di_fl_utf_string_seek_line_to_char_
-  f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const unsigned char seek_to_this) {
+  f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this) {
     #ifndef _di_level_1_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_1_parameter_checking_
@@ -438,7 +438,7 @@ extern "C" {
 #endif // _di_fl_utf_string_seek_line_until_graph_non_
 
 #ifndef _di_fl_utf_string_seek_to_char_
-  f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const unsigned char seek_to_this) {
+  f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this) {
     #ifndef _di_level_1_parameter_checking_
       if (!range) return F_status_set_error(F_parameter);
     #endif // _di_level_1_parameter_checking_
index 0f2255230f0d6a57fefca94d05c6acf1e40e1b03..ff7572130ae817da58580a356123bab3d116299c 100644 (file)
@@ -268,7 +268,7 @@ extern "C" {
  *   F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
  */
 #ifndef _di_fl_utf_string_dynamic_seek_line_to_char_
-  extern f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const unsigned char seek_to_this);
+  extern f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this);
 #endif // _di_fl_utf_string_dynamic_seek_line_to_char_
 
 /**
@@ -350,7 +350,7 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  */
 #ifndef _di_fl_utf_string_dynamic_seek_to_char_
-  extern f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const unsigned char seek_to_this);
+  extern f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_string_range_t * const range, const f_char_t seek_to_this);
 #endif // _di_fl_utf_string_dynamic_seek_to_char_
 
 /**
@@ -432,7 +432,7 @@ extern "C" {
  *   F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
  */
 #ifndef _di_fl_utf_string_seek_line_to_char_
-  extern f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const unsigned char seek_to_this);
+  extern f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this);
 #endif // _di_fl_utf_string_seek_line_to_char_
 
 /**
@@ -517,7 +517,7 @@ extern "C" {
  *   F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
  */
 #ifndef _di_fl_utf_string_seek_to_character_
-  extern f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const unsigned char seek_to_this);
+  extern f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_string_range_t * const range, const f_char_t seek_to_this);
 #endif // _di_fl_utf_string__seek_to_character_
 
 #ifdef __cplusplus
index fe733d9b2f1ce1c962070ea016d1ffd1b3b1ed40..84891c56bc04ba1a42560cd42d16ee1161ceadec 100644 (file)
@@ -6,7 +6,7 @@ extern "C" {
 #endif
 
 #if !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
-  void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, unsigned char buffer_char[], uint8_t * const width, int8_t * const width_last) {
+  void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, f_char_t buffer_char[], uint8_t * const width, int8_t * const width_last) {
 
     uint8_t increment_by = 0;
 
@@ -93,7 +93,7 @@ extern "C" {
     // @todo this needs to identify an invalid UTF-8 string before writing and return an error if invalid.
 
     do {
-      memset(buffer_write, 0, sizeof(unsigned char) * write_size);
+      memset(buffer_write, 0, sizeof(f_char_t) * write_size);
 
       for (i = 0, used = 0; used < write_size && *written + i < write_max; ++i, used += width) {
 
index b835dd587b7c347e3ce750a83f0095e1752a7569..fd52d78cc5549e78161fed6623fb37afa65c9191 100644 (file)
@@ -40,7 +40,7 @@ extern "C" {
  * @see fl_utf_file_read_until()
  */
 #if !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
-  extern void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, unsigned char buffer_char[], uint8_t * const width, int8_t * const width_last) F_attribute_visibility_internal_d;
+  extern void private_fl_utf_file_process_read_buffer(const f_string_t buffer_read, const ssize_t size_read, f_utf_string_dynamic_t * const buffer, f_char_t buffer_char[], uint8_t * const width, int8_t * const width_last) F_attribute_visibility_internal_d;
 #endif // !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
 
 /**
index abfd14e7704994e172db163045742252d2c91a98..4d1718a64391c7c00b189b3dd82df5864ca40760 100644 (file)
@@ -25,8 +25,8 @@ extern "C" {
     uint8_t width = 0;
     int8_t width_last = -1;
 
-    unsigned char buffer_read[file.size_read];
-    unsigned char buffer_char[4] = { 0, 0, 0, 0 };
+    f_char_t buffer_read[file.size_read];
+    f_char_t buffer_char[4] = { 0, 0, 0, 0 };
 
     memset(&buffer_read, 0, sizeof(file.size_read));
 
@@ -85,8 +85,8 @@ extern "C" {
     uint8_t width = 0;
     int8_t width_last = -1;
 
-    unsigned char buffer_read[file.size_read];
-    unsigned char buffer_char[4] = { 0, 0, 0, 0 };
+    f_char_t buffer_read[file.size_read];
+    f_char_t buffer_char[4] = { 0, 0, 0, 0 };
 
     memset(&buffer_read, 0, sizeof(file.size_read));
 
@@ -156,8 +156,8 @@ extern "C" {
       buffer_size = total;
     }
 
-    unsigned char buffer_read[buffer_size];
-    unsigned char buffer_char[4] = { 0, 0, 0, 0 };
+    f_char_t buffer_read[buffer_size];
+    f_char_t buffer_char[4] = { 0, 0, 0, 0 };
 
     memset(&buffer_read, 0, sizeof(buffer_size));
 
index f545c245c93e8f5ca8383c2cca9ed365c21b83e9..e7b75adcd5f6b6599bc2ac58a70ad0dc9e01dd41 100644 (file)
@@ -26,14 +26,14 @@ extern "C" {
 
       path.used = control_group.path.used + control_group.groups.array[i].used;
 
-      unsigned char path_string[path.used + 1];
+      f_char_t path_string[path.used + 1];
       path.string = path_string;
 
       if (control_group.path.used) {
-        memcpy(path.string, control_group.path.string, sizeof(unsigned char) * control_group.path.used);
+        memcpy(path.string, control_group.path.string, sizeof(f_char_t) * control_group.path.used);
       }
 
-      memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(unsigned char) * control_group.groups.array[i].used);
+      memcpy(path.string + control_group.path.used, control_group.groups.array[i].string, sizeof(f_char_t) * control_group.groups.array[i].used);
       path.string[path.used] = 0;
 
       status = fl_directory_create(path, F_file_mode_all_rwx_d);
index a07fc3625a37e50efecd5aa4cbb214547c2e839f..92b7ea444583b9b73d43669699690e3ec1bac55b 100644 (file)
@@ -6,14 +6,14 @@ extern "C" {
 #endif
 
 #ifndef _di_fll_error_print_
-  f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
+  f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback) {
 
     return private_fll_error_print(print, status, function, fallback);
   }
 #endif // _di_fll_error_print_
 
 #ifndef _di_fll_error_file_print_
-  f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
+  f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback, const f_string_static_t name, const f_string_static_t operation, const uint8_t type) {
 
     f_string_static_t type_name = fll_error_file_type_file_s;
 
@@ -618,7 +618,7 @@ extern "C" {
 #endif // _di_fll_error_file_print_
 
 #ifndef _di_fll_error_parameter_integer_print_
-  f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_static_t parameter, const f_string_static_t argument) {
+  f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback, const f_string_static_t parameter, const f_string_static_t argument) {
 
     if (status == F_data_not) {
       if (print.verbosity != f_console_verbosity_quiet_e) {
index 4598da9032f00a63cfdcd2b5435d892d75fb5b64..149dcd968a3e6a88cb216da4d2ff2c5b8b66bd8d 100644 (file)
@@ -53,7 +53,7 @@ extern "C" {
  *   F_true is returned if the status code is unknown.
  */
 #ifndef _di_fll_error_print_
-  extern f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback);
+  extern f_status_t fll_error_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback);
 #endif // _di_fll_error_print_
 
 /**
@@ -81,7 +81,7 @@ extern "C" {
  *   F_false is returned on successful print of known errors.
  */
 #ifndef _di_fll_error_file_print_
-  extern f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_static_t name, const f_string_static_t operation, const uint8_t type);
+  extern f_status_t fll_error_file_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback, const f_string_static_t name, const f_string_static_t operation, const uint8_t type);
 #endif // _di_fll_error_file_print_
 
 /**
@@ -107,7 +107,7 @@ extern "C" {
  *   F_false is returned on successful print of known errors.
  */
 #ifndef _di_fll_error_parameter_integer_print_
-  extern f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback, const f_string_static_t parameter, const f_string_static_t argument);
+  extern f_status_t fll_error_parameter_integer_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback, const f_string_static_t parameter, const f_string_static_t argument);
 #endif // _di_fll_error_parameter_integer_print_
 
 #ifdef __cplusplus
index 4dcaa443f7ed1aefcd18be214d4397e04612e561..01563f07e497baefc1927b5fb47a2394c51f147c 100644 (file)
@@ -6,7 +6,7 @@ extern "C" {
 #endif
 
 #if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
-  f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) {
+  f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback) {
 
     if (status == F_access_denied) {
       if (print.verbosity != f_console_verbosity_quiet_e) {
@@ -244,7 +244,7 @@ extern "C" {
 #endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
 
 #if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
-  void private_fll_error_print_function(const fl_print_t print, const f_string_t function) {
+  void private_fll_error_print_function(const fl_print_t print, const char *function) {
 
     if (function) {
       fl_print_format(" when calling function%] ", print.to.stream, print.context);
index f24b42d2882975f5fe94d2923666bab1c501aa20..a318bd49a5dd3d627595aac186946e53f81f92da 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
  * @see fll_error_file_print()
  */
 #if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
-  extern f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const f_string_t function, const bool fallback) F_attribute_visibility_internal_d;
+  extern f_status_t private_fll_error_print(const fl_print_t print, const f_status_t status, const char *function, const bool fallback) F_attribute_visibility_internal_d;
 #endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
 
 /**
@@ -61,7 +61,7 @@ extern "C" {
  * @see fll_error_file_print()
  */
 #if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
-  void private_fll_error_print_function(const fl_print_t print, const f_string_t function) F_attribute_visibility_internal_d;
+  void private_fll_error_print_function(const fl_print_t print, const char *function) F_attribute_visibility_internal_d;
 #endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
 
 #ifdef __cplusplus
index 55500b5e2cd964b76b70089b3210accb552613bb..b9b94278224f75bede0af26169f52fb5f16e0950 100644 (file)
@@ -82,16 +82,16 @@ extern "C" {
     f_string_t fixed_arguments[arguments.used + 2];
     f_string_static_t program_name = f_string_static_t_initialize;
 
-    const f_string_t last_slash = strrchr(program.used ? program.string : arguments.array[0].string, f_path_separator_s.string[0]);
+    const f_string_t last_slash = (f_string_t) strrchr((program.used ? program.string : arguments.array[0].string), (char) f_path_separator_s.string[0]);
 
     if (last_slash) {
-      program_name.used = strnlen(last_slash + 1, F_path_length_max_d);
+      program_name.used = strnlen((last_slash + 1), F_path_length_max_d);
     }
     else {
       program_name.used = program.used ? program.used : arguments.array[0].used;
     }
 
-    unsigned char program_name_string[program_name.used + 1];
+    f_char_t program_name_string[program_name.used + 1];
     program_name.string = program_name_string;
 
     private_fll_execute_path_arguments_fixate(program.used ? program : arguments.array[0], arguments, last_slash, !program.used, program_name, fixed_arguments);
@@ -187,10 +187,10 @@ extern "C" {
         }
       }
 
-      unsigned char program_path[found->used + 1];
+      f_char_t program_path[found->used + 1];
       program_path[found->used] = 0;
 
-      memcpy(&program_path, found->string, sizeof(unsigned char) * found->used);
+      memcpy(&program_path, found->string, sizeof(f_char_t) * found->used);
 
       f_string_dynamics_resize(0, &paths);
 
@@ -216,10 +216,10 @@ extern "C" {
       }
 
       if (last_slash) {
-        code = execv(program.used ? program.string : arguments.array[0].string, (char **) fixed_arguments);
+        code = execv((program.used ? program.string : arguments.array[0].string), (char **) fixed_arguments);
       }
       else {
-        code = execvp(program.used ? program.string : arguments.array[0].string, (char **) fixed_arguments);
+        code = execvp((program.used ? program.string : arguments.array[0].string), (char **) fixed_arguments);
       }
     }
 
@@ -278,16 +278,16 @@ extern "C" {
     f_string_t fixed_arguments[arguments.used + 2];
     f_string_static_t program_name = f_string_static_t_initialize;
 
-    const f_string_t last_slash = strrchr(program.used ? program.string : arguments.array[0].string, f_path_separator_s.string[0]);
+    const f_string_t last_slash = (f_string_t) strrchr((program.used ? program.string : arguments.array[0].string), (char) f_path_separator_s.string[0]);
 
     if (last_slash) {
-      program_name.used = strnlen(last_slash + 1, F_path_length_max_d);
+      program_name.used = strnlen((last_slash + 1), F_path_length_max_d);
     }
     else {
       program_name.used = program.used ? program.used : arguments.array[0].used;
     }
 
-    unsigned char program_name_string[program_name.used + 1];
+    f_char_t program_name_string[program_name.used + 1];
     program_name.string = program_name_string;
 
     private_fll_execute_path_arguments_fixate(program.used ? program : arguments.array[0], arguments, last_slash, !program.used, program_name, fixed_arguments);
@@ -379,10 +379,10 @@ extern "C" {
         }
       }
 
-      unsigned char program_path[found->used + 1];
+      f_char_t program_path[found->used + 1];
       program_path[found->used] = 0;
 
-      memcpy(&program_path, found->string, sizeof(unsigned char) * found->used);
+      memcpy(&program_path, found->string, sizeof(f_char_t) * found->used);
 
       program_name.string = program_path;
       program_name.used = found->used;
index 0295136ca880cf277f67731332e9f3de896e5619..5c7738d088e46c84035b0db3044f424fcc03c110 100644 (file)
@@ -565,10 +565,10 @@ extern "C" {
 #if !defined(_di_fll_execute_program_)
   void private_fll_execute_path_arguments_fixate(const f_string_static_t program_path, const f_string_statics_t arguments, const f_string_t last_slash, const bool fixated_is, f_string_static_t program_name, f_string_t fixed_arguments[]) {
 
-    memset(program_name.string, 0, sizeof(unsigned char) * (program_name.used + 1));
+    memset(program_name.string, 0, sizeof(f_char_t) * (program_name.used + 1));
     memset(fixed_arguments, 0, sizeof(f_string_t) * (arguments.used + 2));
 
-    memcpy(program_name.string, last_slash ? last_slash + 1 : program_path.string, sizeof(unsigned char) * program_name.used);
+    memcpy(program_name.string, last_slash ? last_slash + 1 : program_path.string, sizeof(f_char_t) * program_name.used);
 
     if (program_name.used) {
       fixed_arguments[0] = program_name.string;
index 598adfcd02705db261e3c6459d742bbcb17767f2..b051a11c7fc325cd00fb33b6d45693988986f15a 100644 (file)
@@ -50,11 +50,11 @@ extern "C" {
 
           path_sub.used = path.used + list[i]->array[j].used + 1;
 
-          unsigned char path_sub_string[path_sub.used + 1];
+          f_char_t path_sub_string[path_sub.used + 1];
           path_sub.string = path_sub_string;
 
-          memcpy(path_sub.string, path.string, sizeof(unsigned char) * path.used);
-          memcpy(path_sub.string + path.used + 1, list[i]->array[j].string, sizeof(unsigned char) * list[i]->array[j].used);
+          memcpy(path_sub.string, path.string, sizeof(f_char_t) * path.used);
+          memcpy(path_sub.string + path.used + 1, list[i]->array[j].string, sizeof(f_char_t) * list[i]->array[j].used);
 
           path_sub.string[path.used] = f_path_separator_s.string[0];
           path_sub.string[path_sub.used] = 0;
@@ -74,11 +74,11 @@ extern "C" {
 
       path_sub.used = path.used + listing.directory.array[i].used + 1;
 
-      unsigned char path_sub_string[path_sub.used + 1];
+      f_char_t path_sub_string[path_sub.used + 1];
       path_sub.string = path_sub_string;
 
-      memcpy(path_sub.string, path.string, sizeof(unsigned char) * path.used);
-      memcpy(path_sub.string + path.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+      memcpy(path_sub.string, path.string, sizeof(f_char_t) * path.used);
+      memcpy(path_sub.string + path.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
       path_sub.string[path.used] = f_path_separator_s.string[0];
       path_sub.string[path_sub.used] = 0;
@@ -152,11 +152,11 @@ extern "C" {
 
           path_sub.used = path.used + list[i]->array[j].used + 1;
 
-          unsigned char path_sub_string[path_sub.used + 1];
+          f_char_t path_sub_string[path_sub.used + 1];
           path_sub.string = path_sub_string;
 
-          memcpy(path_sub.string, path.string, sizeof(unsigned char) * path.used);
-          memcpy(path_sub.string + path.used + 1, list[i]->array[j].string, sizeof(unsigned char) * list[i]->array[j].used);
+          memcpy(path_sub.string, path.string, sizeof(f_char_t) * path.used);
+          memcpy(path_sub.string + path.used + 1, list[i]->array[j].string, sizeof(f_char_t) * list[i]->array[j].used);
 
           path_sub.string[path.used] = f_path_separator_s.string[0];
           path_sub.string[path_sub.used] = 0;
@@ -175,11 +175,11 @@ extern "C" {
 
         path_sub.used = path.used + listing.directory.array[i].used + 1;
 
-        unsigned char path_sub_string[path_sub.used + 1];
+        f_char_t path_sub_string[path_sub.used + 1];
         path_sub.string = path_sub_string;
 
-        memcpy(path_sub.string, path.string, sizeof(unsigned char) * path.used);
-        memcpy(path_sub.string + path.used + 1, listing.directory.array[i].string, sizeof(unsigned char) * listing.directory.array[i].used);
+        memcpy(path_sub.string, path.string, sizeof(f_char_t) * path.used);
+        memcpy(path_sub.string + path.used + 1, listing.directory.array[i].string, sizeof(f_char_t) * listing.directory.array[i].used);
 
         path_sub.string[path.used] = f_path_separator_s.string[0];
         path_sub.string[path_sub.used] = 0;
index 3f695bce2eb1f169e2e74fb84aee3285c0941f25..10ea51098926c5e28635e821bab7f5c4df3a5d71 100644 (file)
@@ -209,11 +209,11 @@ extern "C" {
             }
           }
 
-          memcpy(destination->string + destination->used + i, content.string + i, sizeof(unsigned char) * F_fss_default_block_size_normal_d);
+          memcpy(destination->string + destination->used + i, content.string + i, sizeof(f_char_t) * F_fss_default_block_size_normal_d);
         } // for
 
         if (i < content.used) {
-          memcpy(destination->string + destination->used + i, content.string + i, sizeof(unsigned char) * (content.used - i));
+          memcpy(destination->string + destination->used + i, content.string + i, sizeof(f_char_t) * (content.used - i));
         }
 
         destination->used += content.used;
index f20d602c698200705cf8dad4da6a101c2c7568d5..f5954c5a22fcd22ef4e03560a494943573894489 100644 (file)
@@ -53,8 +53,11 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #ifndef _di_fll_iki_content_escape_
   extern f_status_t fll_iki_content_escape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const escaped);
@@ -81,8 +84,11 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #ifndef _di_fll_iki_content_partial_escape_
   extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const escaped);
@@ -110,8 +116,11 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #ifndef _di_fll_iki_content_partial_unescape_
   extern f_status_t fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
@@ -137,8 +146,11 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #ifndef _di_fll_iki_content_unescape_
   extern f_status_t fll_iki_content_unescape(const f_string_static_t content, const f_string_static_t quote, f_string_dynamic_t * const unescaped);
index b3ee5e8943fc912536ef2da4a75096f2026464ee..a4cfaf603ef5e2bd9916e3e6b512c80de7d64bb7 100644 (file)
@@ -6,13 +6,13 @@ extern "C" {
 #endif
 
 #if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
-  f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const unsigned char quote, f_string_dynamic_t * const escaped) {
+  f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) {
 
     f_status_t status = F_none;
 
     // Ensure escaped is at least the same size as content.
     if (content.used > escaped->size) {
-      macro_f_string_dynamic_t_resize(status, (*escaped), content.used);
+      status = f_string_dynamic_resize(content.used, escaped);
       if (F_status_is_error(status)) return status;
     }
 
@@ -71,13 +71,13 @@ extern "C" {
 #endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
 
 #if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
-  f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const unsigned char quote, f_string_dynamic_t * const unescaped) {
+  f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) {
 
     f_status_t status = F_none;
 
     // Ensure escaped is at least the same size as content.
     if (content.used > unescaped->size) {
-      macro_f_string_dynamic_t_resize(status, (*unescaped), content.used);
+      status = f_string_dynamic_resize(content.used, unescaped);
       if (F_status_is_error(status)) return status;
     }
 
index 3a060a48bab191bcdeeb366dc07ce3439662ec54..a40fd4c987543ca8a051432729a4f6a674f13709 100644 (file)
@@ -36,11 +36,14 @@ extern "C" {
  *
  *   F_parameter (with error bit) if a parameter is invalid.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
-  extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const unsigned char quote, f_string_dynamic_t * const escaped) F_attribute_visibility_internal_d;
+  extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const escaped) F_attribute_visibility_internal_d;
 #endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
 
 /**
@@ -65,11 +68,14 @@ extern "C" {
  *   F_parameter (with error bit) if a parameter is invalid.
  *   F_syntax (with error bit) if the given string is invalid, such as having an undelimited quote.
  *
- *   Errors (with error bit) from: macro_f_string_dynamic_t_resize().
+ *   Errors (with error bit) from: f_string_dynamic_resize().
  *   Errors (with error bit) from: f_string_dynamic_increase_by().
+ *
+ * @see f_string_dynamic_resize()
+ * @see f_string_dynamic_increase_by()
  */
 #if !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
-  extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const unsigned char quote, f_string_dynamic_t * const unescaped) F_attribute_visibility_internal_d;
+  extern f_status_t private_fll_iki_content_partial_unescape(const f_string_static_t content, const f_string_range_t range, const f_char_t quote, f_string_dynamic_t * const unescaped) F_attribute_visibility_internal_d;
 #endif // !defined(_di_fll_iki_content_unescape_) || !defined(_di_fll_iki_content_partial_unescape_)
 
 #ifdef __cplusplus
index 90af010a157508fe973b5fd14204fb337b1172da..3c6aed67f5ca1d73309acd97b681725fa97aaf57 100644 (file)
@@ -18,7 +18,7 @@ extern "C" {
 #endif // _di_fll_print_
 
 #ifndef _di_fll_print_character_
-  f_status_t fll_print_character(const unsigned char character, FILE * const output) {
+  f_status_t fll_print_character(const f_char_t character, FILE * const output) {
 
     flockfile(output);
 
@@ -31,7 +31,7 @@ extern "C" {
 #endif // _di_fll_print_character_
 
 #ifndef _di_fll_print_character_safely_
-  f_status_t fll_print_character_safely(const unsigned char character, FILE * const output) {
+  f_status_t fll_print_character_safely(const f_char_t character, FILE * const output) {
 
     flockfile(output);
 
index d1e467d6794bdf7320605ceab5bdce6b2e0df48c..4edf93b05932282396805fa0d0cd94b8738e13b5 100644 (file)
@@ -72,7 +72,7 @@ extern "C" {
  * @see f_print_character()
  */
 #ifndef _di_fll_print_character_
-  extern f_status_t fll_print_character(const unsigned char character, FILE * const output);
+  extern f_status_t fll_print_character(const f_char_t character, FILE * const output);
 #endif // _di_fll_print_character_
 
 /**
@@ -94,7 +94,7 @@ extern "C" {
  * @see f_print_character_safely()
  */
 #ifndef _di_fll_print_character_safely_
-  extern f_status_t fll_print_character_safely(const unsigned char character, FILE * const output);
+  extern f_status_t fll_print_character_safely(const f_char_t character, FILE * const output);
 #endif // _di_fll_print_character_safely_
 
 /**
index 135bbed201b74d4762e54ac3259dced92a6c8f86..a460303d620bfef01b064666b5a66bc03ee1eef6 100644 (file)
@@ -17,7 +17,7 @@ extern "C" {
 #endif // _di_fll_program_print_help_header_
 
 #ifndef _di_fll_program_print_help_option_
-  f_status_t fll_program_print_help_option(const f_file_t output, const f_color_context_t context, const f_string_static_t option_short, const f_string_static_t option_long, const f_string_static_t symbol_short, const f_string_static_t symbol_long, const f_string_t description) {
+  f_status_t fll_program_print_help_option(const f_file_t output, const f_color_context_t context, const f_string_static_t option_short, const f_string_static_t option_long, const f_string_static_t symbol_short, const f_string_static_t symbol_long, const char *description) {
 
     fl_print_format("%r  %Q%[%Q%]", output.stream, f_string_eol_s, symbol_short, context.set.standout, option_short, context.set.standout);
     fl_print_format(", %Q%[%Q%]  %S", output.stream, symbol_long, context.set.standout, option_long, context.set.standout, description);
@@ -27,7 +27,7 @@ extern "C" {
 #endif // _di_fll_program_print_help_option_
 
 #ifndef _di_fll_program_print_help_option_long_
-  f_status_t fll_program_print_help_option_long(const f_file_t output, const f_color_context_t context, const f_string_static_t option_long, const f_string_static_t symbol_long, const f_string_t description) {
+  f_status_t fll_program_print_help_option_long(const f_file_t output, const f_color_context_t context, const f_string_static_t option_long, const f_string_static_t symbol_long, const char *description) {
 
     fl_print_format("%r      %Q%[%Q%]  %S", output.stream, f_string_eol_s, symbol_long, context.set.standout, option_long, context.set.standout, description);
 
@@ -36,7 +36,7 @@ extern "C" {
 #endif // _di_fll_program_print_help_option_long_
 
 #ifndef _di_fll_program_print_help_option_other_
-  f_status_t fll_program_print_help_option_other(const f_file_t output, const f_color_context_t context, const f_string_static_t option_other, const f_string_t description) {
+  f_status_t fll_program_print_help_option_other(const f_file_t output, const f_color_context_t context, const f_string_static_t option_other, const char *description) {
 
     fl_print_format("%r  %[%Q%]  %S", output.stream, f_string_eol_s, context.set.standout, option_other, context.set.standout, description);
 
index ed7ba6fab5ea5420da93810dcee4efcae7665927..bbf1bf14edd8f1d43181bbe77c633e2f4e9bf36c 100644 (file)
@@ -87,7 +87,7 @@ extern "C" {
  * @see fl_print_format()
  */
 #ifndef _di_fll_program_print_help_option_
-  extern f_status_t fll_program_print_help_option(const f_file_t output, const f_color_context_t context, const f_string_static_t option_short, const f_string_static_t option_long, const f_string_static_t symbol_short, const f_string_static_t symbol_long, const f_string_t description);
+  extern f_status_t fll_program_print_help_option(const f_file_t output, const f_color_context_t context, const f_string_static_t option_short, const f_string_static_t option_long, const f_string_static_t symbol_short, const f_string_static_t symbol_long, const char *description);
 #endif // _di_fll_program_print_help_option_
 
 /**
@@ -113,7 +113,7 @@ extern "C" {
  * @see fl_print_format()
  */
 #ifndef _di_fll_program_print_help_option_long_
-  extern f_status_t fll_program_print_help_option_long(const f_file_t output, const f_color_context_t context, const f_string_static_t option_long, const f_string_static_t symbol_long, const f_string_t description);
+  extern f_status_t fll_program_print_help_option_long(const f_file_t output, const f_color_context_t context, const f_string_static_t option_long, const f_string_static_t symbol_long, const char *description);
 #endif // _di_fll_program_print_help_option_long_
 
 /**
@@ -137,7 +137,7 @@ extern "C" {
  * @see fl_print_format()
  */
 #ifndef _di_fll_program_print_help_option_other_
-  extern f_status_t fll_program_print_help_option_other(const f_file_t output, const f_color_context_t context, const f_string_static_t option_other, const f_string_t description);
+  extern f_status_t fll_program_print_help_option_other(const f_file_t output, const f_color_context_t context, const f_string_static_t option_other, const char *description);
 #endif // _di_fll_program_print_help_option_other_
 
 /**
index 953e0dbb2a204957ee375a59698d21048101356c..21c24749142da22ee8d94923cbbf4d8ac265c4b5 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
       return status;
     }
 
-    #ifndef _di_F_status_boolean_
+    #ifndef _di_f_status_boolean_
       if (fl_string_dynamic_compare(name, f_status_false_s) == F_equal_to) {
         *code = F_false;
 
@@ -37,9 +37,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_boolean_
+    #endif // _di_f_status_boolean_
 
-    #ifndef _di_F_status_signal_
+    #ifndef _di_f_status_signal_
       if (fl_string_dynamic_compare(name, f_status_signal_hangup_s) == F_equal_to) {
         *code = F_signal_hangup;
 
@@ -423,9 +423,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_signal_
+    #endif // _di_f_status_signal_
 
-    #ifndef _di_F_status_basic_
+    #ifndef _di_f_status_basic_
       if (fl_string_dynamic_compare(name, f_status_none_s) == F_equal_to) {
         *code = F_none;
 
@@ -1907,9 +1907,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_basic_
+    #endif // _di_f_status_basic_
 
-    #ifndef _di_F_status_array_
+    #ifndef _di_f_status_array_
       if (fl_string_dynamic_compare(name, f_status_array_s) == F_equal_to) {
         *code = F_array;
 
@@ -1933,9 +1933,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_array_
+    #endif // _di_f_status_array_
 
-    #ifndef _di_F_status_available_
+    #ifndef _di_f_status_available_
       if (fl_string_dynamic_compare(name, f_status_available_s) == F_equal_to) {
         *code = F_available;
 
@@ -1989,9 +1989,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_available_
+    #endif // _di_f_status_available_
 
-    #ifndef _di_F_status_busy_
+    #ifndef _di_f_status_busy_
       if (fl_string_dynamic_compare(name, f_status_busy_s) == F_equal_to) {
         *code = F_busy;
 
@@ -2045,9 +2045,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_busy_
+    #endif // _di_f_status_busy_
 
-    #ifndef _di_F_status_network_
+    #ifndef _di_f_status_network_
       if (fl_string_dynamic_compare(name, f_status_network_s) == F_equal_to) {
         *code = F_network;
 
@@ -2179,9 +2179,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_network_
+    #endif // _di_f_status_network_
 
-    #ifndef _di_F_status_number_
+    #ifndef _di_f_status_number_
       if (fl_string_dynamic_compare(name, f_status_number_s) == F_equal_to) {
         *code = F_number;
 
@@ -2283,9 +2283,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_number_
+    #endif // _di_f_status_number_
 
-    #ifndef _di_F_status_buffer_
+    #ifndef _di_f_status_buffer_
       if (fl_string_dynamic_compare(name, f_status_buffer_s) == F_equal_to) {
         *code = F_buffer;
 
@@ -2579,9 +2579,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_buffer_
+    #endif // _di_f_status_buffer_
 
-    #ifndef _di_F_status_process_
+    #ifndef _di_f_status_process_
       if (fl_string_dynamic_compare(name, f_status_process_s) == F_equal_to) {
         *code = F_process;
 
@@ -2599,9 +2599,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_process_
+    #endif // _di_f_status_process_
 
-    #ifndef _di_F_status_file_
+    #ifndef _di_f_status_file_
       if (fl_string_dynamic_compare(name, f_status_file_s) == F_equal_to) {
         *code = F_file;
 
@@ -2853,9 +2853,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_file_
+    #endif // _di_f_status_file_
 
-    #ifndef _di_F_status_filesystem_
+    #ifndef _di_f_status_filesystem_
       if (fl_string_dynamic_compare(name, f_status_filesystem_s) == F_equal_to) {
         *code = F_filesystem;
 
@@ -2879,9 +2879,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_filesystem_
+    #endif // _di_f_status_filesystem_
 
-    #ifndef _di_F_status_directory_
+    #ifndef _di_f_status_directory_
       if (fl_string_dynamic_compare(name, f_status_directory_s) == F_equal_to) {
         *code = F_directory;
 
@@ -3001,9 +3001,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_directory_
+    #endif // _di_f_status_directory_
 
-    #ifndef _di_F_status_socket_
+    #ifndef _di_f_status_socket_
       if (fl_string_dynamic_compare(name, f_status_socket_s) == F_equal_to) {
         *code = F_socket;
 
@@ -3039,9 +3039,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_socket_
+    #endif // _di_f_status_socket_
 
-    #ifndef _di_F_status_compare_
+    #ifndef _di_f_status_compare_
       if (fl_string_dynamic_compare(name, f_status_equal_to_s) == F_equal_to) {
         *code = F_equal_to;
 
@@ -3065,9 +3065,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_compare_
+    #endif // _di_f_status_compare_
 
-    #ifndef _di_F_status_access_
+    #ifndef _di_f_status_access_
       if (fl_string_dynamic_compare(name, f_status_access_s) == F_equal_to) {
         *code = F_access;
 
@@ -3193,9 +3193,9 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_access_
+    #endif // _di_f_status_access_
 
-    #ifndef _di_F_status_terminal_
+    #ifndef _di_f_status_terminal_
       if (fl_string_dynamic_compare(name, f_status_terminal_s) == F_equal_to) {
         *code = F_terminal;
 
@@ -3255,7 +3255,7 @@ extern "C" {
 
         return F_none;
       }
-    #endif // _di_F_status_terminal_
+    #endif // _di_f_status_terminal_
 
     if (fl_string_dynamic_compare(name, f_status_status_code_last_s) == F_equal_to) {
       *code = F_status_code_last;
index 2ee19923f1b212d6355facffa148eca0fe58676d..02dc1a0e12e6dd83fe3361ea5492fa7a7f531232 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   byte_dump_main_t data = byte_dump_main_t_initialize;
 
   if (f_pipe_input_exists()) {
index 4ee0803c15f4790ff5c1319eef8a233ee41f355d..7a3ce5f0afaecbb4dc60e5607e343e042e147000 100644 (file)
@@ -12,8 +12,8 @@ extern "C" {
     f_status_t status = F_none;
 
     uint64_t position = 0;
-    unsigned char byte = 0;
-    unsigned char offset = 0;
+    f_char_t byte = 0;
+    f_char_t offset = 0;
     int byte_get = 0;
 
     int8_t width_utf = -1;
@@ -41,9 +41,9 @@ extern "C" {
         byte_get = fseek(file.stream, main->first, SEEK_SET);
       }
       else {
-        unsigned char skip[main->first];
+        f_char_t skip[main->first];
 
-        byte_get = fread(skip, sizeof(unsigned char), main->first, file.stream);
+        byte_get = fread(skip, sizeof(f_char_t), main->first, file.stream);
       }
     }
 
@@ -53,8 +53,8 @@ extern "C" {
     characters.size = main->width;
 
     // Record when a character is invalid.
-    unsigned char invalid[main->width];
-    memset(&invalid, 0, sizeof(unsigned char) * main->width);
+    f_char_t invalid[main->width];
+    memset(&invalid, 0, sizeof(f_char_t) * main->width);
 
     if (byte_get >= 0) {
       for (uint16_t signal_check = 0; ; ) {
@@ -71,7 +71,7 @@ extern "C" {
 
         if (byte_get < 0) break;
 
-        byte = (unsigned char) byte_get;
+        byte = (f_char_t) byte_get;
 
         // Storing the next character is designated by width_utf == -1.
         if (width_utf == -1) {
@@ -82,7 +82,7 @@ extern "C" {
           if (character_reset) {
             characters.used = 0;
             character_reset = F_false;
-            memset(&invalid, 0, sizeof(unsigned char) * main->width);
+            memset(&invalid, 0, sizeof(f_char_t) * main->width);
           }
 
           character_current = characters.used++;
@@ -304,9 +304,9 @@ extern "C" {
 #endif // _di_byte_dump_file_
 
 #ifndef _di_byte_dump_print_character_fragment_
-  bool byte_dump_print_character_fragment(byte_dump_main_t * const main, const f_utf_string_static_t characters, const unsigned char invalid[], const uint8_t width_utf, const unsigned char byte_current, byte_dump_previous_t *previous, byte_dump_cell_t *cell, unsigned char *offset) {
+  bool byte_dump_print_character_fragment(byte_dump_main_t * const main, const f_utf_string_static_t characters, const f_char_t invalid[], const uint8_t width_utf, const f_char_t byte_current, byte_dump_previous_t *previous, byte_dump_cell_t *cell, f_char_t *offset) {
 
-    unsigned char byte = 0;
+    f_char_t byte = 0;
 
     bool reset = F_false;
 
@@ -329,7 +329,7 @@ extern "C" {
       fl_print_format("%[%016_UL%] ", main->output.to.stream, main->context.set.notable, cell->row, main->context.set.notable);
 
       if (*offset) {
-        unsigned char offset_to_print = *offset;
+        f_char_t offset_to_print = *offset;
 
         // Pad the buffer with spaces to hide any skipped bytes (skipped via --first).
         while (offset_to_print && cell->column < main->width) {
@@ -565,14 +565,14 @@ extern "C" {
 #endif // _di_byte_dump_print_character_fragment_
 
 #ifndef _di_byte_dump_print_text_
-  void byte_dump_print_text(byte_dump_main_t * const main, const f_utf_string_static_t characters, const unsigned char invalid[], byte_dump_previous_t *previous, unsigned char *offset) {
+  void byte_dump_print_text(byte_dump_main_t * const main, const f_utf_string_static_t characters, const f_char_t invalid[], byte_dump_previous_t *previous, f_char_t *offset) {
 
-    unsigned char c = 0;
+    f_char_t c = 0;
     uint8_t at = 0;
     uint8_t width_utf = 0;
     bool print = F_true;
 
-    unsigned char byte[5] = { 0, 0, 0, 0, 0 };
+    f_char_t byte[5] = { 0, 0, 0, 0, 0 };
 
     fl_print_format("  %[%r%] ", main->output.to.stream, main->context.set.notable, byte_dump_character_wall_s, main->context.set.notable);
 
index bd9722cfbbf854a2803972894bef179695f791b3..6dac3d63f093e6ccf51e02c38958d96150fd6678 100644 (file)
@@ -71,7 +71,7 @@ extern "C" {
  * @see byte_dump_print_text()
  */
 #ifndef _di_byte_dump_print_character_fragment_
-  extern bool byte_dump_print_character_fragment(byte_dump_main_t * const main, const f_utf_string_static_t characters, const unsigned char invalid[], const uint8_t width_utf, const unsigned char byte_current, byte_dump_previous_t *previous, byte_dump_cell_t *cell, unsigned char *offset) F_attribute_visibility_internal_d;
+  extern bool byte_dump_print_character_fragment(byte_dump_main_t * const main, const f_utf_string_static_t characters, const f_char_t invalid[], const uint8_t width_utf, const f_char_t byte_current, byte_dump_previous_t *previous, byte_dump_cell_t *cell, f_char_t *offset) F_attribute_visibility_internal_d;
 #endif // _di_byte_dump_print_character_fragment_
 
 /**
@@ -93,7 +93,7 @@ extern "C" {
  *   Will be reduced to 0 once used.
  */
 #ifndef _di_byte_dump_print_text_
-  extern void byte_dump_print_text(byte_dump_main_t * const main, const f_utf_string_static_t characters, const unsigned char invalid[], byte_dump_previous_t *previous, unsigned char *offset) F_attribute_visibility_internal_d;
+  extern void byte_dump_print_text(byte_dump_main_t * const main, const f_utf_string_static_t characters, const f_char_t invalid[], byte_dump_previous_t *previous, f_char_t *offset) F_attribute_visibility_internal_d;
 #endif // _di_byte_dump_print_text_
 
 #ifdef __cplusplus
index 37aa9ddffaa8efe282701d9db69f138daa6a6ab4..135a40bcd91aaf6c6412e3ad8b5aec24f8d9dd62 100644 (file)
@@ -318,7 +318,7 @@ extern "C" {
 #ifndef _di_controller_control_respond_error_string_
   f_status_t controller_control_respond_error_string(const controller_global_t * const global, controller_control_t * const control, const f_status_t status, const f_string_t message) {
 
-    const f_string_static_t string = macro_f_string_static_t_initialize2(message, strlen((const char *) message));
+    const f_string_static_t string = macro_f_string_static_t_initialize2(message, strlen(message));
 
     return controller_control_respond_error(global, control, status, string);
   }
index 06bff78e6764147ce72abc870b8f2e5b28404e5d..600d1e8bc10277d942329eacc80e3184a83dbe6e 100644 (file)
@@ -16,7 +16,7 @@
  */
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fake_main_t data = fake_main_t_initialize;
 
   fll_program_standard_setup(&data.signal);
index d4ec735580485846b5793930056f9d660ff35c45..140563abc9e36f99035696be2782b6603f111b49 100644 (file)
@@ -83,11 +83,11 @@ extern "C" {
       }
     }
 
-    unsigned char parameter_file_name_string[parameter_file_name.used + 1];
-    unsigned char parameter_file_name_major_string[parameter_file_name_major.used + 1];
-    unsigned char parameter_file_name_minor_string[parameter_file_name_minor.used + 1];
-    unsigned char parameter_file_name_micro_string[parameter_file_name_micro.used + 1];
-    unsigned char parameter_file_name_nano_string[parameter_file_name_nano.used + 1];
+    f_char_t parameter_file_name_string[parameter_file_name.used + 1];
+    f_char_t parameter_file_name_major_string[parameter_file_name_major.used + 1];
+    f_char_t parameter_file_name_minor_string[parameter_file_name_minor.used + 1];
+    f_char_t parameter_file_name_micro_string[parameter_file_name_micro.used + 1];
+    f_char_t parameter_file_name_nano_string[parameter_file_name_nano.used + 1];
 
     parameter_file_name.string = parameter_file_name_string;
     parameter_file_name_major.string = parameter_file_name_major_string;
@@ -114,21 +114,21 @@ extern "C" {
 
       for (; i < strings_length; ++i) {
 
-        memcpy(strings[i]->string, fake_build_parameter_library_name_prefix_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_prefix_s.used);
+        memcpy(strings[i]->string, fake_build_parameter_library_name_prefix_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_prefix_s.used);
 
         strings[i]->used += fake_build_parameter_library_name_prefix_s.used;
       } // for
 
       for (i = 0; i < strings_length; ++i) {
 
-        memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+        memcpy(strings[i]->string + strings[i]->used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
 
         strings[i]->used += data_build->setting.build_name.used;
       } // for
 
       for (i = 0; i < strings_length; ++i) {
 
-        memcpy(strings[i]->string + strings[i]->used, fake_build_parameter_library_name_suffix_shared_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_suffix_shared_s.used);
+        memcpy(strings[i]->string + strings[i]->used, fake_build_parameter_library_name_suffix_shared_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_suffix_shared_s.used);
 
         strings[i]->used += fake_build_parameter_library_name_suffix_shared_s.used;
       } // for
@@ -137,7 +137,7 @@ extern "C" {
         if (data_build->setting.version_major_prefix.used) {
           for (i = 1; i < strings_length; ++i) {
 
-            memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_major_prefix.string, sizeof(unsigned char) * data_build->setting.version_major_prefix.used);
+            memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_major_prefix.string, sizeof(f_char_t) * data_build->setting.version_major_prefix.used);
 
             strings[i]->used += data_build->setting.version_major_prefix.used;
           } // for
@@ -145,7 +145,7 @@ extern "C" {
 
         for (i = 1; i < strings_length; ++i) {
 
-          memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_major.string, sizeof(unsigned char) * data_build->setting.version_major.used);
+          memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_major.string, sizeof(f_char_t) * data_build->setting.version_major.used);
 
           strings[i]->used += data_build->setting.version_major.used;
         } // for
@@ -154,7 +154,7 @@ extern "C" {
           if (data_build->setting.version_minor_prefix.used) {
             for (i = 2; i < strings_length; ++i) {
 
-              memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_minor_prefix.string, sizeof(unsigned char) * data_build->setting.version_minor_prefix.used);
+              memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_minor_prefix.string, sizeof(f_char_t) * data_build->setting.version_minor_prefix.used);
 
               strings[i]->used += data_build->setting.version_minor_prefix.used;
             } // for
@@ -162,7 +162,7 @@ extern "C" {
 
           for (i = 2; i < strings_length; ++i) {
 
-            memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_minor.string, sizeof(unsigned char) * data_build->setting.version_minor.used);
+            memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_minor.string, sizeof(f_char_t) * data_build->setting.version_minor.used);
 
             strings[i]->used += data_build->setting.version_minor.used;
           } // for
@@ -171,7 +171,7 @@ extern "C" {
             if (data_build->setting.version_micro_prefix.used) {
               for (i = 3; i < strings_length; ++i) {
 
-                memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_micro_prefix.string, sizeof(unsigned char) * data_build->setting.version_micro_prefix.used);
+                memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_micro_prefix.string, sizeof(f_char_t) * data_build->setting.version_micro_prefix.used);
 
                 strings[i]->used += data_build->setting.version_micro_prefix.used;
               } // for
@@ -179,7 +179,7 @@ extern "C" {
 
             for (i = 3; i < strings_length; ++i) {
 
-              memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_micro.string, sizeof(unsigned char) * data_build->setting.version_micro.used);
+              memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_micro.string, sizeof(f_char_t) * data_build->setting.version_micro.used);
 
               strings[i]->used += data_build->setting.version_micro.used;
             } // for
@@ -188,7 +188,7 @@ extern "C" {
               if (data_build->setting.version_nano_prefix.used) {
                 for (i = 4; i < strings_length; ++i) {
 
-                  memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_nano_prefix.string, sizeof(unsigned char) * data_build->setting.version_nano_prefix.used);
+                  memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_nano_prefix.string, sizeof(f_char_t) * data_build->setting.version_nano_prefix.used);
 
                   strings[i]->used += data_build->setting.version_nano_prefix.used;
                 } // for
@@ -196,7 +196,7 @@ extern "C" {
 
               for (i = 4; i < strings_length; ++i) {
 
-                memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_nano.string, sizeof(unsigned char) * data_build->setting.version_nano.used);
+                memcpy(strings[i]->string + strings[i]->used, data_build->setting.version_nano.string, sizeof(f_char_t) * data_build->setting.version_nano.used);
 
                 strings[i]->used += data_build->setting.version_nano.used;
               } // for
@@ -245,8 +245,8 @@ extern "C" {
         parameter_linker.used += parameter_file_name_nano.used;
       }
 
-      unsigned char parameter_file_path_string[parameter_file_path.used + 1];
-      unsigned char parameter_linker_string[parameter_linker.used + 1];
+      f_char_t parameter_file_path_string[parameter_file_path.used + 1];
+      f_char_t parameter_linker_string[parameter_linker.used + 1];
 
       parameter_file_path.string = parameter_file_path_string;
       parameter_linker.string = parameter_linker_string;
@@ -254,33 +254,33 @@ extern "C" {
       parameter_file_path_string[parameter_file_path.used] = 0;
       parameter_linker_string[parameter_linker.used] = 0;
 
-      memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
-      memcpy(parameter_linker_string, fake_build_parameter_library_shared_prefix_s.string, sizeof(unsigned char) * fake_build_parameter_library_shared_prefix_s.used);
+      memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
+      memcpy(parameter_linker_string, fake_build_parameter_library_shared_prefix_s.string, sizeof(f_char_t) * fake_build_parameter_library_shared_prefix_s.used);
 
       if (data_build->setting.version_file == fake_build_version_type_major_e) {
-        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_major_string, sizeof(unsigned char) * parameter_file_name_major.used);
+        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_major_string, sizeof(f_char_t) * parameter_file_name_major.used);
       }
       else if (data_build->setting.version_file == fake_build_version_type_minor_e) {
-        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_minor_string, sizeof(unsigned char) * parameter_file_name_minor.used);
+        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_minor_string, sizeof(f_char_t) * parameter_file_name_minor.used);
       }
       else if (data_build->setting.version_file == fake_build_version_type_micro_e) {
-        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_micro_string, sizeof(unsigned char) * parameter_file_name_micro.used);
+        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_micro_string, sizeof(f_char_t) * parameter_file_name_micro.used);
       }
       else if (data_build->setting.version_file == fake_build_version_type_nano_e) {
-        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_nano_string, sizeof(unsigned char) * parameter_file_name_nano.used);
+        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_nano_string, sizeof(f_char_t) * parameter_file_name_nano.used);
       }
 
       if (data_build->setting.version_target == fake_build_version_type_major_e) {
-        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_major_string, sizeof(unsigned char) * parameter_file_name_major.used);
+        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_major_string, sizeof(f_char_t) * parameter_file_name_major.used);
       }
       else if (data_build->setting.version_target == fake_build_version_type_minor_e) {
-        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_minor_string, sizeof(unsigned char) * parameter_file_name_minor.used);
+        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_minor_string, sizeof(f_char_t) * parameter_file_name_minor.used);
       }
       else if (data_build->setting.version_target == fake_build_version_type_micro_e) {
-        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_micro_string, sizeof(unsigned char) * parameter_file_name_micro.used);
+        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_micro_string, sizeof(f_char_t) * parameter_file_name_micro.used);
       }
       else if (data_build->setting.version_target == fake_build_version_type_nano_e) {
-        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_nano_string, sizeof(unsigned char) * parameter_file_name_nano.used);
+        memcpy(parameter_linker_string + fake_build_parameter_library_shared_prefix_s.used, parameter_file_name_nano_string, sizeof(f_char_t) * parameter_file_name_nano.used);
       }
 
       const f_string_static_t values[] = {
@@ -322,12 +322,12 @@ extern "C" {
       f_string_static_t parameter_file_path = f_string_static_t_initialize;
       parameter_file_path.used = main->path_build_libraries_shared.used + parameter_file_name.used;
 
-      unsigned char parameter_file_path_string[parameter_file_path.used + 1];
+      f_char_t parameter_file_path_string[parameter_file_path.used + 1];
       parameter_file_path.string = parameter_file_path_string;
       parameter_file_path_string[parameter_file_path.used] = 0;
 
-      memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
-      memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name.string, sizeof(unsigned char) * parameter_file_name.used);
+      memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
+      memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name.string, sizeof(f_char_t) * parameter_file_name.used);
 
       *status = f_file_link(parameter_file_name_major, parameter_file_path);
 
@@ -353,12 +353,12 @@ extern "C" {
       {
         parameter_file_path.used = main->path_build_libraries_shared.used + parameter_file_name_major.used;
 
-        unsigned char parameter_file_path_string[parameter_file_path.used + 1];
+        f_char_t parameter_file_path_string[parameter_file_path.used + 1];
         parameter_file_path.string = parameter_file_path_string;
         parameter_file_path_string[parameter_file_path.used] = 0;
 
-        memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
-        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_major.string, sizeof(unsigned char) * parameter_file_name_major.used);
+        memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
+        memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_major.string, sizeof(f_char_t) * parameter_file_name_major.used);
 
         *status = f_file_link(parameter_file_name_minor, parameter_file_path);
 
@@ -382,12 +382,12 @@ extern "C" {
         {
           parameter_file_path.used = main->path_build_libraries_shared.used + parameter_file_name_minor.used;
 
-          unsigned char parameter_file_path_string[parameter_file_path.used + 1];
+          f_char_t parameter_file_path_string[parameter_file_path.used + 1];
           parameter_file_path.string = parameter_file_path_string;
           parameter_file_path_string[parameter_file_path.used] = 0;
 
-          memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
-          memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_minor.string, sizeof(unsigned char) * parameter_file_name_minor.used);
+          memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
+          memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_minor.string, sizeof(f_char_t) * parameter_file_name_minor.used);
 
           *status = f_file_link(parameter_file_name_micro, parameter_file_path);
 
@@ -410,12 +410,12 @@ extern "C" {
         if (data_build->setting.version_file != fake_build_version_type_micro_e && parameter_file_name_micro.used) {
           parameter_file_path.used = main->path_build_libraries_shared.used + parameter_file_name_micro.used;
 
-          unsigned char parameter_file_path_string[parameter_file_path.used + 1];
+          f_char_t parameter_file_path_string[parameter_file_path.used + 1];
           parameter_file_path.string = parameter_file_path_string;
           parameter_file_path_string[parameter_file_path.used] = 0;
 
-          memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
-          memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_micro.string, sizeof(unsigned char) * parameter_file_name_micro.used);
+          memcpy(parameter_file_path_string, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
+          memcpy(parameter_file_path_string + main->path_build_libraries_shared.used, parameter_file_name_micro.string, sizeof(f_char_t) * parameter_file_name_micro.used);
 
           *status = f_file_link(parameter_file_name_nano, parameter_file_path);
 
@@ -472,21 +472,21 @@ extern "C" {
       destination.used = main->path_build_libraries_static.used + fake_build_parameter_library_name_prefix_s.used;
       destination.used += data_build->setting.build_name.used + fake_build_parameter_library_name_suffix_static_s.used;
 
-      unsigned char destination_string[destination.used + 1];
+      f_char_t destination_string[destination.used + 1];
       destination.string = destination_string;
       destination_string[destination.used] = 0;
       destination.used = 0;
 
-      memcpy(destination_string, main->path_build_libraries_static.string, sizeof(unsigned char) * main->path_build_libraries_static.used);
+      memcpy(destination_string, main->path_build_libraries_static.string, sizeof(f_char_t) * main->path_build_libraries_static.used);
       destination.used += main->path_build_libraries_static.used;
 
-      memcpy(destination_string + destination.used, fake_build_parameter_library_name_prefix_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_prefix_s.used);
+      memcpy(destination_string + destination.used, fake_build_parameter_library_name_prefix_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_prefix_s.used);
       destination.used += fake_build_parameter_library_name_prefix_s.used;
 
-      memcpy(destination_string + destination.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+      memcpy(destination_string + destination.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
       destination.used += data_build->setting.build_name.used;
 
-      memcpy(destination_string + destination.used, fake_build_parameter_library_name_suffix_static_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_suffix_static_s.used);
+      memcpy(destination_string + destination.used, fake_build_parameter_library_name_suffix_static_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_suffix_static_s.used);
       destination.used += fake_build_parameter_library_name_suffix_static_s.used;
 
       *status = fll_execute_arguments_add(destination, &arguments);
@@ -546,19 +546,19 @@ extern "C" {
             source.used = main->path_build_objects.used + file_name.used + fake_build_parameter_object_name_suffix_s.used;
           }
 
-          unsigned char source_string[source.used + 1];
+          f_char_t source_string[source.used + 1];
           source.string = source_string;
           source_string[source.used] = 0;
 
           if (source_path.used) {
-            memcpy(source_string, source_path.string, sizeof(unsigned char) * source_path.used);
-            memcpy(source_string + source_path.used, file_name.string, sizeof(unsigned char) * file_name.used);
-            memcpy(source_string + source_path.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+            memcpy(source_string, source_path.string, sizeof(f_char_t) * source_path.used);
+            memcpy(source_string + source_path.used, file_name.string, sizeof(f_char_t) * file_name.used);
+            memcpy(source_string + source_path.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
           }
           else {
-            memcpy(source_string, main->path_build_objects.string, sizeof(unsigned char) * main->path_build_objects.used);
-            memcpy(source_string + main->path_build_objects.used, file_name.string, sizeof(unsigned char) * file_name.used);
-            memcpy(source_string + main->path_build_objects.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+            memcpy(source_string, main->path_build_objects.string, sizeof(f_char_t) * main->path_build_objects.used);
+            memcpy(source_string + main->path_build_objects.used, file_name.string, sizeof(f_char_t) * file_name.used);
+            memcpy(source_string + main->path_build_objects.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
           }
 
           *status = fll_execute_arguments_add(source, &arguments);
index b583528ae660f33cbf676003f5e4a299e78fc950..1699d0fa3cd810607139112f18fdc4769ca47ec9 100644 (file)
@@ -84,7 +84,7 @@ extern "C" {
     f_string_static_t path_file = f_string_static_t_initialize;
     path_file.used = main->path_data_build.used + setting_file.used;
 
-    char path_file_string[path_file.used + 1];
+    f_char_t path_file_string[path_file.used + 1];
     path_file.string = path_file_string;
     path_file_string[path_file.used] = 0;
 
@@ -95,8 +95,8 @@ extern "C" {
       f_fss_contents_t contents = f_fss_contents_t_initialize;
 
       if (setting_file.used) {
-        memcpy(path_file_string, main->path_data_build.string, sizeof(unsigned char) * main->path_data_build.used);
-        memcpy(path_file_string + main->path_data_build.used, setting_file.string, sizeof(unsigned char) * setting_file.used);
+        memcpy(path_file_string, main->path_data_build.string, sizeof(f_char_t) * main->path_data_build.used);
+        memcpy(path_file_string + main->path_data_build.used, setting_file.string, sizeof(f_char_t) * setting_file.used);
 
         *status = fake_file_buffer(main, path_file, &buffer);
       }
@@ -504,7 +504,7 @@ extern "C" {
       F_false,
     };
 
-    f_string_t function = "fll_fss_snatch_apart";
+    char *function = "fll_fss_snatch_apart";
 
     *status = fll_fss_snatch_apart(buffer, objects, contents, settings_name, fake_build_setting_total_d, settings_value, settings_matches, 0);
 
index 5453bfc5f75abb33059433691876fbf5d5e18218..e78d5db4dd2968fea1a97a12ea4c456c0bf1a0f5 100644 (file)
@@ -47,13 +47,13 @@ extern "C" {
       f_string_static_t parameter_file_name_path = f_string_static_t_initialize;
       parameter_file_name_path.used = main->path_build_objects_shared.used + data_build->setting.build_name.used + fake_build_parameter_object_name_suffix_s.used;
 
-      unsigned char parameter_file_name_path_string[parameter_file_name_path.used + 1];
+      f_char_t parameter_file_name_path_string[parameter_file_name_path.used + 1];
       parameter_file_name_path.string = parameter_file_name_path_string;
       parameter_file_name_path_string[parameter_file_name_path.used] = 0;
 
-      memcpy(parameter_file_name_path_string, main->path_build_objects_shared.string, sizeof(unsigned char) * main->path_build_objects_shared.used);
-      memcpy(parameter_file_name_path_string + main->path_build_objects_shared.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
-      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used + data_build->setting.build_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+      memcpy(parameter_file_name_path_string, main->path_build_objects_shared.string, sizeof(f_char_t) * main->path_build_objects_shared.used);
+      memcpy(parameter_file_name_path_string + main->path_build_objects_shared.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
+      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used + data_build->setting.build_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
 
       const f_string_static_t values[] = {
         fake_build_parameter_object_compile_s,
@@ -118,13 +118,13 @@ extern "C" {
       f_string_static_t parameter_file_name_path = f_string_static_t_initialize;
       parameter_file_name_path.used = main->path_build_objects_static.used + data_build->setting.build_name.used + fake_build_parameter_object_name_suffix_s.used;
 
-      unsigned char parameter_file_name_path_string[parameter_file_name_path.used + 1];
+      f_char_t parameter_file_name_path_string[parameter_file_name_path.used + 1];
       parameter_file_name_path.string = parameter_file_name_path_string;
       parameter_file_name_path_string[parameter_file_name_path.used] = 0;
 
-      memcpy(parameter_file_name_path_string, main->path_build_objects_static.string, sizeof(unsigned char) * main->path_build_objects_static.used);
-      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
-      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used + data_build->setting.build_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+      memcpy(parameter_file_name_path_string, main->path_build_objects_static.string, sizeof(f_char_t) * main->path_build_objects_static.used);
+      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
+      memcpy(parameter_file_name_path_string + main->path_build_objects_static.used + data_build->setting.build_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
 
       const f_string_static_t values[] = {
         fake_build_parameter_object_compile_s,
index 842257131ef84f51af347f6291312cf0a9890b71..4dedb70e47faad855e52798a97eed7f76b607410 100644 (file)
@@ -59,12 +59,12 @@ extern "C" {
 
         fake_build_path_source_length(main, data_build, &data_build->setting.path_sources, &source);
 
-        char source_string[source.used + sources[i]->array[j].used + 1];
+        f_char_t source_string[source.used + sources[i]->array[j].used + 1];
         source.string = source_string;
 
         fake_build_path_source_string(main, data_build, &data_build->setting.path_sources, &source);
 
-        memcpy(source_string + source.used, sources[i]->array[j].string, sizeof(unsigned char) * sources[i]->array[j].used);
+        memcpy(source_string + source.used, sources[i]->array[j].string, sizeof(f_char_t) * sources[i]->array[j].used);
         source.used += sources[i]->array[j].used;
         source.string[source.used] = 0;
 
@@ -156,19 +156,19 @@ extern "C" {
           destination.used = main->path_build_objects.used + file_name.used + fake_build_parameter_object_name_suffix_s.used;
         }
 
-        char destination_string[destination.used + 1];
+        f_char_t destination_string[destination.used + 1];
         destination.string = destination_string;
         destination_string[destination.used] = 0;
 
         if (destination_path.used) {
-          memcpy(destination_string, destination_path.string, sizeof(unsigned char) * destination_path.used);
-          memcpy(destination_string + destination_path.used, file_name.string, sizeof(unsigned char) * file_name.used);
-          memcpy(destination_string + destination_path.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+          memcpy(destination_string, destination_path.string, sizeof(f_char_t) * destination_path.used);
+          memcpy(destination_string + destination_path.used, file_name.string, sizeof(f_char_t) * file_name.used);
+          memcpy(destination_string + destination_path.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
         }
         else {
-          memcpy(destination_string, main->path_build_objects.string, sizeof(unsigned char) * main->path_build_objects.used);
-          memcpy(destination_string + main->path_build_objects.used, file_name.string, sizeof(unsigned char) * file_name.used);
-          memcpy(destination_string + main->path_build_objects.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(unsigned char) * fake_build_parameter_object_name_suffix_s.used);
+          memcpy(destination_string, main->path_build_objects.string, sizeof(f_char_t) * main->path_build_objects.used);
+          memcpy(destination_string + main->path_build_objects.used, file_name.string, sizeof(f_char_t) * file_name.used);
+          memcpy(destination_string + main->path_build_objects.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
         }
 
         const f_string_static_t values[] = {
index 54a4f35b65afbfb40e9a6fbb1112b15775c50be0..835987908cb2e486730aa25112a9316da549150d 100644 (file)
@@ -57,12 +57,12 @@ extern "C" {
       f_string_static_t parameter_file_name_path = f_string_static_t_initialize;
       parameter_file_name_path.used = main->path_build_programs_shared.used + data_build->setting.build_name.used;
 
-      unsigned char parameter_file_name_path_string[parameter_file_name_path.used + 1];
+      f_char_t parameter_file_name_path_string[parameter_file_name_path.used + 1];
       parameter_file_name_path.string = parameter_file_name_path_string;
       parameter_file_name_path_string[parameter_file_name_path.used] = 0;
 
-      memcpy(parameter_file_name_path_string, main->path_build_programs_shared.string, sizeof(unsigned char) * main->path_build_programs_shared.used);
-      memcpy(parameter_file_name_path_string + main->path_build_programs_shared.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+      memcpy(parameter_file_name_path_string, main->path_build_programs_shared.string, sizeof(f_char_t) * main->path_build_programs_shared.used);
+      memcpy(parameter_file_name_path_string + main->path_build_programs_shared.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
 
       const f_string_static_t values[] = {
         fake_build_parameter_library_output_s,
@@ -83,12 +83,12 @@ extern "C" {
       f_string_static_t link_project_library = f_string_static_t_initialize;
       link_project_library.used = fake_build_parameter_library_link_file_s.used + data_build->setting.build_name.used;
 
-      unsigned char link_project_library_string[link_project_library.used + 1];
+      f_char_t link_project_library_string[link_project_library.used + 1];
       link_project_library.string = link_project_library_string;
       link_project_library_string[link_project_library.used] = 0;
 
-      memcpy(link_project_library_string, fake_build_parameter_library_link_file_s.string, sizeof(unsigned char) * fake_build_parameter_library_link_file_s.used);
-      memcpy(link_project_library_string + fake_build_parameter_library_link_file_s.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+      memcpy(link_project_library_string, fake_build_parameter_library_link_file_s.string, sizeof(f_char_t) * fake_build_parameter_library_link_file_s.used);
+      memcpy(link_project_library_string + fake_build_parameter_library_link_file_s.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
 
       *status = fll_execute_arguments_add(link_project_library, &arguments);
     }
@@ -151,35 +151,35 @@ extern "C" {
       f_string_static_t source_library = f_string_static_t_initialize;
       source_library.used = main->path_build_libraries_static.used + fake_build_parameter_library_name_prefix_s.used + data_build->setting.build_name.used + fake_build_parameter_library_name_suffix_static_s.used;
 
-      unsigned char source_library_string[source_library.used + 1];
+      f_char_t source_library_string[source_library.used + 1];
       source_library.string = source_library_string;
       source_library_string[source_library.used] = 0;
       source_library.used = 0;
 
       // Only include the library if there are sources that would result in it being built.
       if (data_build->setting.build_sources_library.used) {
-        memcpy(source_library_string, main->path_build_libraries_static.string, sizeof(unsigned char) * main->path_build_libraries_static.used);
+        memcpy(source_library_string, main->path_build_libraries_static.string, sizeof(f_char_t) * main->path_build_libraries_static.used);
         source_library.used += main->path_build_libraries_static.used;
 
-        memcpy(source_library_string + source_library.used, fake_build_parameter_library_name_prefix_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_prefix_s.used);
+        memcpy(source_library_string + source_library.used, fake_build_parameter_library_name_prefix_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_prefix_s.used);
         source_library.used += fake_build_parameter_library_name_prefix_s.used;
 
-        memcpy(source_library_string + source_library.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+        memcpy(source_library_string + source_library.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
         source_library.used += data_build->setting.build_name.used;
 
-        memcpy(source_library_string + source_library.used, fake_build_parameter_library_name_suffix_static_s.string, sizeof(unsigned char) * fake_build_parameter_library_name_suffix_static_s.used);
+        memcpy(source_library_string + source_library.used, fake_build_parameter_library_name_suffix_static_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_suffix_static_s.used);
         source_library.used += fake_build_parameter_library_name_suffix_static_s.used;
       }
 
       f_string_static_t parameter_file_name_path = f_string_static_t_initialize;
       parameter_file_name_path.used = main->path_build_programs_static.used + data_build->setting.build_name.used;
 
-      unsigned char parameter_file_name_path_string[parameter_file_name_path.used + 1];
+      f_char_t parameter_file_name_path_string[parameter_file_name_path.used + 1];
       parameter_file_name_path.string = parameter_file_name_path_string;
       parameter_file_name_path_string[parameter_file_name_path.used] = 0;
 
-      memcpy(parameter_file_name_path_string, main->path_build_programs_static.string, sizeof(unsigned char) * main->path_build_programs_static.used);
-      memcpy(parameter_file_name_path_string + main->path_build_programs_static.used, data_build->setting.build_name.string, sizeof(unsigned char) * data_build->setting.build_name.used);
+      memcpy(parameter_file_name_path_string, main->path_build_programs_static.string, sizeof(f_char_t) * main->path_build_programs_static.used);
+      memcpy(parameter_file_name_path_string + main->path_build_programs_static.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
 
       const f_string_static_t values[] = {
         source_library,
index 9b3f76dcc5d72c881a87dfde15375b93769e8f16..aef912c480283c0b1f45c4cce565742a5742bca1 100644 (file)
@@ -18,12 +18,12 @@ extern "C" {
     f_string_static_t path_headers = f_string_static_t_initialize;
     path_headers.used = main->path_build_includes.used + data_build->setting.path_headers.used;
 
-    unsigned char path_headers_string[path_headers.used + 1];
+    f_char_t path_headers_string[path_headers.used + 1];
     path_headers.string = path_headers_string;
 
     if (data_build->setting.path_headers.used) {
-      memcpy(path_headers_string, main->path_build_includes.string, sizeof(unsigned char) * main->path_build_includes.used);
-      memcpy(path_headers_string + main->path_build_includes.used, data_build->setting.path_headers.string, sizeof(unsigned char) * data_build->setting.path_headers.used);
+      memcpy(path_headers_string, main->path_build_includes.string, sizeof(f_char_t) * main->path_build_includes.used);
+      memcpy(path_headers_string + main->path_build_includes.used, data_build->setting.path_headers.string, sizeof(f_char_t) * data_build->setting.path_headers.used);
     }
     else {
       path_headers.used = 0;
index 645dfbd75e5360b2aa5ec7e4cb1270a045f68e9f..216e341f66d59d515bf3f70e140aff041eef9026 100644 (file)
@@ -31,25 +31,25 @@ extern "C" {
     {
       f_array_length_t build_libraries_length = fake_build_parameter_library_link_path_s.used + main->path_build_libraries_shared.used;
 
-      unsigned char build_libraries[build_libraries_length + 1];
+      f_char_t build_libraries[build_libraries_length + 1];
 
-      memcpy(build_libraries, fake_build_parameter_library_link_path_s.string, sizeof(unsigned char) * fake_build_parameter_library_link_path_s.used);
+      memcpy(build_libraries, fake_build_parameter_library_link_path_s.string, sizeof(f_char_t) * fake_build_parameter_library_link_path_s.used);
 
       if (is_shared) {
-        memcpy(build_libraries + fake_build_parameter_library_link_path_s.used, main->path_build_libraries_shared.string, sizeof(unsigned char) * main->path_build_libraries_shared.used);
+        memcpy(build_libraries + fake_build_parameter_library_link_path_s.used, main->path_build_libraries_shared.string, sizeof(f_char_t) * main->path_build_libraries_shared.used);
       }
       else {
-        memcpy(build_libraries + fake_build_parameter_library_link_path_s.used, main->path_build_libraries_static.string, sizeof(unsigned char) * main->path_build_libraries_static.used);
+        memcpy(build_libraries + fake_build_parameter_library_link_path_s.used, main->path_build_libraries_static.string, sizeof(f_char_t) * main->path_build_libraries_static.used);
       }
 
       build_libraries[build_libraries_length] = 0;
 
       f_array_length_t build_includes_length = fake_build_parameter_library_include_s.used + main->path_build_includes.used;
 
-      unsigned char build_includes[build_includes_length + 1];
+      f_char_t build_includes[build_includes_length + 1];
 
-      memcpy(build_includes, fake_build_parameter_library_include_s.string, sizeof(unsigned char) * fake_build_parameter_library_include_s.used);
-      memcpy(build_includes + fake_build_parameter_library_include_s.used, main->path_build_includes.string, sizeof(unsigned char) * main->path_build_includes.used);
+      memcpy(build_includes, fake_build_parameter_library_include_s.string, sizeof(f_char_t) * fake_build_parameter_library_include_s.used);
+      memcpy(build_includes + fake_build_parameter_library_include_s.used, main->path_build_includes.string, sizeof(f_char_t) * main->path_build_includes.used);
 
       const f_string_static_t values[] = {
         macro_f_string_static_t_initialize(build_libraries, 0, build_libraries_length),
@@ -71,12 +71,12 @@ extern "C" {
       if (F_status_is_error_not(*status)) {
         buffer.used = fake_build_parameter_library_include_s.used + main->path_work_includes.used;
 
-        unsigned char buffer_string[buffer.used + 1];
+        f_char_t buffer_string[buffer.used + 1];
         buffer.string = buffer_string;
         buffer_string[buffer.used] = 0;
 
-        memcpy(buffer_string, fake_build_parameter_library_include_s.string, sizeof(unsigned char) * fake_build_parameter_library_include_s.used);
-        memcpy(buffer_string + fake_build_parameter_library_include_s.used, main->path_work_includes.string, sizeof(unsigned char) * main->path_work_includes.used);
+        memcpy(buffer_string, fake_build_parameter_library_include_s.string, sizeof(f_char_t) * fake_build_parameter_library_include_s.used);
+        memcpy(buffer_string + fake_build_parameter_library_include_s.used, main->path_work_includes.string, sizeof(f_char_t) * main->path_work_includes.used);
 
         *status = fll_execute_arguments_add(buffer, arguments);
       }
@@ -84,12 +84,12 @@ extern "C" {
       if (data_build->setting.search_shared && (is_shared || !data_build->setting.search_exclusive) && F_status_is_error_not(*status)) {
         buffer.used = fake_build_parameter_library_link_path_s.used + main->path_work_libraries_shared.used;
 
-        unsigned char buffer_string[buffer.used + 1];
+        f_char_t buffer_string[buffer.used + 1];
         buffer.string = buffer_string;
         buffer_string[buffer.used] = 0;
 
-        memcpy(buffer_string, fake_build_parameter_library_link_path_s.string, sizeof(unsigned char) * fake_build_parameter_library_link_path_s.used);
-        memcpy(buffer_string + fake_build_parameter_library_link_path_s.used, main->path_work_libraries_shared.string, sizeof(unsigned char) * main->path_work_libraries_shared.used);
+        memcpy(buffer_string, fake_build_parameter_library_link_path_s.string, sizeof(f_char_t) * fake_build_parameter_library_link_path_s.used);
+        memcpy(buffer_string + fake_build_parameter_library_link_path_s.used, main->path_work_libraries_shared.string, sizeof(f_char_t) * main->path_work_libraries_shared.used);
 
         *status = fll_execute_arguments_add(buffer, arguments);
       }
@@ -97,12 +97,12 @@ extern "C" {
       if (data_build->setting.search_static && (!is_shared || !data_build->setting.search_exclusive) && F_status_is_error_not(*status)) {
         buffer.used = fake_build_parameter_library_link_path_s.used + main->path_work_libraries_static.used;
 
-        unsigned char buffer_string[buffer.used + 1];
+        f_char_t buffer_string[buffer.used + 1];
         buffer.string = buffer_string;
         buffer_string[buffer.used] = 0;
 
-        memcpy(buffer_string, fake_build_parameter_library_link_path_s.string, sizeof(unsigned char) * fake_build_parameter_library_link_path_s.used);
-        memcpy(buffer_string + fake_build_parameter_library_link_path_s.used, main->path_work_libraries_static.string, sizeof(unsigned char) * main->path_work_libraries_static.used);
+        memcpy(buffer_string, fake_build_parameter_library_link_path_s.string, sizeof(f_char_t) * fake_build_parameter_library_link_path_s.used);
+        memcpy(buffer_string + fake_build_parameter_library_link_path_s.used, main->path_work_libraries_static.string, sizeof(f_char_t) * main->path_work_libraries_static.used);
 
         *status = fll_execute_arguments_add(buffer, arguments);
       }
@@ -364,17 +364,17 @@ extern "C" {
       fll_print_format("%r%[Copying %Q.%]%r", main->output.to.stream, f_string_eol_s, main->context.set.important, label, main->context.set.important, f_string_eol_s);
     }
 
-     macro_f_string_dynamic_t_resize(*status, path_source, source.used);
+    *status = f_string_dynamic_resize(source.used, &path_source);
 
     if (F_status_is_error(*status)) {
-      fll_error_print(main->error, F_status_set_fine(*status), " macro_f_string_dynamic_t_resize", F_true);
+      fll_error_print(main->error, F_status_set_fine(*status), " f_string_dynamic_resize", F_true);
 
       f_string_dynamic_resize(0, &path_source);
 
       return;
     }
 
-    memcpy(path_source.string, source.string, sizeof(unsigned char) * source.used);
+    memcpy(path_source.string, source.string, sizeof(f_char_t) * source.used);
 
     fl_directory_recurse_t recurse = fl_directory_recurse_t_initialize;
 
@@ -557,20 +557,20 @@ extern "C" {
       f_string_static_t argument = f_string_static_t_initialize;
       argument.used = f_console_symbol_short_disable_s.used + f_console_standard_short_dark_s.used;
 
-      unsigned char argument_string[argument.used + 1];
+      f_char_t argument_string[argument.used + 1];
       argument.string = argument_string;
       argument_string[argument.used] = 0;
 
-      memcpy(argument_string, f_console_symbol_short_disable_s.string, sizeof(unsigned char) * f_console_symbol_short_disable_s.used);
+      memcpy(argument_string, f_console_symbol_short_disable_s.string, sizeof(f_char_t) * f_console_symbol_short_disable_s.used);
 
       if (main->context.mode == F_color_mode_dark_d) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_dark_s.string, sizeof(unsigned char) * f_console_standard_short_dark_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_dark_s.string, sizeof(f_char_t) * f_console_standard_short_dark_s.used);
       }
       else if (main->context.mode == F_color_mode_light_d) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_light_s.string, sizeof(unsigned char) * f_console_standard_short_light_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_light_s.string, sizeof(f_char_t) * f_console_standard_short_light_s.used);
       }
       else if (main->context.mode == F_color_mode_no_color_d) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_no_color_s.string, sizeof(unsigned char) * f_console_standard_short_no_color_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_no_color_s.string, sizeof(f_char_t) * f_console_standard_short_no_color_s.used);
       }
 
       *status = fll_execute_arguments_add(argument, &arguments);
@@ -581,20 +581,20 @@ extern "C" {
       f_string_static_t argument = f_string_static_t_initialize;
       argument.used = f_console_symbol_short_disable_s.used + f_console_standard_short_quiet_s.used;
 
-      unsigned char argument_string[argument.used + 1];
+      f_char_t argument_string[argument.used + 1];
       argument.string = argument_string;
       argument_string[argument.used] = 0;
 
-      memcpy(argument_string, f_console_symbol_short_disable_s.string, sizeof(unsigned char) * f_console_symbol_short_disable_s.used);
+      memcpy(argument_string, f_console_symbol_short_disable_s.string, sizeof(f_char_t) * f_console_symbol_short_disable_s.used);
 
       if (main->context.mode == f_console_verbosity_quiet_e) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_quiet_s.string, sizeof(unsigned char) * f_console_standard_short_quiet_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_quiet_s.string, sizeof(f_char_t) * f_console_standard_short_quiet_s.used);
       }
       else if (main->context.mode == f_console_verbosity_verbose_e) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_verbose_s.string, sizeof(unsigned char) * f_console_standard_short_verbose_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_verbose_s.string, sizeof(f_char_t) * f_console_standard_short_verbose_s.used);
       }
       else if (main->context.mode == f_console_verbosity_debug_e) {
-        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_debug_s.string, sizeof(unsigned char) * f_console_standard_short_debug_s.used);
+        memcpy(argument_string + f_console_symbol_short_disable_s.used, f_console_standard_short_debug_s.string, sizeof(f_char_t) * f_console_standard_short_debug_s.used);
       }
 
       *status = fll_execute_arguments_add(argument, &arguments);
@@ -786,12 +786,12 @@ extern "C" {
 
         source.used = path->used + sources[i]->array[j].used;
 
-        unsigned char source_string[source.used + 1];
+        f_char_t source_string[source.used + 1];
         source.string = source_string;
         source_string[source.used] = 0;
 
-        memcpy(source_string, path->string, sizeof(unsigned char) * path->used);
-        memcpy(source_string + path->used, sources[i]->array[j].string, sizeof(unsigned char) * sources[i]->array[j].used);
+        memcpy(source_string, path->string, sizeof(f_char_t) * path->used);
+        memcpy(source_string + path->used, sources[i]->array[j].string, sizeof(f_char_t) * sources[i]->array[j].used);
 
         status = fll_execute_arguments_add(source, arguments);
         if (F_status_is_error(status)) return status;
@@ -853,12 +853,12 @@ extern "C" {
 
         fake_build_path_source_length(main, &data_build, &data_build.setting.path_sources, &source);
 
-        unsigned char source_string[source.used + fake_path_part_script_s.used + 1];
+        f_char_t source_string[source.used + fake_path_part_script_s.used + 1];
         source.string = source_string;
 
         fake_build_path_source_string(main, &data_build, &data_build.setting.path_sources, &source);
 
-        memcpy(source_string + source.used, fake_path_part_script_s.string, sizeof(unsigned char) * fake_path_part_script_s.used);
+        memcpy(source_string + source.used, fake_path_part_script_s.string, sizeof(f_char_t) * fake_path_part_script_s.used);
         source.used += fake_path_part_script_s.used;
         source.string[source.used] = 0;
 
@@ -871,7 +871,7 @@ extern "C" {
 
         fake_build_path_source_length(main, &data_build, &data_build.setting.path_sources, &source);
 
-        unsigned char source_string[source.used + 1];
+        f_char_t source_string[source.used + 1];
         source.string = source_string;
 
         fake_build_path_source_string(main, &data_build, &data_build.setting.path_sources, &source);
@@ -879,13 +879,13 @@ extern "C" {
         f_string_static_t path_headers = f_string_static_t_initialize;
         path_headers.used = main->path_build_includes.used + data_build.setting.path_headers.used;
 
-        unsigned char path_headers_string[path_headers.used + 1];
+        f_char_t path_headers_string[path_headers.used + 1];
         path_headers.string = path_headers_string;
 
-        memcpy(path_headers_string, main->path_build_includes.string, sizeof(unsigned char) * main->path_build_includes.used);
+        memcpy(path_headers_string, main->path_build_includes.string, sizeof(f_char_t) * main->path_build_includes.used);
 
         if (data_build.setting.path_headers.used) {
-          memcpy(path_headers_string + main->path_build_includes.used, data_build.setting.path_headers.string, sizeof(unsigned char) * data_build.setting.path_headers.used);
+          memcpy(path_headers_string + main->path_build_includes.used, data_build.setting.path_headers.string, sizeof(f_char_t) * data_build.setting.path_headers.used);
         }
 
         path_headers_string[path_headers.used] = 0;
@@ -924,12 +924,12 @@ extern "C" {
 
         fake_build_path_source_length(main, &data_build, &data_build.setting.path_sources, &source);
 
-        unsigned char source_string[source.used + fake_path_part_script_s.used + 1];
+        f_char_t source_string[source.used + fake_path_part_script_s.used + 1];
         source.string = source_string;
 
         fake_build_path_source_string(main, &data_build, &data_build.setting.path_sources, &source);
 
-        memcpy(source_string + source.used, fake_path_part_script_s.string, sizeof(unsigned char) * fake_path_part_script_s.used);
+        memcpy(source_string + source.used, fake_path_part_script_s.string, sizeof(f_char_t) * fake_path_part_script_s.used);
         source.used += fake_path_part_script_s.used;
         source.string[source.used] = 0;
 
@@ -976,27 +976,27 @@ extern "C" {
 
     source->used = 0;
 
-    memcpy(source->string, main->path_sources.string, sizeof(unsigned char) * main->path_sources.used);
+    memcpy(source->string, main->path_sources.string, sizeof(f_char_t) * main->path_sources.used);
     source->used += main->path_sources.used;
 
-    memcpy(source->string + source->used, setting_path_source->string, sizeof(unsigned char) * setting_path_source->used);
+    memcpy(source->string + source->used, setting_path_source->string, sizeof(f_char_t) * setting_path_source->used);
     source->used += setting_path_source->used;
 
     if (data_build->setting.has_path_standard) {
       if (data_build->setting.build_language == fake_build_language_type_c_e) {
-        memcpy(source->string + source->used, fake_build_language_c_s.string, sizeof(unsigned char) * fake_build_language_c_s.used);
+        memcpy(source->string + source->used, fake_build_language_c_s.string, sizeof(f_char_t) * fake_build_language_c_s.used);
         source->used += fake_build_language_c_s.used;
       }
       else if (data_build->setting.build_language == fake_build_language_type_cpp_e) {
-        memcpy(source->string + source->used, fake_build_language_cpp_s.string, sizeof(unsigned char) * fake_build_language_cpp_s.used);
+        memcpy(source->string + source->used, fake_build_language_cpp_s.string, sizeof(f_char_t) * fake_build_language_cpp_s.used);
         source->used += fake_build_language_cpp_s.used;
       }
       else if (data_build->setting.build_language == fake_build_language_type_bash_e) {
-        memcpy(source->string + source->used, fake_build_language_bash_s.string, sizeof(unsigned char) * fake_build_language_bash_s.used);
+        memcpy(source->string + source->used, fake_build_language_bash_s.string, sizeof(f_char_t) * fake_build_language_bash_s.used);
         source->used += fake_build_language_bash_s.used;
       }
 
-      memcpy(source->string + source->used, f_path_separator_s.string, sizeof(unsigned char) * f_path_separator_s.used);
+      memcpy(source->string + source->used, f_path_separator_s.string, sizeof(f_char_t) * f_path_separator_s.used);
       source->used += f_path_separator_s.used;
     }
 
@@ -1026,12 +1026,12 @@ extern "C" {
 
         fake_build_path_source_length(main, data_build, &data_build->setting.path_sources, &source);
 
-        unsigned char source_string[source.used + sources[i]->array[j].used + 1];
+        f_char_t source_string[source.used + sources[i]->array[j].used + 1];
         source.string = source_string;
 
         fake_build_path_source_string(main, data_build, &data_build->setting.path_sources, &source);
 
-        memcpy(source_string + source.used, sources[i]->array[j].string, sizeof(unsigned char) * sources[i]->array[j].used);
+        memcpy(source_string + source.used, sources[i]->array[j].string, sizeof(f_char_t) * sources[i]->array[j].used);
         source.used += sources[i]->array[j].used;
         source.string[source.used] = 0;
 
@@ -1060,17 +1060,17 @@ extern "C" {
       source.used += generic->used;
     }
 
-    unsigned char source_string[source.used + 1];
+    f_char_t source_string[source.used + 1];
     source.string = source_string;
 
     fake_build_path_source_string(main, data_build, &data_build->setting.path_sources_object, &source);
 
     if (specific->used) {
-      memcpy(source_string + source.used, specific->string, sizeof(unsigned char) * specific->used);
+      memcpy(source_string + source.used, specific->string, sizeof(f_char_t) * specific->used);
       source.used += specific->used;
     }
     else {
-      memcpy(source_string + source.used, generic->string, sizeof(unsigned char) * generic->used);
+      memcpy(source_string + source.used, generic->string, sizeof(f_char_t) * generic->used);
       source.used += generic->used;
     }
 
index 7394b004c60debe1379d1c20074184fc08e15a66..2edd441c4ab627c6c18299be697465018ac3d306 100644 (file)
@@ -34,13 +34,7 @@ extern "C" {
 
     if (F_status_set_fine(status) == F_file_found_not || F_status_set_fine(status) == F_directory) {
       if (main->error.verbosity >= f_console_verbosity_verbose_e) {
-        flockfile(main->warning.to.stream);
-
-        f_print_terminated("The build directory '", main->warning.to.stream);
-        fl_print_format("%[%Q%]", main->warning.to.stream, main->context.set.notable, main->path_build, main->context.set.notable);
-        fl_print_format("' does not exist.%r", main->warning.to.stream, f_string_eol_s);
-
-        funlockfile(main->warning.to.stream);
+        fll_print_format("The build directory '%[%Q%]' does not exist.%r", main->warning.to.stream, main->context.set.notable, main->path_build, main->context.set.notable, f_string_eol_s);
       }
 
       status = F_none;
index 6238ef6f1812facd7a6a669a56d588164ec868a2..ec5cff378db3d6ad5b6d7a8870be6feff2022831 100644 (file)
@@ -92,7 +92,7 @@ extern "C" {
   f_status_t fake_file_buffer(fake_main_t * const main, const f_string_static_t path_file, f_string_dynamic_t * const buffer) {
 
     f_file_t file = f_file_t_initialize;
-    f_string_t name_function = "f_file_exists";
+    char *name_function = "f_file_exists";
     f_status_t status = F_none;
 
     if (fake_signal_received(main)) {
@@ -113,7 +113,7 @@ extern "C" {
             size_file = fake_common_initial_buffer_max_d;
           }
 
-           macro_f_string_dynamic_t_resize((status), (*buffer), size_file);
+          status = f_string_dynamic_resize(size_file, buffer);
 
           if (F_status_is_error(status)) {
             const f_string_static_t message = macro_f_string_static_t_initialize("allocate buffer size for", 0, 24);
index be18b586ac0d9c55675534554dcf30cdf8bb486b..4f04124fdd41a3a756ee941ef2a8b35f9dd3c332 100644 (file)
@@ -213,7 +213,7 @@ extern "C" {
 
       // Always have the parameter variable "return" map at index 0 and be pre-initialized.
       {
-        f_string_t function_name = "macro_f_string_map_multis_t_resize";
+        char *function_name = "macro_f_string_map_multis_t_resize";
 
         macro_f_string_map_multis_t_resize(*status, data_make->setting_make.parameter, fake_default_allocation_small_d);
 
index 838e7cf57f2eda47ddf08ad51241b6d2b997ec16..5790f43599cfcc29e7e4f4fc668018d3365156f3 100644 (file)
@@ -597,14 +597,14 @@ extern "C" {
 
     if (!return_code) {
       if (F_status_is_error(status)) {
-        status = f_string_append("1", 1, &data_make->setting_make.parameter.array[0].value.array[0]);
+        status = f_string_dynamic_append(f_string_ascii_1_s, &data_make->setting_make.parameter.array[0].value.array[0]);
       }
       else {
-        status = f_string_append("0", 1, &data_make->setting_make.parameter.array[0].value.array[0]);
+        status = f_string_dynamic_append(f_string_ascii_0_s, &data_make->setting_make.parameter.array[0].value.array[0]);
       }
 
       if (F_status_is_error(status)) {
-        fll_error_print(data_make->error, F_status_set_fine(status), "f_string_append", F_true);
+        fll_error_print(data_make->error, F_status_set_fine(status), "f_string_dynamic_append", F_true);
       }
 
       return status;
@@ -628,11 +628,11 @@ extern "C" {
       f_string_dynamic_resize(0, &number);
     }
     else {
-      status = f_string_append("0", 1, &data_make->setting_make.parameter.array[0].value.array[0]);
+      status = f_string_dynamic_append(f_string_ascii_0_s, &data_make->setting_make.parameter.array[0].value.array[0]);
     }
 
     if (F_status_is_error(status)) {
-      fll_error_print(data_make->error, F_status_set_fine(status), "f_string_append", F_true);
+      fll_error_print(data_make->error, F_status_set_fine(status), "f_string_dynamic_append", F_true);
 
       return status;
     }
index 4eeafc89eaab752042ac25ee0e65375e97cc83ba..07bca1507ec92f7a8cfde330d282e48b1576818b 100644 (file)
@@ -65,14 +65,14 @@ extern "C" {
         destination.used += arguments.array[i].used + 1;
       }
 
-      unsigned char destination_string[destination.used + 1];
+      f_char_t destination_string[destination.used + 1];
       destination.string = destination_string;
       destination_string[destination.used] = 0;
 
-      memcpy(destination_string, arguments.array[total].string, sizeof(unsigned char) * arguments.array[total].used);
+      memcpy(destination_string, arguments.array[total].string, sizeof(f_char_t) * arguments.array[total].used);
 
       if (existing) {
-        memcpy(destination_string + arguments.array[total].used + 1, arguments.array[i].string, sizeof(unsigned char) * arguments.array[i].used);
+        memcpy(destination_string + arguments.array[total].used + 1, arguments.array[i].string, sizeof(f_char_t) * arguments.array[i].used);
         destination_string[arguments.array[total].used] = f_path_separator_s.string[0];
       }
 
@@ -1056,14 +1056,14 @@ extern "C" {
         destination.used += arguments.array[i].used + 1;
       }
 
-      unsigned char destination_string[destination.used + 1];
+      f_char_t destination_string[destination.used + 1];
       destination.string = destination_string;
       destination_string[destination.used] = 0;
 
-      memcpy(destination_string, arguments.array[total].string, sizeof(unsigned char) * arguments.array[total].used);
+      memcpy(destination_string, arguments.array[total].string, sizeof(f_char_t) * arguments.array[total].used);
 
       if (existing) {
-        memcpy(destination_string + arguments.array[total].used + 1, arguments.array[i].string, sizeof(unsigned char) * arguments.array[i].used);
+        memcpy(destination_string + arguments.array[total].used + 1, arguments.array[i].string, sizeof(f_char_t) * arguments.array[i].used);
         destination_string[arguments.array[total].used] = f_path_separator_s.string[0];
       }
 
index 4537b734edfe59d16e3e9d1eb5e73538453d4066..59d92e231af9623c0443b4c5f92a6281bf454a72 100644 (file)
@@ -82,12 +82,12 @@ extern "C" {
           f_string_static_t path_file = f_string_static_t_initialize;
           path_file.used = data_make->main->path_data_build.used + arguments.array[0].used;
 
-          unsigned char path_file_string[path_file.used + 1];
+          f_char_t path_file_string[path_file.used + 1];
           path_file.string = path_file_string;
           path_file_string[path_file.used] = 0;
 
-          memcpy(path_file_string, data_make->main->path_data_build.string, sizeof(unsigned char) * data_make->main->path_data_build.used);
-          memcpy(path_file_string + data_make->main->path_data_build.used, arguments.array[0].string, sizeof(unsigned char) * arguments.array[0].used);
+          memcpy(path_file_string, data_make->main->path_data_build.string, sizeof(f_char_t) * data_make->main->path_data_build.used);
+          memcpy(path_file_string + data_make->main->path_data_build.used, arguments.array[0].string, sizeof(f_char_t) * arguments.array[0].used);
 
           f_status_t status_file = f_file_is(path_file, F_file_type_regular_d, F_false);
 
index e0c5fdfbf22cbe8d00d8d5a31ec9286938b64a60..b21da0a9ec0de820e74cfec100842f49c717b223 100644 (file)
@@ -11,7 +11,7 @@ extern "C" {
 #endif
 
 #ifndef _di_fake_print_error_build_operation_file_
-  bool fake_print_error_build_operation_file(fake_main_t * const main, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) {
+  bool fake_print_error_build_operation_file(fake_main_t * const main, const f_status_t status, const char *function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) {
 
     if (status == F_file_found_not) {
       if (main->error.verbosity != f_console_verbosity_quiet_e) {
@@ -236,7 +236,7 @@ extern "C" {
 #endif // #ifndef _di_fake_print_error_build_operation_file_message_
 
 #ifndef _di_fake_print_error_fss
-  bool fake_print_error_fss(fake_main_t * const main, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) {
+  bool fake_print_error_fss(fake_main_t * const main, const f_status_t status, const char *function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) {
 
     if (status == F_file_found_not) {
       if (main->error.verbosity != f_console_verbosity_quiet_e) {
@@ -376,7 +376,7 @@ extern "C" {
 #endif // _di_fake_print_message_section_operation_failed_
 
 #ifndef _di_fake_print_message_section_operation_path_outside_
-  void fake_print_message_section_operation_path_outside(fake_main_t * const main, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) {
+  void fake_print_message_section_operation_path_outside(fake_main_t * const main, const fl_print_t print, const f_status_t status, const char *function, const f_string_static_t path) {
 
     if (main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return;
 
@@ -396,7 +396,7 @@ extern "C" {
 #endif // _di_fake_print_message_section_operation_path_outside_
 
 #ifndef _di_fake_print_message_section_operation_path_stack_max_
-  void fake_print_message_section_operation_path_stack_max(fake_main_t * const main, fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) {
+  void fake_print_message_section_operation_path_stack_max(fake_main_t * const main, fl_print_t print, const f_status_t status, const char *function, const f_string_static_t path) {
 
     if (main->error.verbosity == f_console_verbosity_quiet_e || !print.to.stream) return;
 
index ec5033e17b8a6473e16da29dc623048e9fc4b49e..a641625140f36ce1d8b1a582fbe5113817e057e6 100644 (file)
@@ -45,7 +45,7 @@ extern "C" {
  * @see fake_print_error_build_operation_file_message();
  */
 #ifndef _di_fake_print_error_operation_file_
-  extern bool fake_print_error_build_operation_file(fake_main_t * const main, const f_status_t status, const f_string_t function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) F_attribute_visibility_internal_d;
+  extern bool fake_print_error_build_operation_file(fake_main_t * const main, const f_status_t status, const char *function, const f_string_static_t operation, const f_string_static_t source, const f_string_static_t destination, const f_string_static_t how, const bool fallback) F_attribute_visibility_internal_d;
 #endif // _di_fake_print_error_operation_file_
 
 /**
@@ -99,7 +99,7 @@ extern "C" {
  * @see fl_print_format()
  */
 #ifndef _di_fake_print_error_fss_
-  extern bool fake_print_error_fss(fake_main_t * const main, const f_status_t status, const f_string_t function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) F_attribute_visibility_internal_d;
+  extern bool fake_print_error_fss(fake_main_t * const main, const f_status_t status, const char *function, const f_string_static_t path_file, const f_string_range_t range, const bool fallback) F_attribute_visibility_internal_d;
 #endif // _di_fake_print_error_fss_
 
 /**
@@ -204,7 +204,7 @@ extern "C" {
  * @see fll_error_file_print()
  */
 #ifndef _di_fake_print_message_section_operation_path_outside_
-  extern void fake_print_message_section_operation_path_outside(fake_main_t * const main, const fl_print_t print, const f_status_t status, const f_string_t function, const f_string_static_t path) F_attribute_visibility_internal_d;
+  extern void fake_print_message_section_operation_path_outside(fake_main_t * const main, const fl_print_t print, const f_status_t status, const char *function, const f_string_static_t path) F_attribute_visibility_internal_d;
 #endif // _fake_print_message_section_operation_path_outside_
 
 /**
@@ -229,7 +229,7 @@ extern "C" {
  * @see fll_error_file_print()
  */
 #ifndef _di_fake_print_message_section_operation_path_stack_max_
-  extern void fake_print_message_section_operation_path_stack_max(fake_main_t * const main, fl_print_t error, const f_status_t status, const f_string_t function, const f_string_static_t path) F_attribute_visibility_internal_d;
+  extern void fake_print_message_section_operation_path_stack_max(fake_main_t * const main, fl_print_t error, const f_status_t status, const char *function, const f_string_static_t path) F_attribute_visibility_internal_d;
 #endif // _di_fake_print_message_section_operation_path_stack_max_
 
 /**
index 245b2465649d44d67fcf17bb968eac28158bb435..8828694abc2652def981685520c7717447a5d1e9 100644 (file)
@@ -36,11 +36,11 @@ extern "C" {
       fake_skeleton_path_source_length(main, &fake_path_part_cpp_s, &sources_cpp);
       fake_skeleton_path_source_length(main, &fake_path_part_script_s, &sources_script);
 
-      unsigned char sources_string[sources.used + 1];
-      unsigned char sources_bash_string[sources_bash.used + 1];
-      unsigned char sources_c_string[sources_c.used + 1];
-      unsigned char sources_cpp_string[sources_cpp.used + 1];
-      unsigned char sources_script_string[sources_script.used + 1];
+      f_char_t sources_string[sources.used + 1];
+      f_char_t sources_bash_string[sources_bash.used + 1];
+      f_char_t sources_c_string[sources_c.used + 1];
+      f_char_t sources_cpp_string[sources_cpp.used + 1];
+      f_char_t sources_script_string[sources_script.used + 1];
 
       sources.string = sources_string;
       sources_bash.string = sources_bash_string;
@@ -312,13 +312,13 @@ extern "C" {
 
     source->used = 0;
 
-    memcpy(source->string, main->path_sources.string, sizeof(unsigned char) * main->path_sources.used);
+    memcpy(source->string, main->path_sources.string, sizeof(f_char_t) * main->path_sources.used);
     source->used += main->path_sources.used;
 
-    memcpy(source->string, fake_default_path_sources_s.string, sizeof(unsigned char) * fake_default_path_sources_s.used);
+    memcpy(source->string, fake_default_path_sources_s.string, sizeof(f_char_t) * fake_default_path_sources_s.used);
     source->used += fake_default_path_sources_s.used;
 
-    memcpy(source->string + source->used, partial->string, sizeof(unsigned char) * partial->used);
+    memcpy(source->string + source->used, partial->string, sizeof(f_char_t) * partial->used);
     source->used += partial->used;
 
     source->string[source->used] = 0;
index d7d78a704838eef28fa96abafe0884c6fe00587f..3d4cda28589c3facfbd7455aca4ae098bc16ea68 100644 (file)
@@ -397,12 +397,12 @@ extern "C" {
         f_string_static_t path_file_other = f_string_static_t_initialize;
         path_file_other.used = firewall_network_path_s.used + firewall_file_other_s.used;
 
-        unsigned char path_file_other_string[path_file_other.used + 1];
+        f_char_t path_file_other_string[path_file_other.used + 1];
         path_file_other.string = path_file_other_string;
         path_file_other_string[path_file_other.used] = 0;
 
-        memcpy(path_file_other_string, firewall_network_path_s.string, sizeof(unsigned char) * firewall_network_path_s.used);
-        memcpy(path_file_other_string + firewall_network_path_s.used, firewall_file_other_s.string, sizeof(unsigned char) * firewall_file_other_s.used);
+        memcpy(path_file_other_string, firewall_network_path_s.string, sizeof(f_char_t) * firewall_network_path_s.used);
+        memcpy(path_file_other_string + firewall_network_path_s.used, firewall_file_other_s.string, sizeof(f_char_t) * firewall_file_other_s.used);
 
         status = firewall_buffer_rules(main, path_file_other, F_false, &local);
 
@@ -518,12 +518,12 @@ extern "C" {
         f_string_static_t path_file_first = f_string_static_t_initialize;
         path_file_first.used = firewall_network_path_s.used + firewall_file_first_s.used;
 
-        unsigned char path_file_first_string[path_file_first.used + 1];
+        f_char_t path_file_first_string[path_file_first.used + 1];
         path_file_first.string = path_file_first_string;
         path_file_first_string[path_file_first.used] = 0;
 
-        memcpy(path_file_first_string, firewall_network_path_s.string, sizeof(unsigned char) * firewall_network_path_s.used);
-        memcpy(path_file_first_string + firewall_network_path_s.used, firewall_file_first_s.string, sizeof(unsigned char) * firewall_file_first_s.used);
+        memcpy(path_file_first_string, firewall_network_path_s.string, sizeof(f_char_t) * firewall_network_path_s.used);
+        memcpy(path_file_first_string + firewall_network_path_s.used, firewall_file_first_s.string, sizeof(f_char_t) * firewall_file_first_s.used);
 
         status = firewall_buffer_rules(main, path_file_first, F_false, &local);
 
index 162cec4b8795f576b8a10cf4fd5a9da9933c0d62..eaadec71e917f190b98c227e3c9fb30a1083212f 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   firewall_main_t data = firewall_main_t_initialize;
 
   if (f_pipe_input_exists()) {
index 33830652518d0a2002906fe0c74c4f3e23197439..d790cbb0f8b686a138e545fa27de0bd1ad67eaa2 100644 (file)
@@ -29,14 +29,14 @@ void firewall_print_error_on_allocation_failure(const fl_print_t output) {
   fll_print_format("%r%[%QUnable to allocate memory.%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, output.context, f_string_eol_s);
 }
 
-void firewall_print_error_on_invalid_parameter(const fl_print_t output, const f_string_t function) {
+void firewall_print_error_on_invalid_parameter(const fl_print_t output, const char *function) {
 
   if (output.verbosity == f_console_verbosity_quiet_e) return;
 
   fll_print_format("%r%[%QInvalid parameter when calling %s().%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, function, output.context, f_string_eol_s);
 }
 
-void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const f_string_t function, const f_string_static_t filename) {
+void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const char *function, const f_string_static_t filename) {
 
   if (output.verbosity == f_console_verbosity_quiet_e) return;
 
@@ -61,14 +61,14 @@ void firewall_print_error_on_operation(const fl_print_t output, const f_string_s
   funlockfile(output.to.stream);
 }
 
-void firewall_print_error_on_unhandled(const fl_print_t output, const f_string_t function, const f_status_t status) {
+void firewall_print_error_on_unhandled(const fl_print_t output, const char *function, const f_status_t status) {
 
   if (output.verbosity == f_console_verbosity_quiet_e) return;
 
   fll_print_format("%r%[%QAn unhandled error (%ui) has occurred while calling %s().%]%r", output.to.stream, f_string_eol_s, output.context, output.prefix, status, function, output.context, f_string_eol_s);
 }
 
-void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const f_string_t function, const f_status_t status, const f_string_static_t filename) {
+void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const char *function, const f_status_t status, const f_string_static_t filename) {
 
   if (output.verbosity == f_console_verbosity_quiet_e) return;
 
index 9e0677a1cb7266fd63d868e0478458896d9a566f..bd98d2d23e32b4da529a2ac13e9b538b653a015d 100644 (file)
@@ -104,7 +104,7 @@ extern void firewall_print_error_on_allocation_failure(const fl_print_t output)
  * @param function
  *   The function that failed.
  */
-extern void firewall_print_error_on_invalid_parameter(const fl_print_t output, const f_string_t function) F_attribute_visibility_internal_d;
+extern void firewall_print_error_on_invalid_parameter(const fl_print_t output, const char *function) F_attribute_visibility_internal_d;
 
 /**
  * Print an invalid parameter error for the given function.
@@ -116,7 +116,7 @@ extern void firewall_print_error_on_invalid_parameter(const fl_print_t output, c
  * @param filename
  *   The name of the file.
  */
-extern void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const f_string_t function, const f_string_static_t filename) F_attribute_visibility_internal_d;
+extern void firewall_print_error_on_invalid_parameter_for_file(const fl_print_t output, const char *function, const f_string_static_t filename) F_attribute_visibility_internal_d;
 
 /**
  * Print an error about the given operation failed.
@@ -140,7 +140,7 @@ extern void firewall_print_error_on_operation(const fl_print_t output, const f_s
  * @param status
  *   The failure status code.
  */
-extern void firewall_print_error_on_unhandled(const fl_print_t output, const f_string_t function, const f_status_t status) F_attribute_visibility_internal_d;
+extern void firewall_print_error_on_unhandled(const fl_print_t output, const char *function, const f_status_t status) F_attribute_visibility_internal_d;
 
 /**
  * Print an unhandled error for the given function for some given file.
@@ -154,7 +154,7 @@ extern void firewall_print_error_on_unhandled(const fl_print_t output, const f_s
  * @param filename
  *   The name of the file.
  */
-extern void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const f_string_t function, const f_status_t status, const f_string_static_t filename) F_attribute_visibility_internal_d;
+extern void firewall_print_error_on_unhandled_for_file(const fl_print_t output, const char *function, const f_status_t status, const f_string_static_t filename) F_attribute_visibility_internal_d;
 
 /**
  * Print a message about a process signal being recieved, such as an interrupt signal.
index 221c046cb8cce171211d2095e0dc3a1e15288348..fae9d9e13df10bd4d5135fafae7a7cc03cc7b06b 100644 (file)
@@ -166,12 +166,11 @@ f_status_t firewall_perform_commands(firewall_main_t * const main, const firewal
       else if (fl_string_dynamic_compare_string(local.buffer.string + local.rule_contents.array[i].array[0].start, firewall_device_this_s, length) == F_equal_to) {
         if (main->devices.array[local.device].used > 0) {
           if (main->devices.array[local.device].used > device.size) {
-            macro_f_string_dynamic_t_resize(status, device, main->devices.array[local.device].used);
-
+            status = f_string_dynamic_resize(main->devices.array[local.device].used, &device);
             if (F_status_is_error(status)) break;
           }
 
-          memcpy(device.string, main->devices.array[local.device].string, sizeof(unsigned char) * main->devices.array[local.device].used);
+          memcpy(device.string, main->devices.array[local.device].string, sizeof(f_char_t) * main->devices.array[local.device].used);
 
           device.used = main->devices.array[local.device].used;
         }
index 93e63798f209db3e002452b270b0ed45685784e8..300bba93900f9f135a6fda02c71cf44db6d383b3 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index aeb2b71e9f96389f1e54d2d5538252839765d5e9..649005dbfec1e4222a352c5b5a6577dbf6ce396c 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 07c341b53317fec70c08b748c57f15aeb3d7f5b2..f24d161854195e0cb1245a909a5c3aa6d14a9f0c 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fss_embedded_list_read_main_t data = fss_embedded_list_read_main_t_initialize;
 
   if (f_pipe_input_exists()) {
index 10be9c469dab9c337d5675c24887aa339b272eef..901abc307481bb781d191b5c16bfd38db75fb37c 100644 (file)
@@ -22,7 +22,7 @@ extern "C" {
 
     // Determine the linear order in which all of the three parameter values are to be applied.
     if (values_total) {
-      memset(values_order, 0, sizeof(unsigned char) * values_total);
+      memset(values_order, 0, sizeof(f_char_t) * values_total);
 
       f_array_length_t k = 0;
       f_array_length_t l = 0;
index e31d22ae1d99c9888707263309f5de445dcebc3c..93a1ca96327d01e9f3174e5a3f0a4632cf48816a 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 745ce10cc00a1418f7e9e033839f59e109e25018..956520b614ad6550090c3b5ae8afcd9b6349a29b 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index ca3e0ba60d1f7df6bdb1f345808f45b6bbc8ccd6..c16e04bfb4bb601b30a3e260977f7cda14864d4c 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index cf0b05a15599b74d3a019aeb564d8d9c9f94d9ee..a622ece4011d0a1ede886e46d74d39204ac853a0 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index be6884fd772df5c70083c8178faaaff55d0f6797..6271b613f2791873396991c5ecef603d5a60e625 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 61a50a6368825281dbec9de2d556c8d548fd8966..5494944955231b8c8138f61620399104bc26b74d 100644 (file)
@@ -311,7 +311,7 @@ extern "C" {
               break;
             }
 
-            memcpy(content.string, block.string + range.start, sizeof(unsigned char) * total);
+            memcpy(content.string, block.string + range.start, sizeof(f_char_t) * total);
 
             content.used += total;
           }
@@ -386,7 +386,7 @@ extern "C" {
             break;
           }
 
-          memcpy(content.string, block.string, sizeof(unsigned char) * block.used);
+          memcpy(content.string, block.string, sizeof(f_char_t) * block.used);
 
           content.used += block.used;
         }
index 2b586a93bf0f74ea34a9030bcac3bc7a938ef931..11958bff1c6c6e24f41863c1866a63bd1874e2a9 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 2e8332518a6ce774dde9e58ca4b1a84294dba0dd..63caa67e8308dd36820326802e1bba58649a3b07 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   iki_read_main_t data = iki_read_main_t_initialize;
 
   if (f_pipe_input_exists()) {
index c72edd77260e5d0b6ced2184588f47cd12af0f61..f60d34ad3be9c4aeded04d8ab739b3137173ed0f 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   iki_write_main_t data = iki_write_main_t_initialize;
 
   if (f_pipe_input_exists()) {
index 8e31a82cc65ce3827adef935bfb66d5a8043b4c8..bc349b7ada5d3fb2f41f3da75c2b4576f72f7b3b 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 2da40a41c08743e54d1fcb7fc6c0940c3eeaf972..89d98583be6d5c70efd65f7383d10d307e9bc338 100644 (file)
@@ -2,7 +2,7 @@
 
 int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
 
-  const f_console_arguments_t arguments = { argc, argv, envp };
+  const f_console_arguments_t arguments = macro_f_console_arguments_t_initialize(argc, argv, envp);
   fll_program_data_t data = fll_program_data_t_initialize;
 
   if (f_pipe_input_exists()) {
index 6a2d0d01f71f47bb16198f9efef0ac5609186ef1..b78c777405199ecb48ed0ce9b8dd606ce2b0c5ec 100644 (file)
@@ -73,7 +73,7 @@ extern "C" {
     f_array_length_t i = 0;
     f_array_length_t j = 0;
 
-    unsigned char block_character[4] = { 0, 0, 0, 0 };
+    f_char_t block_character[4] = { 0, 0, 0, 0 };
     f_string_static_t character = macro_f_string_static_t_initialize2(block_character, 4);
 
     do {
index ecca9f2d145cfa63fa6b8c00c835e157e7dfc1bf..fa391ea85b31dae53fae3555f2d55a8cb8f2ba9b 100644 (file)
@@ -53,7 +53,7 @@ extern "C" {
       }
       else if (data->main->parameters.array[utf8_parameter_verify_e].result == f_console_result_none_e) {
         if (data->mode & utf8_mode_to_binary_d) {
-          unsigned char byte[5] = { 0, 0, 0, 0, 0 };
+          f_char_t byte[5] = { 0, 0, 0, 0, 0 };
           f_string_static_t character = macro_f_string_static_t_initialize2(byte, 5);
 
           status = f_utf_unicode_from(codepoint, 4, &character.string);
@@ -209,7 +209,7 @@ extern "C" {
     f_array_length_t i = 0;
     f_array_length_t j = 0;
 
-    unsigned char block[4] = { 0, 0, 0, 0 };
+    f_char_t block[4] = { 0, 0, 0, 0 };
     f_string_static_t character = macro_f_string_static_t_initialize2(block, 4);
 
     do {