libregexp: allow up to 127 captured subexpressions in one regexp

128 counting with the entire expression match ($0).
This commit is contained in:
Igor Burago 2022-10-14 20:28:06 +08:00 committed by Dan Cross
parent 727ce0e123
commit cc4571fec6

View file

@ -5,7 +5,7 @@
typedef unsigned char uchar; typedef unsigned char uchar;
#define nelem(x) (sizeof(x)/sizeof((x)[0])) #define nelem(x) (sizeof(x)/sizeof((x)[0]))
#define NSUBEXP 32 #define NSUBEXP 128
typedef struct Resublist Resublist; typedef struct Resublist Resublist;
struct Resublist struct Resublist
{ {