sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit afa8975960633104311f9d81bf478171e950e26d
parent b95368aa433853d7f9fd160add78be5835f561ef
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Sun, 30 Nov 2025 21:11:22 +0100

bc: Unwind after calculating return expression

The locals can be used to compute the return value, and
for that reason we cannot get rid of them until we know
that they will not be used anymore.

Diffstat:
Mbc.y | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bc.y b/bc.y @@ -494,7 +494,7 @@ retcode(char *expr) if (nested < 2 || macros[1].op != DEF) yyerror("return must be in a function"); - return code("%s %s %dQ", estrdup(unwind), expr, nested - 1); + return code("%s %s %dQ", expr, estrdup(unwind), nested - 1); } static char *