summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2020-03-05 12:23:19 +0000
committerHugo van der Sanden <hv@crypt.org>2020-03-05 12:23:19 +0000
commit971190da8ab83a6286a8f6e4df192968ebd6cef0 (patch)
treee9a648e79497e257f2795b5930f38426cc94d676 /regcomp.h
parent15681eca00594b67994b1d30394e153a981615c3 (diff)
downloadperl-971190da8ab83a6286a8f6e4df192968ebd6cef0.tar.gz
regcomp.h: remove redundant comment
This 1989 comment stopped being true in 1997 with commit c277df4222.
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/regcomp.h b/regcomp.h
index c35a4a5678..c161d728dd 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -31,36 +31,6 @@
#endif
/*
- * The "internal use only" fields in regexp.h are present to pass info from
- * compile to execute that permits the execute phase to run lots faster on
- * simple cases. They are:
- *
- * regstart sv that must begin a match; NULL if none obvious
- * reganch is the match anchored (at beginning-of-line only)?
- * regmust string (pointer into program) that match must include, or NULL
- * [regmust changed to SV* for bminstr()--law]
- * regmlen length of regmust string
- * [regmlen not used currently]
- *
- * Regstart and reganch permit very fast decisions on suitable starting points
- * for a match, cutting down the work a lot. Regmust permits fast rejection
- * of lines that cannot possibly match. The regmust tests are costly enough
- * that pregcomp() supplies a regmust only if the r.e. contains something
- * potentially expensive (at present, the only such thing detected is * or +
- * at the start of the r.e., which can involve a lot of backup). Regmlen is
- * supplied because the test in pregexec() needs it and pregcomp() is computing
- * it anyway.
- * [regmust is now supplied always. The tests that use regmust have a
- * heuristic that disables the test if it usually matches.]
- *
- * [In fact, we now use regmust in many cases to locate where the search
- * starts in the string, so if regback is >= 0, the regmust search is never
- * wasted effort. The regback variable says how many characters back from
- * where regmust matched is the earliest possible start of the match.
- * For instance, /[a-z].foo/ has a regmust of 'foo' and a regback of 2.]
- */
-
-/*
* Structure for regexp "program". This is essentially a linear encoding
* of a nondeterministic finite-state machine (aka syntax charts or
* "railroad normal form" in parsing technology). Each node is an opcode