commit cc4571fec67407652b03d6603ada6580de2194dc
parent 727ce0e1235dec1fec65ab2b95469d5a276d006e
Author: Igor Burago <igor@igorburago.com>
Date: Fri, 14 Oct 2022 20:28:06 +0800
libregexp: allow up to 127 captured subexpressions in one regexp
128 counting with the entire expression match ($0).
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libregexp/regcomp.h b/src/libregexp/regcomp.h
@@ -5,7 +5,7 @@
typedef unsigned char uchar;
#define nelem(x) (sizeof(x)/sizeof((x)[0]))
-#define NSUBEXP 32
+#define NSUBEXP 128
typedef struct Resublist Resublist;
struct Resublist
{