]> git.pond.sub.org Git - empserver/commit
config: Generalize infrastructure build materials storage
authorMarkus Armbruster <armbru@pond.sub.org>
Wed, 17 Aug 2016 19:01:32 +0000 (21:01 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 6 Aug 2017 18:09:19 +0000 (20:09 +0200)
commit5d3abc9917964b9ba4551ae7a1f9c675388ba1b0
treef65a9d9157977f9dfc10de5c88507f96dbfa9be1
parentc8b51ec1a81833df35d1776ad1ae30695faca297
config: Generalize infrastructure build materials storage

Infrastructure requires lcms and hcms to build.  The build materials
are exposed as infrastructure columns lcms, hcms (struct sctintrins
members in_lcms, in_hcms).  They are per point of efficiency.  In
contrast, sector and unit build materials are defined for 100%.

We want to define build materials for 100% now, for flexibility and
consistency, and we want to optionally support more build materials in
the future.  Replace members in_lcms and in_hcms by array in_mat[],
and provide selectors l_build and h_build.

Additionally provide selectors for all other item types, with value
zero, to help clients prepare for future additional materials.  Use
CA_DUMP_ONLY to keep them out of configuration tables until they
actually work.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
include/sect.h
src/lib/commands/improve.c
src/lib/common/nsc.c
src/lib/global/infra.config
src/lib/subs/show.c
tests/empdump/xundump-errors/fld-conststr
tests/empdump/xundump-errors/ftr-mal2
tests/version/journal.log