]> Kevux Git Server - controller/commit
Refactor: Change bit-wise enumerations into defines.
authorKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:38 +0000 (21:45 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:38 +0000 (21:45 -0500)
commit4bae30fe8de3758a4302f08a15e47416f781ebb4
tree1194b6168f7e34d1ad469c57a86b34abc0364c99
parent0702488a9e7ec13d4acd01714dc61265cb460122
Refactor: Change bit-wise enumerations into defines.

I did some reviewing of how the enumerations used for flags are used.
These generally are not being used as a type.
An enumeration slightly increases the resulting binary size.
Enumeration values might be limited to just type of int.

This seems like an easy (small) optimization to just use defines rather than enumerations for flags and other bit-wise numbers.
21 files changed:
sources/c/program/controller/controller/main.c
sources/c/program/controller/init/main.c
sources/c/program/controller/main/common.c
sources/c/program/controller/main/common/define.h
sources/c/program/controller/main/common/enumeration.h
sources/c/program/controller/main/common/type.h
sources/c/program/controller/main/entry/process.c
sources/c/program/controller/main/entry/setting.c
sources/c/program/controller/main/perform.c
sources/c/program/controller/main/print/error/rule/setting.c
sources/c/program/controller/main/print/message/entry/item.c
sources/c/program/controller/main/print/output/entry/setting.c
sources/c/program/controller/main/print/output/rule/setting.c
sources/c/program/controller/main/process.c
sources/c/program/controller/main/rule/instance.c
sources/c/program/controller/main/rule/setting.c
sources/c/program/controller/main/thread/cleanup.c
sources/c/program/controller/main/thread/entry.c
sources/c/program/controller/main/thread/instance.c
sources/c/program/controller/main/thread/signal.c
sources/c/program/controller/main/time.c