bc: Increment the number of nestting to 32 - sbase - suckless unix tools
HTML git clone git://git.suckless.org/sbase
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8ceddc568dcfae458ed9cb2c5b9421cf4b612db1
DIR parent 54f1f935c0024550d1715b173d662e9bf9ee2eb4
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Sat, 13 Dec 2025 15:37:08 +0100
bc: Increment the number of nestting to 32
The number of 10 nested control flow data structures was too
low, and a value of 32 would work for almost any bc program.
Diffstat:
M bc.y | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/bc.y b/bc.y
@@ -15,7 +15,7 @@
#include "util.h"
#define DIGITS "0123456789ABCDEF"
-#define NESTED_MAX 10
+#define NESTED_MAX 32
#define funid(f) ((f)[0] - 'a' + 1)