Branch: Tag:

2015-04-27

2015-04-27 14:28:40 by Martin Nilsson <nilsson@opera.com>

The excompat argument is always false.

246:    * Beware that the optimization-preparation code in here knows about some    * of the structure of the compiled regexp.    */ - regexp *pike_regcomp(char *exp,int excompat) + regexp *pike_regcomp(char *exp)   {    register regexp *r = NULL;    register char *scan;
261:    switch (c) {    case '(':    case ')': -  *dest++ = excompat ? c : c | SPECIAL; -  break; +     case '.':    case '*':    case '+':
277:    switch ( c = *scan++ ) {    case '(':    case ')': -  *dest++ = excompat ? c | SPECIAL : c; +  *dest++ = c;    break;    case '<':    case '>':