Branch: Tag:

2000-09-02

2000-09-02 23:52:23 by Marcus Comstedt <marcus@mc.pp.se>

Undid faulty "no warnings" transformation. (Fixes [bug 51 (#51)])

Rev: src/modules/Regexp/pike_regexp.c:1.16

1:   /* -  * $Id: pike_regexp.c,v 1.15 2000/08/11 13:04:22 grubba Exp $ +  * $Id: pike_regexp.c,v 1.16 2000/09/02 23:52:23 marcus Exp $    *    * regexp.c - regular expression matching    *
984:    register char nextch;    register size_t no;    register char *save; -  register int minimum; +  register size_t minimum;       /*    * Lookahead to avoid useless match attempts when we know
995:    nextch = *OPERAND(nxt);    minimum = (OP(scan) == STAR) ? 0 : 1;    save = reginput; -  no = regrepeat(OPERAND(scan)) + (minimum == 0); -  while (no) { +  no = regrepeat(OPERAND(scan)); +  while (no >= minimum) {    /* If it could work, try it. */    if (nextch == '\0' || *reginput == nextch)    if (regmatch(nxt))