]> Kevux Git Server - kevux-tools/commitdiff
Update: Project structure with latest practices and improve header file define wrappers.
authorKevin Day <Kevin@kevux.org>
Fri, 2 Aug 2024 02:21:54 +0000 (21:21 -0500)
committerKevin Day <Kevin@kevux.org>
Fri, 2 Aug 2024 02:24:02 +0000 (21:24 -0500)
The ifdef wrappers used for each header file is updated to be more accurate in regards to the directory and file path structure.

47 files changed:
.gitignore
data/build/fakefile
data/build/remove/fakefile
data/build/remove/settings
data/build/remove/settings.remove [new file with mode: 0644]
data/build/tacocat/fakefile
data/build/tacocat/settings
data/build/tacocat/settings.tacocat [new file with mode: 0644]
sources/c/program/remove/main/common.h
sources/c/program/remove/main/common/string.c
sources/c/program/remove/main/common/string.h
sources/c/program/remove/main/convert.h
sources/c/program/remove/main/operate.h
sources/c/program/remove/main/remove.c
sources/c/program/remove/main/remove.h
sources/c/program/remove/main/signal.h
sources/c/program/remove/main/thread.h
sources/c/program/remove/remove/config.c [new file with mode: 0644]
sources/c/program/remove/remove/config.h [new file with mode: 0644]
sources/c/program/remove/remove/main.c [moved from sources/c/program/remove/main/main.c with 99% similarity]
sources/c/program/remove/remove/main.h [moved from sources/c/program/remove/main/main.h with 88% similarity]
sources/c/program/remove/remove/remove.c [new file with mode: 0644]
sources/c/program/remove/remove/remove.h [new file with mode: 0644]
sources/c/program/remove/remove/string.c [new file with mode: 0644]
sources/c/program/remove/remove/string.h [new file with mode: 0644]
sources/c/program/tacocat/main/common.h
sources/c/program/tacocat/main/common/define.h
sources/c/program/tacocat/main/common/enumeration.h
sources/c/program/tacocat/main/common/print.h
sources/c/program/tacocat/main/common/string.c
sources/c/program/tacocat/main/common/string.h
sources/c/program/tacocat/main/common/type.h
sources/c/program/tacocat/main/packet.h
sources/c/program/tacocat/main/process.h
sources/c/program/tacocat/main/receive.h
sources/c/program/tacocat/main/send.h
sources/c/program/tacocat/main/signal.h
sources/c/program/tacocat/main/tacocat.h
sources/c/program/tacocat/main/thread.h
sources/c/program/tacocat/tacocat/config.c [new file with mode: 0644]
sources/c/program/tacocat/tacocat/config.h [new file with mode: 0644]
sources/c/program/tacocat/tacocat/main.c [moved from sources/c/program/tacocat/main/main.c with 100% similarity]
sources/c/program/tacocat/tacocat/main.h [moved from sources/c/program/tacocat/main/main.h with 79% similarity]
sources/c/program/tacocat/tacocat/string.c [new file with mode: 0644]
sources/c/program/tacocat/tacocat/string.h [new file with mode: 0644]
sources/c/program/tacocat/tacocat/tacocat.c [new file with mode: 0644]
sources/c/program/tacocat/tacocat/tacocat.h [new file with mode: 0644]

index 84c048a73cc2e5dd24f807669eb99b0ce3123195..ebdab6f130eb856be4b03e19ee9c0888f8a9e240 100644 (file)
@@ -1 +1,9 @@
 /build/
