]> Kevux Git Server - control/commit
Refactor: Change bit-wise enumerations into defines.
authorKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:29 +0000 (21:45 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:29 +0000 (21:45 -0500)
commit52879d062f9301dd5893ba2ceb3141474a8cc89f
tree006de1b42f38c6cbb7f617c8f91f75e2baea6a33
parent4692d9b2169cde0c4ba313cab2f661874b371105
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.
sources/c/program/control/control/main.c
sources/c/program/control/main/common.c
sources/c/program/control/main/common/define.h
sources/c/program/control/main/common/enumeration.h
sources/c/program/control/main/common/type.h
sources/c/program/control/main/packet.c
sources/c/program/control/main/process.c