Lines Matching refs:firstbyte
179 // Special "firstbyte" values for a state. (Values >= 0 denote actual bytes.)
259 firstbyte(kFbUnknown),
271 int firstbyte;
283 // "firstbyte" for that state, if any.
285 StartInfo() : start(NULL), firstbyte(kFbUnknown) { }
287 volatile int firstbyte;
290 // Fills in params->start and params->firstbyte using
1170 start_[i].firstbyte = kFbUnknown;
1286 // loop as the "firstbyte" argument, along with a boolean "have_firstbyte".
1349 // In start state, only way out is to find firstbyte,
1351 // If firstbyte isn't found, we can skip to the end
1354 if ((p = BytePtr(memchr(p, params->firstbyte, ep - p))) == NULL) {
1359 if ((p = BytePtr(memrchr(ep, params->firstbyte, p - ep))) == NULL) {
1556 params->firstbyte >= 0,
1577 bool have_firstbyte = (params->firstbyte >= 0);
1671 fprintf(stderr, "anchored=%d fwd=%d flags=%#x state=%s firstbyte=%d\n",
1673 DumpState(info->start).c_str(), info->firstbyte);
1676 params->firstbyte = ANNOTATE_UNPROTECTED_READ(info->firstbyte);
1685 if (ANNOTATE_UNPROTECTED_READ(info->firstbyte) != kFbUnknown) {
1686 ANNOTATE_HAPPENS_AFTER(&info->firstbyte);
1691 if (info->firstbyte != kFbUnknown) {
1692 ANNOTATE_HAPPENS_AFTER(&info->firstbyte);
1705 ANNOTATE_HAPPENS_BEFORE(&info->firstbyte);
1707 info->firstbyte = kFbNone;
1712 ANNOTATE_HAPPENS_BEFORE(&info->firstbyte);
1714 info->firstbyte = kFbNone; // will be ignored
1718 // Compute info->firstbyte by running state on all
1721 int firstbyte = kFbNone;
1725 ANNOTATE_HAPPENS_BEFORE(&info->firstbyte);
1727 info->firstbyte = firstbyte;
1733 if (firstbyte == kFbNone) {
1734 firstbyte = i; // ... first one
1736 firstbyte = kFbMany; // ... too many
1740 ANNOTATE_HAPPENS_BEFORE(&info->firstbyte);
1742 info->firstbyte = firstbyte;