+/build/*
+
+# Disclude FLL sources dropped for stand alone building.
+sources/c/fll
+
+# Do not include the local configuration sources.
+sources/c/config.c
+sources/c/config.h
index c2131b9ef2578593026a7c94813fb7f1971140ae..a09c4e8c3a385a2e63386d47360a14bcae6941fc 100644 (file)
@@ -2,14 +2,16 @@
 
 settings:
   fail exit
-  modes individual level monolithic clang test fanalyzer coverage threaded threadless
+  modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage thread threadless
 
   environment PATH LD_LIBRARY_PATH
   environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
 
 main:
   build remove/settings
+  build remove/settings.remove
   build tacocat/settings
+  build tacocat/settings.tacocat
 
 install:
   shell ./install.sh parameter:'work' parameter:'verbosity' parameter:'color' -s data/remove/build/settings
index fd166cba7589154112f20b4b64841ca9abaaf300..60048dab4c723c33c6ea79e4f5771a5a021fc32a 100644 (file)
@@ -2,13 +2,14 @@
 
 settings:
   fail exit
-  modes individual level monolithic clang test fanalyzer coverage threaded threadless
+  modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage thread threadless
 
   environment PATH LD_LIBRARY_PATH
   environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
 
 main:
   build settings
+  build settings.remove
 
 install:
   shell ./install.sh parameter:'work' parameter:'verbosity' parameter:'color'
index 4d0c759350a27caebb3b0279253f06aa9b1c1b11..04d9ddf6a86d29b625870cb786f74ec9ad271b69 100644 (file)
@@ -1,6 +1,6 @@
 # fss-0001
 #
-# Builds the main remove program of the project.
+# Builds the remove library of the project.
 #
 # Modes:
 #   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
@@ -41,11 +41,9 @@ build_libraries-individual_thread -lf_thread
 build_libraries-level -lfll_2 -lfll_1 -lfll_0
 build_libraries-monolithic -lfll
 
-build_sources_library main/common.c main/common/define.c main/common/enumeration.c main/common/print.c main/common/string.c main/common/type.c main/convert.c main/operate.c main/print/error.c main/print/message.c main/print/simulate.c main/print/verbose.c main/print/warning.c main/remove.c main/signal.c main/thread.c
+build_sources_library common.c common/define.c common/enumeration.c common/print.c common/string.c common/type.c convert.c operate.c print/error.c print/message.c print/simulate.c print/verbose.c print/warning.c remove.c signal.c thread.c
 
-build_sources_headers main/common.h main/common/define.h main/common/enumeration.h main/common/print.h main/common/string.h main/common/type.h main/convert.h main/operate.h main/print/error.h main/print/message.h main/print/simulate.h main/print/verbose.h main/print/warning.h main/remove.h main/signal.h main/thread.h
-
-build_sources_program main/main.c
+build_sources_headers common.h common/define.h common/enumeration.h common/print.h common/string.h common/type.h convert.h operate.h print/error.h print/message.h print/simulate.h print/verbose.h print/warning.h remove.h signal.h thread.h
 
 build_sources_documentation man
 
@@ -53,7 +51,7 @@ build_script yes
 build_shared yes
 build_static no
 
-path_headers program/kevux/tools/remove
+path_headers program/kevux/tools/remove/main
 path_library_script script
 path_library_shared shared
 path_library_static static
@@ -63,7 +61,7 @@ path_object_static static
 path_program_script script
 path_program_shared shared
 path_program_static static
-path_sources sources/c/program/remove
+path_sources sources/c/program/remove/main
 
 has_path_standard no
 preserve_path_headers yes
diff --git a/data/build/remove/settings.remove b/data/build/remove/settings.remove
new file mode 100644 (file)
index 0000000..3e5ea11
--- /dev/null
@@ -0,0 +1,96 @@
+# fss-0001
+#
+# Builds the remove program of the project.
+#
+# Modes:
+#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
+#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
+#   - level:             Compile using per level libraries.
+#   - monolithic:        Compile using per monolithic libraries.
+#   - clang:             Use clang rather than the default, which is generally gcc.
+#   - gcc:               Use gcc specific settings.
+#   - gcc_13:            Use gcc version 13 or greater specific settings.
+#   - test:              Compile for a test, such as unit testing.
+#   - fanalyzer:         Compile using GCC's -fanalyzer compile time option.
+#   - coverage:          Compile for building coverage.
+#   - thread:            Compile with thread support.
+#   - threadless:        Compile without thread support.
+#
+
+build_name remove
+stage remove
+
+version_major 0
+version_minor 5
+version_micro 0
+version_file micro
+version_target minor
+
+modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage thread threadless
+modes_default monolithic thread gcc
+
+build_compiler gcc
+build_compiler-clang clang
+build_indexer ar
+build_indexer_arguments rcs
+build_language c
+
+build_libraries -lc -lremove
+build_libraries-individual -lfll_error -lfll_print -lfll_program -lfl_conversion -fl_directory -lfl_print -lf_account -lf_color -lf_compare -lf_console -lf_conversion -lf_directory -lf_file -lf_memory -lf_pipe -lf_print -lf_rip -lf_signal -lf_string -lf_type_array -lf_utf
+build_libraries-individual_thread -lf_thread
+build_libraries-level -lfll_2 -lfll_1 -lfll_0
+build_libraries-monolithic -lfll
+
+build_sources_program config.c remove.c main.c string.c
+
+build_sources_headers remove.h string.h
+
+build_sources_documentation man
+
+build_script yes
+build_shared yes
+build_static no
+
+path_headers program/kevux/tools/remove/remove
+path_library_script script
+path_library_shared shared
+path_library_static static
+path_object_script script
+path_object_shared shared
+path_object_static static
+path_program_script script
+path_program_shared shared
+path_program_static static
+path_sources sources/c/program/remove/remove
+
+has_path_standard no
+preserve_path_headers yes
+
+search_exclusive yes
+search_shared yes
+search_static yes
+
+environment PATH LD_LIBRARY_PATH
+environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
+
+#defines -D_di_libcap_
+defines -D_libcap_legacy_only_
+defines-threadless -D_di_thread_support_
+defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
+
+# This is needed for glibc and strptime() usage.
+defines -D_GNU_SOURCE=1
+
+flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
+flags -fstack-clash-protection -fno-delete-null-pointer-checks
+flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
+flags-thread -pthread
+flags-clang -Wno-logical-op-parentheses
+flags-gcc_13 -fstrict-flex-arrays=3
+flags-test -O0 -fstack-protector-strong -Wall
+flags-fanalyzer -fanalyzer
+flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/
+
+flags_library -fPIC
+flags_object -fPIC
+flags_program -fPIE
index 4813f0f453a55b6dc0a8a45de506482821bf3acd..ead42113b1f0d1642f06579beade766cafdf1dad 100644 (file)
@@ -2,13 +2,14 @@
 
 settings:
   fail exit
-  modes individual level monolithic clang test fanalyzer coverage threaded threadless
+  modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage thread threadless
 
   environment PATH LD_LIBRARY_PATH
   environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
 
 main:
   build settings
+  build settings.tacocat
 
 install:
   shell ./install.sh parameter:'work' parameter:'verbosity' parameter:'color'
index 0e007c3fcaaf659277b5cbfcd2932572a97f6620..6c0410abe90afcd292f5575d73f5b090adc6e227 100644 (file)
@@ -43,11 +43,9 @@ build_libraries-individual_thread -lf_thread
 build_libraries-level -lfll_2 -lfll_1 -lfll_0
 build_libraries-monolithic -lfll
 
-build_sources_library main/common.c main/common/define.c main/common/enumeration.c main/common/print.c main/common/string.c main/common/type.c main/print/error.c main/print/message.c main/print/verbose.c main/print/warning.c main/packet.c main/process.c main/receive.c main/send.c main/signal.c main/tacocat.c main/thread.c
+build_sources_library common.c common/define.c common/enumeration.c common/print.c common/string.c common/type.c print/error.c print/message.c print/verbose.c print/warning.c packet.c process.c receive.c send.c signal.c tacocat.c thread.c
 
-build_sources_headers main/common.h main/common/define.h main/common/enumeration.h main/common/print.h main/common/string.h main/common/type.h main/print/error.h main/print/message.h main/print/verbose.h main/print/warning.h main/packet.h main/process.h main/receive.h main/send.h main/signal.h main/tacocat.h main/thread.h
-
-build_sources_program main/main.c
+build_sources_headers common.h common/define.h common/enumeration.h common/print.h common/string.h common/type.h print/error.h print/message.h print/verbose.h print/warning.h packet.h process.h receive.h send.h signal.h tacocat.h thread.h
 
 build_sources_documentation man
 
@@ -55,7 +53,7 @@ build_script yes
 build_shared yes
 build_static no
 
-path_headers program/kevux/tools/tacocat
+path_headers program/kevux/tools/tacocat/main
 path_library_script script
 path_library_shared shared
 path_library_static static
@@ -65,7 +63,7 @@ path_object_static static
 path_program_script script
 path_program_shared shared
 path_program_static static
-path_sources sources/c/program/tacocat
+path_sources sources/c/program/tacocat/main
 
 has_path_standard no
 preserve_path_headers yes
diff --git a/data/build/tacocat/settings.tacocat b/data/build/tacocat/settings.tacocat
new file mode 100644 (file)
index 0000000..f6ea54e
--- /dev/null
@@ -0,0 +1,95 @@
+# fss-0001
+#
+# Builds the main tacocat program of the project.
+#
+# Modes:
+#   - individual:        Compile using per project (individual) libraries, does not handle thread or threadless cases.
+#   - individual_thread: This is required when compiling in individual mode with "thread" mode.
+#   - level:             Compile using per level libraries.
+#   - monolithic:        Compile using per monolithic libraries.
+#   - clang:             Use clang rather than the default, which is generally gcc
+#   - gcc:               Use gcc specific settings.
+#   - gcc_13:            Use gcc version 13 or greater specific settings.
+#   - test:              Compile for a test, such as unit testing.
+#   - fanalyzer:         Compile using GCC's -fanalyzer compile time option.
+#   - coverage:          Compile for building coverage.
+#   - thread:            Compile with thread support.
+#   - threadless:        Compile without thread support.
+#
+
+build_name tacocat
+stage tacocat
+
+version_major 0
+version_minor 5
+version_micro 0
+version_file micro
+version_target minor
+
+modes individual individual_thread level monolithic clang gcc gcc_13 test fanalyzer coverage thread threadless
+modes_default monolithic thread gcc
+
+build_compiler gcc
+build_compiler-clang clang
+build_indexer ar
+build_indexer_arguments rcs
+build_language c
+
+build_libraries -lc -ltacocat
+build_libraries-individual -lfll_error -lfll_fss -lfll_print -lfll_program
+build_libraries-individual -lfl_conversion -lfl_fss -lfl_print -lfl_status_string
+build_libraries-individual -lf_abstruse -lf_color -lf_compare -lf_console -lf_conversion -lf_file -lf_fss -lf_memory -lf_network -lf_parse -lf_path -lf_pipe -lf_print -lf_random -lf_rip -lf_signal -lf_socket -lf_status_string -lf_string -lf_time -lf_type_array -lf_utf
+build_libraries-individual_thread -lf_thread
+build_libraries-level -lfll_2 -lfll_1 -lfll_0
+build_libraries-monolithic -lfll
+
+build_sources_program config.c tacocat.c main.c string.c
+
+build_sources_headers tacocat.h string.h
+
+build_sources_documentation man
+
+build_script yes
+build_shared yes
+build_static no
+
+path_headers program/kevux/tools/tacocat/tacocat
+path_library_script script
+path_library_shared shared
+path_library_static static
+path_object_script script
+path_object_shared shared
+path_object_static static
+path_program_script script
+path_program_shared shared
+path_program_static static
+path_sources sources/c/program/tacocat/tacocat
+
+has_path_standard no
+preserve_path_headers yes
+
+search_exclusive yes
+search_shared yes
+search_static yes
+
+environment PATH LD_LIBRARY_PATH
+environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY LC_NUMERIC LC_TIME LOCPATH NLSPATH
+
+#defines -D_di_libcap_
+defines -D_libcap_legacy_only_
+defines-threadless -D_di_thread_support_
+defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_
+
+flags -O2 -g -fdiagnostics-color=always -Wno-logical-not-parentheses -Wno-parentheses -Wno-missing-braces
+flags -fstack-clash-protection -fno-delete-null-pointer-checks
+flags -Wl,-z,nodlopen -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now
+flags-thread -pthread
+flags-clang -Wno-logical-op-parentheses
+flags-gcc_13 -fstrict-flex-arrays=3
+flags-test -O0 -fstack-protector-strong -Wall
+flags-fanalyzer -fanalyzer
+flags-coverage -O0 --coverage -fprofile-abs-path -fprofile-dir=build/coverage/
+
+flags_library -fPIC
+flags_object -fPIC
+flags_program -fPIE
index efe1100a9c2d0454361db91da65a7415656f481d..e6e0259893e6cca2e1ecb927d54a9524052e3192 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_remove_common_h
-#define _kt_remove_common_h
+#ifndef _kt_remove_main_common_h
+#define _kt_remove_main_common_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -92,4 +92,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_common_h
+#endif // _kt_remove_main_common_h
index cf192b3ef1ec767e2790c2f7ff78189b3b6f2a3f..3a8867f64ad1ab3d4e53199e42825d5c021556b2 100644 (file)
@@ -8,11 +8,6 @@ extern "C" {
   const f_string_static_t kt_remove_program_version_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_version_s, 0, KT_REMOVE_program_version_s_length);
 #endif // _di_kt_remove_program_version_s_
 
-#ifndef _di_kt_remove_program_name_s_
-  const f_string_static_t kt_remove_program_name_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_name_s, 0, KT_REMOVE_program_name_s_length);
-  const f_string_static_t kt_remove_program_name_long_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_name_long_s, 0, KT_REMOVE_program_name_long_s_length);
-#endif // _di_kt_remove_program_name_s_
-
 #ifndef kt_remove_program_help_parameters_s_
   const f_string_static_t kt_remove_program_help_parameters_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_help_parameters_s, 0, KT_REMOVE_program_help_parameters_s_length);
 #endif // _di_utf8_program_help_parameters_s_
index afaf3eec654ccdbeb864f74d9441cd4ebeea8203..3a17234bdd3a2b70d5d73f3ca8e86e903f2d23ef 100644 (file)
@@ -49,12 +49,6 @@ extern "C" {
  * The program name.
  */
 #ifndef _di_kt_remove_program_name_s_
