rc

[fork] interactive rc shell
Log | Files | Refs | README | LICENSE

commit 25305e9045f9b3d0611b4c035942308410c7d46e
parent 875a35ff98989a50a80ede8648d3683b391a3f01
Author: tgoodwin <tgoodwin>
Date:   Fri, 10 Jul 1998 13:26:51 +0000

remove warning for execit

Diffstat:
Minput.c | 8+++++---
1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/input.c b/input.c @@ -67,7 +67,7 @@ static int dead() { return last = EOF; } -static void ugdead(int c) { +static void ugdead(int ignore) { return; } @@ -232,14 +232,16 @@ extern void flushu() { /* the wrapper loop in rc: prompt for commands until EOF, calling yyparse and walk() */ -extern Node *doit(bool execit) { +extern Node *doit(bool clobberexecit) { bool eof; + bool execit ; Jbwrap j; Estack e1, e2; Edata jerror; if (dashen) - execit = FALSE; + clobberexecit = FALSE; + execit = clobberexecit; sigsetjmp(j.j, 1); jerror.jb = &j; except(eError, jerror, &e1);