summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2013-05-31 23:44:44 +0100
committerDavid Mitchell <davem@iabyn.com>2013-06-02 22:28:55 +0100
commit28d03b21d43611f97565be8d077b7f8eb0bda26a (patch)
tree330c76614dc7d5b3808b47551e50d287924cc667 /regexp.h
parent6c3fea77afb1df054862e697daf7fa3cb10e27f4 (diff)
downloadperl-28d03b21d43611f97565be8d077b7f8eb0bda26a.tar.gz
document fields of regmatch_info struct
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/regexp.h b/regexp.h
index 5422bd1552..a86963c020 100644
--- a/regexp.h
+++ b/regexp.h
@@ -618,13 +618,13 @@ typedef struct {
* regmatch_state union. */
typedef struct {
- REGEXP *prog;
+ REGEXP *prog; /* the regex being executed */
const char * strbeg; /* real start of string */
- char *strend; /* one byte beyond last char of match string */
- char *till;
- SV *sv;
- char *ganch;
- char *cutpoint;
+ char *strend; /* one byte beyond last char of match string */
+ char *till; /* matches shorter than this fail (see minlen arg) */
+ SV *sv; /* the SV string currently being matched */
+ char *ganch; /* position of \G anchor */
+ char *cutpoint; /* (*COMMIT) position (if any) */
regmatch_info_aux *info_aux; /* extra fields that need cleanup */
regmatch_info_aux_eval *info_aux_eval; /* extra saved state for (?{}) */
I32 poscache_maxiter; /* how many whilems todo before S-L cache kicks in */