-  #define KT_REMOVE_program_name_s      "remove"
-  #define KT_REMOVE_program_name_long_s "Remove"
-
-  #define KT_REMOVE_program_name_s_length      6
-  #define KT_REMOVE_program_name_long_s_length 6
-
   extern const f_string_static_t kt_remove_program_name_s;
   extern const f_string_static_t kt_remove_program_name_long_s;
 #endif // _di_kt_remove_program_name_s_
index d3aef9c104a11c927e5b6d947ca8251f826e24a8..0985b1d3eff76eb0b01f275b0f2c48442f56d146 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_remove_convert_h
-#define _kt_remove_convert_h
+#ifndef _kt_remove_main_convert_h
+#define _kt_remove_main_convert_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -206,4 +206,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_convert_h
+#endif // _kt_remove_main_convert_h
index 23084a6636d265e5c9dc283e3c8840d3feac717f..f35afcb99880cfc4c19dae5a149fce89b9ff3993 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_remove_operate_h
-#define _kt_remove_operate_h
+#ifndef _kt_remove_main_operate_h
+#define _kt_remove_main_operate_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -163,4 +163,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_operate_h
+#endif // _kt_remove_main_operate_h
index 4be11dd09d80381fd34a493975e7f358326aca7a..4191c81a3c04e3f3254c5d7279eee333bad43fc8 100644 (file)
@@ -56,14 +56,7 @@ extern "C" {
 
     if (!main) return;
 
-    f_thread_id_t id_signal;
-
-    memset(&id_signal, 0, sizeof(f_thread_id_t));
-
     kt_remove_process_normal_operate(((kt_remove_main_t *) main));
-
-    f_thread_cancel(id_signal);
-    f_thread_join(id_signal, 0);
   }
 #endif // _di_kt_remove_process_normal_
 
