]> Kevux Git Server - kevux-tools/commitdiff
Update: Main program structures to follow consistent styling across several projects.
authorKevin Day <Kevin@kevux.org>
Sat, 6 Dec 2025 05:07:31 +0000 (23:07 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 6 Dec 2025 05:07:31 +0000 (23:07 -0600)
sources/c/program/kevux/tools/remove/main/common/type.h
sources/c/program/kevux/tools/tacocat/main/common/type.h

index e10082cb25d92774590f50d22d225b5800a9e413..7928cf0740ccd6663b16ff08f2aaade5da7b531f 100644 (file)
@@ -264,23 +264,25 @@ extern "C" {
 /**
  * The main program data as a single structure.
  *
- * cache:   The program cache.
- * call:    The program callbacks.
  * program: The main program data.
+ *
+ * cache:   The program cache.
+ * call:    The program call backs.
  * setting: The settings data.
  */
 #ifndef _di_kt_remove_main_t_
   struct kt_remove_main_t_ {
+    fll_program_data_t program;
+
     kt_remove_cache_t cache;
     kt_remove_callback_t call;
-    fll_program_data_t program;
     kt_remove_setting_t setting;
   };
 
   #define kt_remove_main_t_initialize { \
+    .program = fll_program_data_t_initialize, \
     .cache   = kt_remove_cache_t_initialize, \
     .call    = kt_remove_callback_t_initialize, \
-    .program = fll_program_data_t_initialize, \
     .setting = kt_remove_setting_t_initialize, \
   }
 #endif // _di_kt_remove_main_t_
index c65bc3800c7733c567de843c4bd5bfece4d0eec7..e7e1ff6cdc68012388ce5f1d537ef3f7ddfb55bb 100644 (file)
@@ -432,25 +432,27 @@ extern "C" {
 /**
  * The main program data as a single structure.
  *
- * cache:    The program cache.
- * call:     The program callbacks.
- * program:  The main program data.
- * setting:  The settings data.
- * thread:   The program thread data.
+ * program: The main program data.
+ *
+ * cache:   The program cache.
+ * call:    The program call backs.
+ * setting: The settings data.
+ * thread:  The program thread data.
  */
 #ifndef _di_kt_tacocat_main_t_
   struct kt_tacocat_main_t_ {
+    fll_program_data_t program;
+
     kt_tacocat_cache_t cache;
     kt_tacocat_call_t call;
-    fll_program_data_t program;
     kt_tacocat_setting_t setting;
     kt_tacocat_thread_t thread;
   };
 
   #define kt_tacocat_main_t_initialize { \
-    .cache    = kt_tacocat_cache_t_initialize, \
-    .call = kt_tacocat_call_t_initialize, \
     .program  = fll_program_data_t_initialize, \
+    .cache    = kt_tacocat_cache_t_initialize, \
+    .call     = kt_tacocat_call_t_initialize, \
     .setting  = kt_tacocat_setting_t_initialize, \
     .thread   = kt_tacocat_thread_t_initialize, \
   }