bc: Unwind after calculating return expression - sbase - suckless unix tools
 (HTM) git clone git://git.suckless.org/sbase
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit afa8975960633104311f9d81bf478171e950e26d
 (DIR) parent b95368aa433853d7f9fd160add78be5835f561ef
 (HTM) 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:
         M bc.y                                |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) 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 *