index c39668bab3077cbdec9f1f0d4399f36e23fdd038..b481e1f3aec1778c270eb02cf7edf552c1721113 100644 (file)
@@ -7,8 +7,8 @@
  *
  * This program provides a program to perform file, directory, and symbolic link remove file removals.
  */
-#ifndef _kt_remove_h
-#define _kt_remove_h
+#ifndef _kt_remove_main_remove_h
+#define _kt_remove_main_remove_h
 
 // Libc includes.
 #include <stdio.h>
@@ -149,4 +149,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_h
+#endif // _kt_remove_main_remove_h
index 1726994e9e979b80699905a346771fb45a869fac..073b08ea7cba5fdcf248aa7ef01aa5214153ede8 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_remove_signal_h
-#define _kt_remove_signal_h
+#ifndef _kt_remove_main_signal_h
+#define _kt_remove_main_signal_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -79,4 +79,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_signal_h
+#endif // _kt_remove_main_signal_h
index 24ded368095fcfac089532d0919d2936f5f7b3b4..9147f35d1a0738cc9821f72495c145022d6a6e85 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_remove_thread_h
-#define _kt_remove_thread_h
+#ifndef _kt_remove_main_thread_h
+#define _kt_remove_main_thread_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -43,4 +43,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_remove_thread_h
+#endif // _kt_remove_main_thread_h
diff --git a/sources/c/program/remove/remove/config.c b/sources/c/program/remove/remove/config.c
new file mode 100644 (file)
index 0000000..1ac2545
--- /dev/null
@@ -0,0 +1 @@
+#include "config.h"
diff --git a/sources/c/program/remove/remove/config.h b/sources/c/program/remove/remove/config.h
new file mode 100644 (file)
index 0000000..e69de29
similarity index 99%
rename from sources/c/program/remove/main/main.c
rename to sources/c/program/remove/remove/main.c
index 52883dd1a3fc6d1a97d094643f7cd763a5facf87..1854a3f2edb1defabf0549f99427df04fc0e0997 100644 (file)
@@ -52,7 +52,7 @@ int main(const int argc, const f_string_t *argv, const f_string_t *envp) {
       kt_remove_setting_load(arguments, &data);
     }
 
