]> git.pond.sub.org Git - empserver/commit
nsc: Replace NSC_EXTRA, NSC_CONST by enum ca_dump
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 29 May 2016 21:31:31 +0000 (23:31 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 17:59:56 +0000 (19:59 +0200)
commitdc58018cd73debb872d7e536481100f7daa727d2
tree04f070fe04322057bdf8d43649ec47c64257d009
parent9289eb052500df2aca4a0493f1f77699d038b7e0
nsc: Replace NSC_EXTRA, NSC_CONST by enum ca_dump

struct castr ca_flag NSC_EXTRA was introduced in commit 3e5c064
(v4.2.18) to permit selectors that aren't in xdump.

Flag NSC_CONST was introduced in commit 445dfec, and put to use in
commit d8422ca (both v4.3.0) to protect certain table elements that
should not be changed in customized tables.

Both flags apply only to xdump, not to other uses of struct castr,
such as conditionals.

Combining NSC_EXTRA | NSC_CONST makes no sense.

I'll shortly need a way to keep selectors out of configuration tables
for conditional selector and xdump command forward compatibility.
Doing it as a third flag would add more nonsensical combinations.

Convert the flags to a separate enum ca_dump instead:

    neither   -> CA_DUMP
    NSC_CONST -> CA_DUMP_CONST
    NSC_EXTRA -> CA_DUMP_NONE

Bonus: unlike the flags it replaces, ca_dump is not visible in xdump.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
doc/xdump
include/nsc.h
src/lib/commands/xdump.c
src/lib/common/ef_verify.c
src/lib/common/nsc.c
src/lib/common/xdump.c
src/lib/common/xundump.c
src/lib/global/symbol.c
tests/version/journal.log