]> Kevux Git Server - fll/commit
Refactor: Change bit-wise enumerations into defines.
authorKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:20 +0000 (21:45 -0500)
committerKevin Day <Kevin@kevux.org>
Wed, 31 Jul 2024 02:45:20 +0000 (21:45 -0500)
commit52cfac5ba0a4b98fd3184137793938fd914d2b13
treecb4d08c5f28f5a3a3e26c3111d79d5d0f1d846e0
parent4ed3bf3221a5c91179ca8a489de3046849c4a827
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.
121 files changed:
level_3/byte_dump/c/main/byte_dump.c
level_3/byte_dump/c/main/common.c
level_3/byte_dump/c/main/common/define.h
level_3/byte_dump/c/main/common/enumeration.h
level_3/byte_dump/c/main/common/type.h
level_3/byte_dump/c/main/main.c
level_3/byte_dump/c/main/print/data.c
level_3/byte_dump/c/main/process.c
level_3/example/c/main/common.c
level_3/example/c/main/common/define.h
level_3/example/c/main/common/enumeration.h
level_3/example/c/main/common/type.h
level_3/example/c/main/example.c
level_3/example/c/main/main.c
level_3/fake/c/main/build.c
level_3/fake/c/main/build/load.c
level_3/fake/c/main/common.c
level_3/fake/c/main/common/define.h
level_3/fake/c/main/common/enumeration.h
level_3/fake/c/main/fake.c
level_3/fake/c/main/fake/do.c
level_3/fake/c/main/fake/do.h
level_3/fake/c/main/main.c
level_3/fake/c/main/make/operate_process_type.c
level_3/fake/c/main/signal.c
level_3/fake/c/main/signal.h
level_3/firewall/c/main/common.c
level_3/firewall/c/main/common/define.h
level_3/firewall/c/main/common/enumeration.h
level_3/firewall/c/main/common/type.h
level_3/firewall/c/main/firewall.c
level_3/firewall/c/main/operate.c
level_3/firewall/c/main/operate/chains.c
level_3/firewall/c/main/operate/process.c
level_3/firewall/c/main/operate/show.c
level_3/fss_identify/c/main/common.c
level_3/fss_identify/c/main/common/define.h
level_3/fss_identify/c/main/common/enumeration.h
level_3/fss_identify/c/main/common/type.h
level_3/fss_identify/c/main/fss_identify.c
level_3/fss_identify/c/main/main.c
level_3/fss_identify/c/main/print/data.c
level_3/fss_identify/c/main/process.c
level_3/fss_read/c/basic/fss_read.c
level_3/fss_read/c/basic/main.c
level_3/fss_read/c/basic/print.c
level_3/fss_read/c/basic_list/fss_read.c
level_3/fss_read/c/basic_list/main.c
level_3/fss_read/c/basic_list/print.c
level_3/fss_read/c/embedded_list/fss_read.c
level_3/fss_read/c/embedded_list/main.c
level_3/fss_read/c/embedded_list/print.c
level_3/fss_read/c/extended/fss_read.c
level_3/fss_read/c/extended/main.c
level_3/fss_read/c/extended/print.c
level_3/fss_read/c/extended_list/fss_read.c
level_3/fss_read/c/extended_list/main.c
level_3/fss_read/c/extended_list/print.c
level_3/fss_read/c/main/common.c
level_3/fss_read/c/main/common/define.h
level_3/fss_read/c/main/common/enumeration.h
level_3/fss_read/c/main/common/type.h
level_3/fss_read/c/main/fss_read.c
level_3/fss_read/c/main/main.c
level_3/fss_read/c/main/print/data.c
level_3/fss_read/c/main/process_normal.c
level_3/fss_read/c/payload/fss_read.c
level_3/fss_read/c/payload/main.c
level_3/fss_read/c/payload/print.c
level_3/fss_write/c/basic/fss_write.c
level_3/fss_write/c/basic/main.c
level_3/fss_write/c/basic_list/fss_write.c
level_3/fss_write/c/basic_list/main.c
level_3/fss_write/c/embedded_list/fss_write.c
level_3/fss_write/c/embedded_list/main.c
level_3/fss_write/c/extended/fss_write.c
level_3/fss_write/c/extended/main.c
level_3/fss_write/c/extended_list/fss_write.c
level_3/fss_write/c/extended_list/main.c
level_3/fss_write/c/main/common.c
level_3/fss_write/c/main/common/define.h
level_3/fss_write/c/main/common/enumeration.h
level_3/fss_write/c/main/common/type.h
level_3/fss_write/c/main/fss_write.c
level_3/fss_write/c/main/main.c
level_3/fss_write/c/payload/fss_write.c
level_3/fss_write/c/payload/main.c
level_3/iki_read/c/main/common.c
level_3/iki_read/c/main/common/define.h
level_3/iki_read/c/main/common/enumeration.h
level_3/iki_read/c/main/common/type.h
level_3/iki_read/c/main/identify.c
level_3/iki_read/c/main/iki_read.c
level_3/iki_read/c/main/main.c
level_3/iki_read/c/main/print/data.c
level_3/iki_read/c/main/process.c
level_3/iki_write/c/main/common.c
level_3/iki_write/c/main/common/define.h
level_3/iki_write/c/main/common/enumeration.h
level_3/iki_write/c/main/common/type.h
level_3/iki_write/c/main/iki_write.c
level_3/iki_write/c/main/main.c
level_3/iki_write/c/main/process.c
level_3/status_code/c/fss/main.c
level_3/status_code/c/main/common.c
level_3/status_code/c/main/common/define.h
level_3/status_code/c/main/common/enumeration.h
level_3/status_code/c/main/common/type.h
level_3/status_code/c/main/main.c
level_3/status_code/c/main/process.c
level_3/status_code/c/main/status_code.c
level_3/utf8/c/main/bytesequence.c
level_3/utf8/c/main/codepoint.c
level_3/utf8/c/main/common.c
level_3/utf8/c/main/common/define.h
level_3/utf8/c/main/common/enumeration.h
level_3/utf8/c/main/common/type.h
level_3/utf8/c/main/main.c
level_3/utf8/c/main/print/data.c
level_3/utf8/c/main/print/error.c
level_3/utf8/c/main/utf8.c