]> Kevux Git Server - controller/commit
Progress: Continue migrating the project, possibly wrapping up the migration.
authorKevin Day <Kevin@kevux.org>
Tue, 9 Jul 2024 04:13:43 +0000 (23:13 -0500)
committerKevin Day <Kevin@kevux.org>
Tue, 9 Jul 2024 04:23:12 +0000 (23:23 -0500)
commitb7b607c2a4971dd2e37bbfd50bdf73f6868b0310
tree25a43bd8315017e4fc35817a12d1f77d63104f72
parent8b6f31b79f03b111faa30b040b5b7b60353efcaa
Progress: Continue migrating the project, possibly wrapping up the migration.

Additional review and tests are still required but this fixes some additional problems encountered during testing.

Try to improve grammar by treating special variables as proper nouns, such as Entry, Exit, Rule, Item, etc...

Move the environment map onto the Instance.
I decided not to put it on the cache but I might change my mind as this is being added for cache purposes.
This should help reduce repeated allocations on every execute.
I may want to add features to the Controller program to better control when to clear or deallocate memory for more security at the cost of resources and performance.
This would allow for post-compile-time configuration.

A mistake exposed a lack of error reporting for when Items is an empty array.
Add controller_print_error_rule_item_execute_none() to account for this.

The bug is that "object" and "content" in controller_rule_parameters_read() are actually optional.
I was returning a parameter error when these were not defined.

Reduce the local allocation of f_state_t and pass it along as a parameter.
These particular functions should be being called sequentially and should be able to safely pass along the state between them.
The settings for the IKI read state is temporarily modified as appropriate and then restored when finished.

Don't assign enabled variable on lock failure to avoid potential race condition.
89 files changed:
sources/c/controller/main.h
sources/c/init/init.h
sources/c/init/main.h
sources/c/main/common.c
sources/c/main/common/define/entry.h
sources/c/main/common/define/rule.h
sources/c/main/common/enumeration/entry.h
sources/c/main/common/enumeration/instance.h
sources/c/main/common/enumeration/process.h
sources/c/main/common/enumeration/rule.h
sources/c/main/common/enumeration/thread.h
sources/c/main/common/string/general.h
sources/c/main/common/string/rule.h
sources/c/main/common/type.h
sources/c/main/common/type/cache.h
sources/c/main/common/type/entry.h
sources/c/main/common/type/instance.c
sources/c/main/common/type/instance.h
sources/c/main/common/type/lock.h
sources/c/main/common/type/process.h
sources/c/main/common/type/rule.h
sources/c/main/convert.h
sources/c/main/entry.h
sources/c/main/entry/action.h
sources/c/main/entry/preprocess.c
sources/c/main/entry/preprocess.h
sources/c/main/entry/process.c
sources/c/main/entry/process.h
sources/c/main/entry/setting.h
sources/c/main/instance/prepare.h
sources/c/main/lock.h
sources/c/main/perform.h
sources/c/main/print/debug/perform/pid.h
sources/c/main/print/debug/rule/action.h
sources/c/main/print/debug/rule/execute.h
sources/c/main/print/error/entry.h
sources/c/main/print/error/entry/action.h
sources/c/main/print/error/entry/item.h
sources/c/main/print/error/entry/setting.h
sources/c/main/print/error/perform/pid.h
sources/c/main/print/error/rule.c
sources/c/main/print/error/rule.h
sources/c/main/print/error/rule/action.c
sources/c/main/print/error/rule/action.h
sources/c/main/print/error/rule/item.c
sources/c/main/print/error/rule/item.h
sources/c/main/print/error/rule/setting.c
sources/c/main/print/error/rule/setting.h
sources/c/main/print/message.c
sources/c/main/print/message/entry.h
sources/c/main/print/message/entry/action.h
sources/c/main/print/message/entry/item.c
sources/c/main/print/message/entry/item.h
sources/c/main/print/output/entry/setting.h
sources/c/main/print/output/rule/execute.h
sources/c/main/print/output/rule/setting.h
sources/c/main/print/output/rule/validate.c
sources/c/main/print/output/rule/validate.h
sources/c/main/print/warning/entry/action.h
sources/c/main/print/warning/entry/item.h
sources/c/main/print/warning/entry/setting.h
sources/c/main/print/warning/rule/action.h
sources/c/main/print/warning/rule/item.h
sources/c/main/print/warning/rule/setting.h
sources/c/main/process.c
sources/c/main/rule.c
sources/c/main/rule.h
sources/c/main/rule/action.c
sources/c/main/rule/action.h
sources/c/main/rule/execute.c
sources/c/main/rule/execute.h
sources/c/main/rule/expand.h
sources/c/main/rule/instance.c
sources/c/main/rule/instance.h
sources/c/main/rule/is.h
sources/c/main/rule/item.c
sources/c/main/rule/item.h
sources/c/main/rule/parameter.c
sources/c/main/rule/parameter.h
sources/c/main/rule/read.c
sources/c/main/rule/read.h
sources/c/main/rule/setting.h
sources/c/main/rule/wait.h
sources/c/main/thread/entry.h
sources/c/main/thread/instance.c
sources/c/main/thread/instance.h
sources/c/main/thread/is.h
sources/c/main/thread/rule.h
sources/c/main/thread/signal.h