From 727ce0e1235dec1fec65ab2b95469d5a276d006e Mon Sep 17 00:00:00 2001 From: Igor Burago Date: Fri, 31 Mar 2023 00:55:02 +0800 Subject: [PATCH] plumber: increase NMATCHSUBEXP up to 100 Thus up to two-digit subexpression match variables are supported ($1 through $99) in addition to the entire expression match ($0). --- src/cmd/plumb/plumber.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/plumb/plumber.h b/src/cmd/plumb/plumber.h index 6b02cb61..9ffe74d2 100644 --- a/src/cmd/plumb/plumber.h +++ b/src/cmd/plumb/plumber.h @@ -54,7 +54,7 @@ struct Ruleset enum { - NMATCHSUBEXP = 32 /* bounded by ../../libregexp/regcomp.h:/NSUBEXP */ + NMATCHSUBEXP = 100 /* bounded by ../../libregexp/regcomp.h:/NSUBEXP */ }; struct Exec