Make the "compile module" code actually return, rather than call
authoraland <aland>
Tue, 15 Feb 2005 23:43:47 +0000 (23:43 +0000)
committeraland <aland>
Tue, 15 Feb 2005 23:43:47 +0000 (23:43 +0000)
commit85531af3d1be50b75d24d8cbd9e2ccc3aaf7597f
tree33b7e84aa53b299d362c44bcc73155908262c152
parentec5e0627ecdafea92b9030ab2ff8d6601ae366dd
Make the "compile module" code actually return, rather than call
exit().  This means that we have a "stack" of errors to print if
something goes wrong, so we can track what referred to the item
making the problem.

Allow redundant{} etc. sections to have second names,
and use those names for printing.

Allow subsections in "instantiate", and use those subsections
as "virtual" modules, so that you don't have to copy blocks
of text, if the same kind of redundancy/fail-over is done in
multiple places.

This fixes bug #181

These subsections will later allow us to use the subsection names
in xlat's.  e.g.

redundant magic_ldap {
ldap1
ldap2
}

... %{magic_ldap: query...}, which will fail-over from ldap1 to ldap2
src/main/modcall.c
src/main/modules.c