]> Kevux Git Server - kevux-tools/commit
Refactor: Change bit-wise enumerations into defines.
authorKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:42:49 +0000 (21:42 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:42:49 +0000 (21:42 -0500)
commit6595bdeea3b7b392892a511480f2fc56ea8136fa
tree9ff492f1673cd5d2397c93ba4eafbdc4e1ed7f0f
parent8e72178ee7ad26af4d5c817dd04cde0b88af28aa
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.
22 files changed:
sources/c/remove/main/common.c
sources/c/remove/main/common.h
sources/c/remove/main/common/define.h
sources/c/remove/main/common/enumeration.h
sources/c/remove/main/common/type.h
sources/c/remove/main/convert.c
sources/c/remove/main/main.c
sources/c/remove/main/operate.c
sources/c/remove/main/print/simulate.c
sources/c/remove/main/print/simulate.h
sources/c/remove/main/print/warning.c
sources/c/remove/main/print/warning.h
sources/c/remove/main/remove.c
sources/c/tacocat/main/common.c
sources/c/tacocat/main/common/define.h
sources/c/tacocat/main/common/enumeration.h
sources/c/tacocat/main/common/type.h
sources/c/tacocat/main/main.c
sources/c/tacocat/main/packet.c
sources/c/tacocat/main/process.c
sources/c/tacocat/main/receive.c
sources/c/tacocat/main/tacocat.c