pike.git / src / modules / Regexp / pike_regexp.c

version» Context lines:

pike.git/src/modules/Regexp/pike_regexp.c:1:   /* -  * $Id: pike_regexp.c,v 1.17 2000/09/08 16:02:29 grubba Exp $ +  * $Id: pike_regexp.c,v 1.18 2000/09/11 18:31:07 grubba Exp $    *    * regexp.c - regular expression matching    *    * DESCRIPTION    *    * Underneath the reformatting and comment blocks which were added to    * make it consistent with the rest of the code, you will find a    * modified version of Henry Specer's regular expression library.    * Henry's functions were modified to provide the minimal regular    * expression matching, as required by P1003. Henry's code was
pike.git/src/modules/Regexp/pike_regexp.c:414:    br = regbranch(&flags);    if (br == (char *)NULL)    return ((char *)NULL);    regtail(ret, br); /* BRANCH -> BRANCH. */    if (!(flags & HASWIDTH))    *flagp &= ~HASWIDTH;    *flagp |= flags & SPSTART;    }       /* Make a closing node, and hook it on the end. */ -  ender = regnode((paren) ? (char)(CLOSE + parno) : END); +  ender = regnode((char)((paren) ? (CLOSE + parno) : END));    regtail(ret, ender);       /* Hook the tails of the branches to the closing node. */    for (br = ret; br != (char *)NULL; br = regnext(br))    regoptail(br, ender);       /* Check for proper termination. */    if (paren && *regparse++ != RBRAC) {    FAIL("unmatched ()");    } else if (!paren && *regparse != '\0') {