]> Kevux Git Server - fll/commitdiff
Update: Implement threaded signal handler in Featureless Make, handling missed code...
authorKevin Day <kevin@kevux.org>
Thu, 6 Apr 2023 02:02:52 +0000 (21:02 -0500)
committerKevin Day <kevin@kevux.org>
Thu, 6 Apr 2023 02:02:52 +0000 (21:02 -0500)
I missed a few code blocks when I created commit 9e0529297bfdb1529be685eacd3ca5784ea8e946.

level_3/fake/c/main/build.c
level_3/fake/c/main/fake.c
level_3/fake/c/main/make/operate.c

index 16225883a666842f22800ec84566810ddf9f89ca..f09e682efe28c0dc61f6800e3bebf73d2e4b92de 100644 (file)
@@ -198,18 +198,7 @@ extern "C" {
 
     for (f_array_length_t i = 0; i < files.used; ++i) {
 
-      if (!((++main->program.signal_check) % fake_signal_check_short_d)) {
-        if (fll_program_standard_signal_received(&main->program)) {
-          fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
-
-          main->setting.state.status = F_status_set_error(F_interrupt);
-
-          break;
-        }
-
-        main->program.signal_check = 0;
-      }
-
+      if (fake_signal_check(main)) break;
       if (!files.array[i].used) continue;
 
       path_source.used = source.used;
index 71a2559fde1fcb62842c796d6c912df9c03a5be7..631bf0e3db8c5895c4fe9407ae03a17cfe81b48c 100644 (file)
@@ -133,17 +133,7 @@ extern "C" {
             break;
           }
 
-          if (!((++main->program.signal_check) % fake_signal_check_short_d)) {
-            if (fll_program_standard_signal_received(&main->program)) {
-              fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
-
-              main->setting.state.status = F_status_set_error(F_interrupt);
-
-              break;
-            }
-
-            main->program.signal_check = 0;
-          }
+          if (fake_signal_check(main)) break;
         } // for
       }
 
@@ -205,19 +195,7 @@ extern "C" {
           }
 
           if (main->setting.state.status == F_child) break;
-
-          if (!((++main->program.signal_check) % fake_signal_check_short_d)) {
-            if (fll_program_standard_signal_received(&main->program)) {
-              fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
-
-              main->setting.state.status = F_status_set_error(F_interrupt);
-
-              break;
-            }
-
-            main->program.signal_check = 0;
-          }
-
+          if (fake_signal_check(main)) break;
           if (F_status_is_error(main->setting.state.status)) break;
         } // for
       }
index 19dd6ddd94cdc900b025e90d6aab7613a464046a..6eeff4cc95c5accb72926c374cd516dd6b329641 100644 (file)
@@ -1358,20 +1358,10 @@ extern "C" {
       state_process.operation_previous = state_process.operation;
       state_process.operation = 0;
 
-      if (!((++main->program.signal_check) % fake_signal_check_short_d)) {
-        if (fll_program_standard_signal_received(&main->program)) {
-          fll_program_print_signal_received(&main->program.warning, main->program.signal_received);
-
-          main->setting.state.status = F_status_set_error(F_interrupt);
-
-          break;
-        }
-
-        main->program.signal_check = 0;
-      }
-
       for (j = 0; j < fake_max_operation_d; ++j) {
 
+        if (fake_signal_check(main)) break;
+
         if (f_compare_dynamic_partial_string(operations_name[j].string, main->buffer, operations_name[j].used, section->objects.array[i]) == F_equal_to) {
           state_process.operation = operations_type[j];