HomeFreeBSD

sh: Remove mkinit.
rS253650Unpublished

Unpublished Commit ยท Learn More

No further details are available.

Description

sh: Remove mkinit.

Replace the RESET blocks with regular functions and a reset() function that
calls them all.

This code generation tool is unusual and does not appear to provide much
benefit. I do not think isolating the knowledge about which modules need to
be reset is worth an almost 500-line build tool and wider scope for
variables used by the reset functions.

Also, relying on reset functions is often wrong: the cleanup should be done
in exception handlers so that no stale state remains after 'command eval'
and the like.

Details

Provenance
jillesAuthored on
Parents
rS253649: sh: Remove output.c's reset() handler.
Branches
Unknown
Tags
Unknown

Event Timeline