-    status_code_main(&data);
+    kt_remove_main(&data);
   #else
     {
       f_thread_id_t id_signal;
similarity index 88%
rename from sources/c/program/remove/main/main.h
rename to sources/c/program/remove/remove/main.h
index f57355f0e8f5957a260c82b64b568b8c22c4c082..3cd94742475fee0907bae03eaade393d4eb87e1a 100644 (file)
@@ -8,8 +8,8 @@
  * This file is only ever included by main.c and should not normally be included anywhere else.
  * Anything that wants to include this should be providing the "remove" program functionality in some manner.
  */
-#ifndef _kt_remove_main_h
-#define _kt_remove_main_h
+#ifndef _kt_remove_remove_main_h
+#define _kt_remove_remove_main_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -35,4 +35,4 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp);
 } // extern "C"
 #endif
 
-#endif // _kt_remove_main_h
+#endif // _kt_remove_remove_main_h
diff --git a/sources/c/program/remove/remove/remove.c b/sources/c/program/remove/remove/remove.c
new file mode 100644 (file)
index 0000000..97cae6c
--- /dev/null
@@ -0,0 +1,9 @@
+#include "remove.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/sources/c/program/remove/remove/remove.h b/sources/c/program/remove/remove/remove.h
new file mode 100644 (file)
index 0000000..1ff2e3b
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * FLL - Level 3
+ *
+ * Project: Kevux Tools
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * This program provides the base include for the remove program.
+ */
+#ifndef _kt_remove_remove_remove_h
+#define _kt_remove_remove_remove_h
+
+// Remove includes.
+#include <program/kevux/tools/remove/main/remove.h>
+#include <program/kevux/tools/remove/remove/string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _kt_remove_remove_remove_h
diff --git a/sources/c/program/remove/remove/string.c b/sources/c/program/remove/remove/string.c
new file mode 100644 (file)
index 0000000..2ce068d
--- /dev/null
@@ -0,0 +1,14 @@
+#include "remove.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_remove_program_name_s_
+  const f_string_static_t kt_remove_program_name_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_name_s, 0, KT_REMOVE_program_name_s_length);
+  const f_string_static_t kt_remove_program_name_long_s = macro_f_string_static_t_initialize_1(KT_REMOVE_program_name_long_s, 0, KT_REMOVE_program_name_long_s_length);
+#endif // _di_remove_program_name_s_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/sources/c/program/remove/remove/string.h b/sources/c/program/remove/remove/string.h
new file mode 100644 (file)
index 0000000..1bacfb7
--- /dev/null
@@ -0,0 +1,34 @@
+/**
+ * FLL - Level 3
+ *
+ * Project: Kevux Tools
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common string structures for the remove program.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _kt_remove_remove_string_h
+#define _kt_remove_remove_string_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * The program name.
+ */
+#ifndef _di_kt_remove_program_name_s_
+  #define KT_REMOVE_program_name_s      "remove"
+  #define KT_REMOVE_program_name_long_s "Remove"
+
+  #define KT_REMOVE_program_name_s_length      6
+  #define KT_REMOVE_program_name_long_s_length 6
+#endif // _di_kt_remove_program_name_s_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _kt_remove_remove_string_h
index 753b95f41225e79b0b447aff1ae2cbe561a08183..2863573018576b5cd749ec57b51867e136b1beb7 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_h
-#define _kt_tacocat_common_h
+#ifndef _kt_tacocat_main_common_h
+#define _kt_tacocat_main_common_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -139,4 +139,5 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_h
+#endif // _kt_tacocat_main_common_h
+
index 5a71168785ecdc75f77cfbed807dc9d24d6a9f57..9d3869e9b68a49c60c7a65fc51b14b69348206ee 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_define_h
-#define _kt_tacocat_common_define_h
+#ifndef _kt_tacocat_main_common_define_h
+#define _kt_tacocat_main_common_define_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -316,4 +316,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_define_h
+#endif // _kt_tacocat_main_common_define_h
index ce596935a2cee8475100f04b5314f6b22b18f28c..49afe90ae9aada753414f4c066e4f6ae4afadc41 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_enumeration_h
-#define _kt_tacocat_common_enumeration_h
+#ifndef _kt_tacocat_main_common_enumeration_h
+#define _kt_tacocat_main_common_enumeration_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -116,4 +116,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_enumeration_h
+#endif // _kt_tacocat_main_common_enumeration_h
index d1556a1d92924445067ced6a783be039def3bde4..49dc9fad9fd190f832c6c5aa2b4c28bc8644fd38 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_print_h
-#define _kt_tacocat_common_print_h
+#ifndef _kt_tacocat_main_common_print_h
+#define _kt_tacocat_main_common_print_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -91,4 +91,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_print_h
+#endif // _kt_tacocat_main_common_print_h
index 4b17022daaa67f741676a2b5934f6e6152b1ea5b..bf5fbeff68d873d5a1f6739eca782fada07f4e30 100644 (file)
@@ -8,11 +8,6 @@ extern "C" {
   const f_string_static_t kt_tacocat_program_version_s = macro_f_string_static_t_initialize_1(KT_TACOCAT_program_version_s, 0, KT_TACOCAT_program_version_s_length);
 #endif // _di_kt_tacocat_program_version_s_
 
-#ifndef _di_kt_tacocat_program_name_s_
-  const f_string_static_t kt_tacocat_program_name_s = macro_f_string_static_t_initialize_1(KT_TACOCAT_program_name_s, 0, KT_TACOCAT_program_name_s_length);
-  const f_string_static_t kt_tacocat_program_name_long_s = macro_f_string_static_t_initialize_1(KT_TACOCAT_program_name_long_s, 0, KT_TACOCAT_program_name_long_s_length);
-#endif // _di_kt_tacocat_program_name_s_
-
 #ifndef kt_tacocat_program_help_parameters_s_
   // Not used.
 #endif // _di_utf8_program_help_parameters_s_
index 82157041c836b39dfc18406f9acbfe81bfdfb7e0..370fd9ddeb287e8d2d34737c7b3399136858c01f 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_string_h
-#define _kt_tacocat_common_string_h
+#ifndef _kt_tacocat_main_common_string_h
+#define _kt_tacocat_main_common_string_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -49,12 +49,6 @@ extern "C" {
  * The program name.
  */
 #ifndef _di_kt_tacocat_program_name_s_
-  #define KT_TACOCAT_program_name_s      "tacocat"
-  #define KT_TACOCAT_program_name_long_s "TacocaT"
-
-  #define KT_TACOCAT_program_name_s_length      7
-  #define KT_TACOCAT_program_name_long_s_length 7
-
   extern const f_string_static_t kt_tacocat_program_name_s;
   extern const f_string_static_t kt_tacocat_program_name_long_s;
 #endif // _di_kt_tacocat_program_name_s_
@@ -193,4 +187,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_string_h
+#endif // _kt_tacocat_main_common_string_h
index 5f390e390b6a92bcac5c16b9846689245fe8cf30..ffe226dbd4f2d0f46a437b6b0a4f76025b4c8094 100644 (file)
@@ -9,8 +9,8 @@
  *
  * This is auto-included and should not need to be explicitly included.
  */
-#ifndef _kt_tacocat_common_type_h
-#define _kt_tacocat_common_type_h
+#ifndef _kt_tacocat_main_common_type_h
+#define _kt_tacocat_main_common_type_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -481,4 +481,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_common_type_h
+#endif // _kt_tacocat_main_common_type_h
index 13ce42e13e5e3a8b6374c289226af885733165db..514316a5aaebe4834432562902fa1838e87e625b 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_packet_h
-#define _kt_tacocat_packet_h
+#ifndef _kt_tacocat_main_packet_h
+#define _kt_tacocat_main_packet_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -116,4 +116,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_packet_h
+#endif // _kt_tacocat_main_packet_h
index 472f5c5d57de882c89e956b4e62fa3df1efc58fd..b68f18b00d0f0af3027811a753691b8fb890cc52 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_process_h
-#define _kt_tacocat_process_h
+#ifndef _kt_tacocat_main_process_h
+#define _kt_tacocat_main_process_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -160,4 +160,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_process_h
+#endif // _kt_tacocat_main_process_h
index b78e9307a14608245ea8bc9c7667fc84ed662ae5..b6e625cab8488abbdc6cf1acc4de5f21ae8a9aa9 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_receive_h
-#define _kt_tacocat_receive_h
+#ifndef _kt_tacocat_main_receive_h
+#define _kt_tacocat_main_receive_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -139,4 +139,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_receive_h
+#endif // _kt_tacocat_main_receive_h
index 3c07b5515647152c7c4f767b6fd4ec950accdce1..1bfe898141f955b28b6182fd5cb42a2c2dd160f7 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_send_h
-#define _kt_tacocat_send_h
+#ifndef _kt_tacocat_main_send_h
+#define _kt_tacocat_main_send_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -136,4 +136,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_send_h
+#endif // _kt_tacocat_main_send_h
index e44651f20b78ea924341131e4bad6b665efb3621..7bcc972d0c665c6eae862ae669febe0903ceac3e 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_signal_h
-#define _kt_tacocat_signal_h
+#ifndef _kt_tacocat_main_signal_h
+#define _kt_tacocat_main_signal_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -79,4 +79,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_signal_h
+#endif // _kt_tacocat_main_signal_h
index 4faa2e63b28d4cdf2aaee5aac40b68cc9bce265b..314e65e21c6d6f695442ad387d66f4076fe17a1d 100644 (file)
@@ -5,10 +5,10 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  *
- * This program provides a program to perform file, directory, and symbolic link remove file removals.
+ * This program provides a program to perform network communication.
  */
-#ifndef _kt_tacocat_h
-#define _kt_tacocat_h
+#ifndef _kt_tacocat_main_tacocat_h
+#define _kt_tacocat_main_tacocat_h
 
 // Libc includes.
 #include <stdio.h>
@@ -108,4 +108,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_h
+#endif // _kt_tacocat_main_tacocat_h
index 8aa11d7a5a757a8f51b183e8514581ba46ee9a00..0a7fb218aef2ebdc0b1a34294e7babce7fe6e98f 100644 (file)
@@ -5,8 +5,8 @@
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  */
-#ifndef _kt_tacocat_thread_h
-#define _kt_tacocat_thread_h
+#ifndef _kt_tacocat_main_thread_h
+#define _kt_tacocat_main_thread_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -43,4 +43,4 @@ extern "C" {
 } // extern "C"
 #endif
 
