const u8 *cur_buf = sp < 0 ? hend : buffer;
- char report = 1;
- if (mode == CALLBACK_OUTPUT) {
- /* we are starting inside the history buffer: matches are suppressed */
- report = !(sp < 0);
- }
-
if (mode != NO_MATCHES && q->items[q->cur - 1].location > end) {
/* this is as far as we go */
q->cur--;
const u8 *final_look;
if (goughExec8_i_ni(m, som, &s, cur_buf + sp, local_ep - sp,
- offset + sp, cb, context, &final_look,
- report ? mode : NO_MATCHES)
+ offset + sp, cb, context, &final_look, mode)
== MO_HALT_MATCHING) {
*(u8 *)q->state = 0;
return 0;
if (sp == 0) {
cur_buf = buffer;
- report = 1;
}
if (sp != ep) {
const u8 *cur_buf = sp < 0 ? hend : buffer;
- char report = 1;
- if (mode == CALLBACK_OUTPUT) {
- /* we are starting inside the history buffer: matches are suppressed */
- report = !(sp < 0);
- }
-
assert(q->cur);
if (mode != NO_MATCHES && q->items[q->cur - 1].location > end) {
/* this is as far as we go */
/* do main buffer region */
const u8 *final_look;
if (goughExec16_i_ni(m, som, &s, cur_buf + sp, local_ep - sp,
- offset + sp, cb, context, &final_look,
- report ? mode : NO_MATCHES)
+ offset + sp, cb, context, &final_look, mode)
== MO_HALT_MATCHING) {
- assert(report);
*(u16 *)q->state = 0;
return 0;
}
if (sp == 0) {
cur_buf = buffer;
- report = 1;
}
if (sp != ep) {
const u8 *cur_buf = sp < 0 ? hend : buffer;
- char report = 1;
- if (mode == CALLBACK_OUTPUT) {
- /* we are starting inside the history buffer: matches are suppressed */
- report = !(sp < 0);
- }
-
assert(q->cur);
if (mode != NO_MATCHES && q->items[q->cur - 1].location > end) {
DEBUG_PRINTF("this is as far as we go\n");
const u8 *final_look;
if (mcclellanExec16_i_ni(m, &s, cur_buf + sp, local_ep - sp,
offset + sp, cb, context, single, &final_look,
- report ? mode : NO_MATCHES)
+ mode)
== MO_HALT_MATCHING) {
- assert(report);
*(u16 *)q->state = 0;
return 0;
}
if (sp == 0) {
cur_buf = buffer;
- report = 1;
}
if (sp != ep) {
const u8 *cur_buf = sp < 0 ? hend : buffer;
- char report = 1;
- if (mode == CALLBACK_OUTPUT) {
- /* we are starting inside the history buffer: matches are suppressed */
- report = !(sp < 0);
- }
-
if (mode != NO_MATCHES && q->items[q->cur - 1].location > end) {
DEBUG_PRINTF("this is as far as we go\n");
q->cur--;
const u8 *final_look;
if (mcclellanExec8_i_ni(m, &s, cur_buf + sp, local_ep - sp, offset + sp,
- cb, context, single, &final_look,
- report ? mode : NO_MATCHES)
+ cb, context, single, &final_look, mode)
== MO_HALT_MATCHING) {
*(u8 *)q->state = 0;
return 0;
if (sp == 0) {
cur_buf = buffer;
- report = 1;
}
if (sp != ep) {
const u8 * scanned = cur_buf;
char rv;
- /* if we're in nomatch mode or if we're scanning history buffer */
- if (mode == NO_MATCHES ||
- (cur_start < 0 && mode == CALLBACK_OUTPUT)) {
+ if (mode == NO_MATCHES) {
runShengNm(sh, q->cb, q->context, q->offset,
&cached_accept_state, &cached_accept_id, cur_buf,
cur_buf + cur_start, cur_buf + cur_end, can_die,