From 0ad2a46f33944b5fedbda54167af5739c8c5ed84 Mon Sep 17 00:00:00 2001 From: jilles Date: Thu, 25 Jul 2013 15:08:41 +0000 Subject: 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. --- bin/sh/eval.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/sh/eval.h') diff --git a/bin/sh/eval.h b/bin/sh/eval.h index 724e157..a6e87b2 100644 --- a/bin/sh/eval.h +++ b/bin/sh/eval.h @@ -46,6 +46,8 @@ struct backcmd { /* result of evalbackcmd */ struct job *jp; /* job structure for command */ }; +void reseteval(void); + /* flags in argument to evaltree/evalstring */ #define EV_EXIT 01 /* exit after evaluating tree */ #define EV_TESTED 02 /* exit status is checked; ignore -e flag */ -- cgit v1.1