-#endif // _kt_tacocat_thread_h
+#endif // _kt_tacocat_main_thread_h
diff --git a/sources/c/program/tacocat/tacocat/config.c b/sources/c/program/tacocat/tacocat/config.c
new file mode 100644 (file)
index 0000000..1ac2545
--- /dev/null
@@ -0,0 +1 @@
+#include "config.h"
diff --git a/sources/c/program/tacocat/tacocat/config.h b/sources/c/program/tacocat/tacocat/config.h
new file mode 100644 (file)
index 0000000..e69de29
similarity index 79%
rename from sources/c/program/tacocat/main/main.h
rename to sources/c/program/tacocat/tacocat/main.h
index 58011b0740cc89e5826d9d0661fec2d14e5315fe..6ce45d03f68c0f509ee23f96c074e47a557317fd 100644 (file)
@@ -1,15 +1,15 @@
 /**
- * Kevux Tools - TacocaT
+ * Kevux Tools - Remove
  *
  * Project: Kevux Tools
  * API Version: 0.5
  * Licenses: lgpl-2.1-or-later
  *
  * This file is only ever included by main.c and should not normally be included anywhere else.
- * Anything that wants to include this should be providing the "remove" program functionality in some manner.
+ * Anything that wants to include this should be providing the "tacocat" program functionality in some manner.
  */
