pike.git/
src/
modules/
Regexp/
pike_regexp.c
Branch:
Tag:
Non-build tags
All tags
No tags
2015-04-27
2015-04-27 14:28:40 by Martin Nilsson <nilsson@opera.com>
1cd2b037e426a5bf5340bab6dabbc28024992303 (
7
lines) (+
3
/-
4
)
[
Show
|
Annotate
]
Branch:
8.1
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 '>':