538 |
while ((match_offset = (*execute) (ibeg, ilim - ibeg, &match_size, 1)) |
while ((match_offset = (*execute) (ibeg, ilim - ibeg, &match_size, 1)) |
539 |
!= (size_t) -1) |
!= (size_t) -1) |
540 |
{ |
{ |
541 |
char const *b = ibeg + match_offset; |
char const *b = beg + match_offset; |
542 |
if (b == lim) |
if (b == lim) |
543 |
break; |
break; |
544 |
if (match_size == 0) |
if (match_size == 0) |
549 |
if(color_option) |
if(color_option) |
550 |
fputs("\33[00m", stdout); |
fputs("\33[00m", stdout); |
551 |
fputs("\n", stdout); |
fputs("\n", stdout); |
552 |
ibeg = b + match_size; |
beg = b + match_size; |
553 |
|
ibeg += match_offset + match_size; |
554 |
} |
} |
555 |
free (buf); |
free (buf); |
556 |
lastout = lim; |
lastout = lim; |