aboutsummaryrefslogtreecommitdiff
path: root/lpcap.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-19 11:14:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2023-06-19 11:14:02 -0300
commit9a9ee3d9ab8ce435d743d293ec43075151370200 (patch)
tree445290bfa04c2cd30f514b65b90b1d8b973f21f1 /lpcap.h
parenta561630f17e61548193666abf9a8b20f20462558 (diff)
downloadlpeg-9a9ee3d9ab8ce435d743d293ec43075151370200.tar.gz
lpeg-9a9ee3d9ab8ce435d743d293ec43075151370200.tar.bz2
lpeg-9a9ee3d9ab8ce435d743d293ec43075151370200.zip
Some fixes in vibibility check for back captures
Diffstat (limited to 'lpcap.h')
-rw-r--r--lpcap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lpcap.h b/lpcap.h
index 30f3714..abbd553 100644
--- a/lpcap.h
+++ b/lpcap.h
@@ -70,6 +70,12 @@ typedef struct CapState {
70 : (c2)->index < (c1)->index + (c1)->siz - 1) 70 : (c2)->index < (c1)->index + (c1)->siz - 1)
71 71
72 72
73/**
74** Maximum number of captures to visit when looking for an 'open'.
75*/
76#define MAXLOP 20
77
78
73 79
74int runtimecap (CapState *cs, Capture *close, const char *s, int *rem); 80int runtimecap (CapState *cs, Capture *close, const char *s, int *rem);
75int getcaptures (lua_State *L, const char *s, const char *r, int ptop); 81int getcaptures (lua_State *L, const char *s, const char *r, int ptop);