-#ifndef _kt_remove_main_h
-#define _kt_remove_main_h
+#ifndef _kt_tacocat_tacocat_main_h
+#define _kt_tacocat_tacocat_main_h
 
 #ifdef __cplusplus
 extern "C" {
@@ -35,4 +35,4 @@ extern int main(const int argc, const f_string_t *argv, const f_string_t *envp);
 } // extern "C"
 #endif
 
-#endif // _kt_remove_main_h
+#endif // _kt_tacocat_tacocat_main_h
diff --git a/sources/c/program/tacocat/tacocat/string.c b/sources/c/program/tacocat/tacocat/string.c
new file mode 100644 (file)
index 0000000..866ccef
--- /dev/null
@@ -0,0 +1,14 @@
+#include "tacocat.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_kt_tacocat_program_name_s_
+  const f_string_static_t kt_tacocat_program_name_s = macro_f_string_static_t_initialize_1(KT_TACOCAT_program_name_s, 0, KT_TACOCAT_program_name_s_length);
+  const f_string_static_t kt_tacocat_program_name_long_s = macro_f_string_static_t_initialize_1(KT_TACOCAT_program_name_long_s, 0, KT_TACOCAT_program_name_long_s_length);
+#endif // _di_kt_tacocat_program_name_s_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/sources/c/program/tacocat/tacocat/string.h b/sources/c/program/tacocat/tacocat/string.h
new file mode 100644 (file)
index 0000000..4a22795
--- /dev/null
@@ -0,0 +1,34 @@
+/**
+ * FLL - Level 3
+ *
+ * Project: Kevux Tools
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * Provides the common string structures for the tacocat program.
+ *
+ * This is auto-included and should not need to be explicitly included.
+ */
+#ifndef _kt_tacocat_tacocat_string_h
+#define _kt_tacocat_tacocat_string_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * The program name.
+ */
+#ifndef _di_kt_tacocat_program_name_s_
+  #define KT_TACOCAT_program_name_s      "tacocat"
+  #define KT_TACOCAT_program_name_long_s "TacocaT"
+
+  #define KT_TACOCAT_program_name_s_length      7
+  #define KT_TACOCAT_program_name_long_s_length 7
+#endif // _di_kt_tacocat_program_name_s_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _kt_tacocat_tacocat_string_h
diff --git a/sources/c/program/tacocat/tacocat/tacocat.c b/sources/c/program/tacocat/tacocat/tacocat.c
new file mode 100644 (file)
index 0000000..d798367
--- /dev/null
@@ -0,0 +1,9 @@
+#include "tacocat.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
diff --git a/sources/c/program/tacocat/tacocat/tacocat.h b/sources/c/program/tacocat/tacocat/tacocat.h
new file mode 100644 (file)
index 0000000..4df4bae
--- /dev/null
@@ -0,0 +1,25 @@
+/**
+ * FLL - Level 3
+ *
+ * Project: Kevux Tools
+ * API Version: 0.7
+ * Licenses: lgpl-2.1-or-later
+ *
+ * This program provides the base include for the tacocat program.
+ */
+#ifndef _kt_tacocat_tacocat_tacocat_h
+#define _kt_tacocat_tacocat_tacocat_h
+
+// Remove includes.
+#include <program/kevux/tools/tacocat/main/tacocat.h>
+#include <program/kevux/tools/tacocat/tacocat/string.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _kt_tacocat_tacocat_tacocat_h