aboutsummaryrefslogtreecommitdiff
path: root/lpcap.h
diff options
context:
space:
mode:
Diffstat (limited to 'lpcap.h')
-rw-r--r--lpcap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lpcap.h b/lpcap.h
index 10539a0..e72d913 100644
--- a/lpcap.h
+++ b/lpcap.h
@@ -16,6 +16,7 @@ typedef enum CapKind {
16 Csimple, /* next node is pattern */ 16 Csimple, /* next node is pattern */
17 Ctable, /* next node is pattern */ 17 Ctable, /* next node is pattern */
18 Cfunction, /* ktable[key] is function; next node is pattern */ 18 Cfunction, /* ktable[key] is function; next node is pattern */
19 Cacc, /* ktable[key] is function; next node is pattern */
19 Cquery, /* ktable[key] is table; next node is pattern */ 20 Cquery, /* ktable[key] is table; next node is pattern */
20 Cstring, /* ktable[key] is string; next node is pattern */ 21 Cstring, /* ktable[key] is string; next node is pattern */
21 Cnum, /* numbered capture; 'key' is number of value to return */ 22 Cnum, /* numbered capture; 'key' is number of value to return */
@@ -38,7 +39,8 @@ typedef struct CapState {
38 Capture *cap; /* current capture */ 39 Capture *cap; /* current capture */
39 Capture *ocap; /* (original) capture list */ 40 Capture *ocap; /* (original) capture list */
40 lua_State *L; 41 lua_State *L;
41 int ptop; /* index of last argument to 'match' */ 42 int ptop; /* stack index of last argument to 'match' */
43 int firstcap; /* stack index of first capture pushed in the stack */
42 const char *s; /* original string */ 44 const char *s; /* original string */
43 int valuecached; /* value stored in cache slot */ 45 int valuecached; /* value stored in cache slot */
44 int reclevel; /* recursion level */ 46 int reclevel; /* recursion level */